summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2008-04-11 11:59:30 +0000
committermh <mh@immerda.ch>2008-04-11 11:59:30 +0000
commit5a1de07bc6d5b01325150e2e5c118a14d0c92575 (patch)
tree7a291b91d367fa4acf3e640401ffc2c8ebe4342b
parente7702e7ce425768a54b7129b1d2588a0557b76c6 (diff)
cleaned up sources
-rw-r--r--manifests/init.pp34
1 files changed, 10 insertions, 24 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 351cc77..88fb214 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -10,16 +10,8 @@ class puppet {
openbsd: { include puppet::openbsd}
}
- $real_puppet_conf_source = $puppet_conf_source ? {
- '' => [ "puppet://$server/files/puppet/client/puppet.conf.$operatingsystem",
- "puppet://$server/files/puppet/client/puppet.conf",
- "puppet://$server/puppet/client/puppet.conf.$operatingsystem",
- "puppet://$server/puppet/client/puppet.conf" ],
- default => "puppet://$server/$source",
- }
-
$real_puppet_config = $puppet_config ? {
- '' => "/etc/puppet/puppet.confa",
+ '' => "/etc/puppet/puppet.conf",
default => $puppet_config,
}
@@ -28,7 +20,11 @@ class puppet {
owner => root,
group => 0,
mode => 600,
- source => $real_puppet_conf_source,
+ source => [ "puppet://$server/files/puppet/client/${fqdn}/puppet.conf",
+ "puppet://$server/files/puppet/client/puppet.conf.$operatingsystem",
+ "puppet://$server/files/puppet/client/puppet.conf",
+ "puppet://$server/puppet/client/puppet.conf.$operatingsystem",
+ "puppet://$server/puppet/client/puppet.conf" ],
notify => Service[puppet],
}
@@ -93,23 +89,12 @@ class puppetmaster::linux inherits puppet::linux {
require +> Service[puppetmaster],
}
- $real_puppetmaster_conf_source = $puppet_conf_source ? {
- '' => [ "puppet://$server/files/puppet/master/puppet.conf",
- "puppet://$server/puppet/master/puppet.conf" ],
- default => "puppet://$server/$puppet_conf_source",
- }
-
File[puppet_config]{
- source => $real_puppetmaster_conf_source,
+ source => [ "puppet://$server/files/puppet/master/puppet.conf",
+ "puppet://$server/puppet/master/puppet.conf" ],
notify => [Service[puppet],Service[puppetmaster] ],
}
- $real_puppet_fileserver_source = $puppet_fileserver_source ? {
- '' => [ "puppet://$server/files/puppet/master/fileserver.conf",
- "puppet://$server/puppet/master/fileserver.conf" ],
- default => "puppet://$server/$puppet_fileserver_source"
- }
-
$real_puppet_fileserverconfig = $puppet_fileserverconfig ? {
'' => "/etc/puppet/fileserver.conf",
default => $puppet_fileserverconfig,
@@ -119,7 +104,8 @@ class puppetmaster::linux inherits puppet::linux {
owner => root,
group => 0,
mode => 600,
- source => $real_puppet_fileserver_source ,
+ source => [ "puppet://$server/files/puppet/master/fileserver.conf",
+ "puppet://$server/puppet/master/fileserver.conf" ],
notify => [Service[puppet],Service[puppetmaster] ],
}
}