diff options
author | mh <mh@immerda.ch> | 2008-04-25 17:53:19 +0000 |
---|---|---|
committer | mh <mh@immerda.ch> | 2008-04-25 17:53:19 +0000 |
commit | a2ec4cf449aadac9814ef4c14d355e24e7431c04 (patch) | |
tree | 8529eec86656fb4104b3350e9e0979fb4c229931 | |
parent | e46fb7e3a6d49fd5778a755c4fa27286ad92d7f4 (diff) |
finally adjusted paths
-rw-r--r-- | files/configs/CentOS/cgi.cfg (renamed from files/configs/CentOS/cgi.cfg.Centos) | 0 | ||||
-rw-r--r-- | files/configs/CentOS/commands.cfg (renamed from files/configs/commands.cfg.Centos) | 0 | ||||
-rw-r--r-- | files/configs/CentOS/nagios.cfg (renamed from files/configs/nagios.cfg.Centos) | 0 | ||||
-rw-r--r-- | files/configs/CentOS/private/resource.cfg.i386 (renamed from files/configs/private/resource.cfg.i386.Centos) | 0 | ||||
-rw-r--r-- | files/configs/CentOS/private/resource.cfg.x86_64 (renamed from files/configs/private/resource.cfg.x86_64.Centos) | 0 | ||||
-rw-r--r-- | files/configs/CentOS/puppet_cfgpaths.cfg (renamed from files/configs/puppet_cfgpaths.cfg.Centos) | 0 | ||||
-rw-r--r-- | manifests/init.pp | 27 |
7 files changed, 15 insertions, 12 deletions
diff --git a/files/configs/CentOS/cgi.cfg.Centos b/files/configs/CentOS/cgi.cfg index cd625d4..cd625d4 100644 --- a/files/configs/CentOS/cgi.cfg.Centos +++ b/files/configs/CentOS/cgi.cfg diff --git a/files/configs/commands.cfg.Centos b/files/configs/CentOS/commands.cfg index 2b1889c..2b1889c 100644 --- a/files/configs/commands.cfg.Centos +++ b/files/configs/CentOS/commands.cfg diff --git a/files/configs/nagios.cfg.Centos b/files/configs/CentOS/nagios.cfg index 7027c90..7027c90 100644 --- a/files/configs/nagios.cfg.Centos +++ b/files/configs/CentOS/nagios.cfg diff --git a/files/configs/private/resource.cfg.i386.Centos b/files/configs/CentOS/private/resource.cfg.i386 index 0ccf2e1..0ccf2e1 100644 --- a/files/configs/private/resource.cfg.i386.Centos +++ b/files/configs/CentOS/private/resource.cfg.i386 diff --git a/files/configs/private/resource.cfg.x86_64.Centos b/files/configs/CentOS/private/resource.cfg.x86_64 index b9f0841..b9f0841 100644 --- a/files/configs/private/resource.cfg.x86_64.Centos +++ b/files/configs/CentOS/private/resource.cfg.x86_64 diff --git a/files/configs/puppet_cfgpaths.cfg.Centos b/files/configs/CentOS/puppet_cfgpaths.cfg index 44294b4..44294b4 100644 --- a/files/configs/puppet_cfgpaths.cfg.Centos +++ b/files/configs/CentOS/puppet_cfgpaths.cfg diff --git a/manifests/init.pp b/manifests/init.pp index 3cbc3f1..a7207db 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -46,9 +46,10 @@ class nagios::base { # cfg_file=/etc/nagios/puppet_cfgpaths.cfg file {nagios_main_cfg: path => "/etc/nagios/nagios.cfg", - source => [ "puppet://$server/files/nagios/${fqdn}/nagios.cfg", - "puppet://$server/files/nagios/nagios.cfg", - "puppet://$server/nagios/configs/nagios.cfg.${operatingsystem}", + source => [ "puppet://$server/files/nagios/configs/${fqdn}/nagios.cfg", + "puppet://$server/files/nagios/configs/${operatingsystem}/nagios.cfg", + "puppet://$server/files/nagios/configs/nagios.cfg", + "puppet://$server/nagios/configs/${operatingsystem}/nagios.cfg", "puppet://$server/nagios/configs/nagios.cfg" ], notify => Service[nagios], mode => 0644, owner => root, group => root; @@ -56,18 +57,20 @@ class nagios::base { # here is this magic file containing all relevant paths file {nagios_puppet_cfg_paths: path => "/etc/nagios/puppet_cfgpaths.cfg", - source => [ "puppet://$server/files/nagios/${fqdn}/puppet_cfgpaths.cfg", - "puppet://$server/files/nagios/puppet_cfgpaths.cfg", - "puppet://$server/nagios/configs/puppet_cfgpaths.cfg.${operatingsystem}", - "puppet://$server/nagios/configs/puppet_cfgpaths.cfg" ], + source => [ "puppet://$server/files/nagios/configs/${fqdn}/puppet_cfgpaths.cfg", + "puppet://$server/files/nagios/configs/${operatingsystem}/puppet_cfgpaths.cfg", + "puppet://$server/files/nagios/configs/puppet_cfgpaths.cfg", + "puppet://$server/nagios/configs/${operatingsystem}/puppet_cfgpaths.cfg", + "puppet://$server/nagios/configs/puppet_cfgpaths.cfg", notify => Service[nagios], mode => 0644, owner => root, group => root; } file { nagios_cgi_cfg: path => "/etc/nagios/cgi.cfg", - source => [ "puppet://$server/files/nagios/${fqdn}/cgi.cfg", - "puppet://$server/files/nagios/cgi.cfg", - "puppet://$server/nagios/configs/cgi.cfg.${operatingsystem}", + source => [ "puppet://$server/files/nagios/configs/${fqdn}/cgi.cfg", + "puppet://$server/files/nagios/configs/${operatingsystem}/cgi.cfg", + "puppet://$server/files/nagios/configs/cgi.cfg", + "puppet://$server/nagios/configs/${operatingsystem}/cgi.cfg", "puppet://$server/nagios/configs/cgi.cfg" ], owner => 'root', group => 0, @@ -153,7 +156,7 @@ class nagios::centos inherits nagios::base { # don't forget it to add to the puppet paths file { nagios_commands_cfg: path => "/etc/nagios/commands.cfg", - source => "puppet://$server/nagios/configs/commands.cfg.${operatingsystem}" , + source => "puppet://$server/nagios/configs/${operatingsystem}/commands.cfg", owner => 'root', group => 0, mode => '0644', @@ -167,7 +170,7 @@ class nagios::centos inherits nagios::base { mode => '0750', owner => root, group => nagios; } file{"/etc/nagios/private/resource.cfg": - source => "puppet://$server/nagios/configs/private/resource.cfg.${operatingsystem}.${architecture}", + source => "puppet://$server/nagios/configs/${operatingsystem}/private/resource.cfg.${architecture}", owner => root, group => nagios, mode => '0640'; } } |