diff options
author | mh <mh@immerda.ch> | 2008-02-29 16:14:01 +0000 |
---|---|---|
committer | mh <mh@immerda.ch> | 2008-02-29 16:14:01 +0000 |
commit | 22cd87e180ba785a0a9e2d78b33faf2fa2e1b2b6 (patch) | |
tree | 2b3c55f0bbc75794b2ad4dbca8037ba350f97288 | |
parent | 020e89577e80860d9a57ef0b1d78adebc5378bd5 (diff) |
fixed some left stuff
-rw-r--r-- | manifests/init.pp | 29 |
1 files changed, 2 insertions, 27 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index a10fd40..a3bfb2f 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -18,7 +18,7 @@ class puppet { default => "puppet://$server/$source", } - file { 'pupet_config': + file { 'puppet_config': path => '/etc/puppet/puppet.conf', owner => root, group => 0, @@ -90,18 +90,11 @@ class puppetmaster inherits puppet { default => "puppet://$server/$puppet_fileserver_source" } - File[pupet_config]{ + File[puppet_config]{ source => $real_puppetmaster_conf_source, notify => [Service[puppet],Service[puppetmaster] ], } - file { 'pupet_config': - path => '/etc/puppet/puppet.conf', - owner => root, - group => 0, - mode => 600, - source => $real_puppetsource, - } file { 'fileserver_config': path => '/etc/puppet/fileserver.conf', owner => root, @@ -111,21 +104,3 @@ class puppetmaster inherits puppet { notify => [Service[puppet],Service[puppetmaster] ], } } - -define puppet::config($source = ''){ - - $real_source = $source ? { - '' => [ "puppet://$server/puppet/client/puppet.conf.$operatingsystem", - "puppet://$server/puppet/client/puppet.conf" ], - default => "puppet://$server/$source", - } - - file { 'pupet_config': - path => '/etc/puppet/puppet.conf', - owner => root, - group => 0, - mode => 600, - source => $real_source, - notify => Service[puppet], - } -} |