-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmanifest.pp
64 lines (60 loc) · 2.3 KB
/
manifest.pp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
class helloworld{
file { '/tmp/test':
content => "test to see if puppet is running."
}
package {["git", "openjdk-6-jdk"]:
ensure => "installed"
}
schedule {"first":
range => "15:00 - 15:40",
repeat=> 2
}
schedule {"second":
range => "15:40 - 15:45",
repeat=> 2
}
schedule {"third":
range => "15:45 - 17:00",
repeat=> 2
}
if $hostname == "coors"
{
package {"ensure tomcat6 coors":
name => 'tomcat6',
schedule => "first",
ensure => "installed"
}
file {"install sample app for tomcat6":
path => "/var/lib/tomcat6/webapps/sample.war",
schedule => "first",
source=> "puppet:///modules/helloworld/sample.war"
}
package {["tomcat6, tomcat6-common", "libtomcat6-java"]:
schedule => "third",
ensure => "absent"
}
package {"ensure tomcat7 coors":
name => 'tomcat7',
schedule => "third",
ensure => "installed"
}
file {"sample for tomcat7":
path => "/var/lib/tomcat7/webapps/sample.war",
schedule => "third",
source=> "puppet:///modules/helloworld/sample.war"
}
}
elsif $hostname == "becks"
{
package {"ensure tomcat7 becks":
name => 'tomcat7',
schedule => "second",
ensure => "installed"
}
file {"sample for tomcat7 becks":
path => "/var/lib/tomcat7/webapps/sample.war",
schedule => "second",
source=> "puppet:///modules/helloworld/sample.war"
}
}
}