diff options
author | mh <mh@immerda.ch> | 2008-04-25 17:35:43 +0000 |
---|---|---|
committer | mh <mh@immerda.ch> | 2008-04-25 17:35:43 +0000 |
commit | e6c656d503d8a7272d29f6191688520c43cf8fb8 (patch) | |
tree | 066618bd6cff1dc1401874cc62b01751555a6490 /manifests | |
parent | 9e27378e4f43612c8dfe3ed6dc93fc2c2d37d47e (diff) |
ntp: removed paths for execs, puppet: subclassed gentoo stuff
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index ace5939..7f1abd4 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -6,7 +6,11 @@ class puppet { case $kernel { - linux: { include puppet::linux} + linux: { case $operatingsystem { + gentoo: { include puppet::gentoo } + default: { include puppet::linux} + } + } openbsd: { include puppet::openbsd} } @@ -32,27 +36,17 @@ class puppet { class puppet::linux { package{'puppet': - name => 'puppet', - category => $operatingsystem ? { - gentoo => 'app-admin', - default => '', - }, ensure => present, } package{'facter': - name => 'facter', - category => $operatingsystem ? { - gentoo => 'dev-ruby', - default => '', - }, ensure => present, } service{'puppet': ensure => running, enable => true, - #hasstatus => true, + hasstatus => true, require => Package[puppet], } @@ -66,6 +60,18 @@ class puppet::linux { ], } } +class puppet::gentoo inherits puppet::linux { + Package[puppet]{ + category => 'app-admin', + } + Package[facter]{ + category => 'dev-ruby', + } + # as we use sometimes the init script to test + Service[puppet]{ + hasstatus => false, + } +} class puppet::openbsd { service{'puppet': provider => base, |