projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make sources.list.d entries into templates
[mirror/dsa-puppet.git]
/
manifests
/
site.pp
diff --git
a/manifests/site.pp
b/manifests/site.pp
index
b0aadc6
..
192c546
100644
(file)
--- a/
manifests/site.pp
+++ b/
manifests/site.pp
@@
-1,5
+1,5
@@
Package {
Package {
- require =>
File["/etc/apt/apt.conf.d/local-recommends"
]
+ require =>
[ Exec["apt-get update"], File["/etc/apt/apt.conf.d/local-recommends"]
]
}
File {
}
File {
@@
-9,11
+9,22
@@
File {
ensure => file,
}
ensure => file,
}
+Exec {
+ path => "/usr/bin:/usr/sbin:/bin:/sbin"
+}
+
node default {
include munin-node
node default {
include munin-node
- include samhain
include sudo
include sudo
+ include ssh
include debian-org
include debian-org
+ include monit
+ include apt-keys
+
+ $nodeinfo = nodeinfo($fqdn, "/etc/puppet/modules/debian-org/misc/local.yaml")
+
+ include motd
+ include samhain
case $smartarraycontroller {
"true": { include debian-proliant }
case $smartarraycontroller {
"true": { include debian-proliant }
@@
-21,36
+32,54
@@
node default {
}
case $mta {
}
case $mta {
- "exim4": { include exim }
+ "exim4": {
+ case extractnodeinfo($nodeinfo, 'heavy_exim') {
+ "true": { include exim::mx }
+ default: { include exim }
+ }
+ }
default: {}
}
default: {}
}
- import "nagios"
- include nagios-client
case $hostname {
case $hostname {
- spohr: {
- import "nagios"
- include nagios-server
- }
- default: {}
+ spohr: {
+ include nagios::server
+ }
+ default: {
+ include nagios::client
+ }
}
}
- case $apache2 {
- "true": { case $hostname {
- "carver": { include apache2 }
- default: {}
- } }
- default: {}
- }
+ case extractnodeinfo($nodeinfo, 'apache2_defaultconfig') {
+ "true": { include apache2 }
+ default: { }
+ }
- case $hostname {
- malo: { include buildd }
- default: {}
- }
+ case extractnodeinfo($nodeinfo, 'buildd') {
+ "true": { include buildd }
+ default: { }
+ }
+ case extractnodeinfo($nodeinfo, 'apache2_security_mirror') {
+ "true": { include apache2::security_mirror }
+ default: { }
+ }
-}
-node penalosa inherits default {
- include hosts
+# maybe wait for rietz to be upgraded to lenny
+# case $hostname {
+# rietz,raff,klecker:
+# { include named-secondary }
+# default: {}
+# }
+
+ case $hostname {
+ geo1,geo2,geo3:
+ { include geodns }
+ default: {}
+ }
+ case $brokenhosts {
+ "true": { include hosts }
+ default: {}
+ }
}
}