diff options
author | mh <mh@immerda.ch> | 2011-07-07 02:06:20 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2011-07-07 02:06:36 +0200 |
commit | 50c377ccc2748aa8355fe0762341723bf45ae7db (patch) | |
tree | 6dc1fe27e9fb7d31ce98a5f4e6ef9acc752618dc /manifests/egd.pp | |
parent | db9ae1e8e30a6065779b84194571a725b67eaf9c (diff) | |
download | puppet-ekeyd-50c377ccc2748aa8355fe0762341723bf45ae7db.tar.gz puppet-ekeyd-50c377ccc2748aa8355fe0762341723bf45ae7db.tar.bz2 |
refactor egd to be multiple os capable
Diffstat (limited to 'manifests/egd.pp')
-rw-r--r-- | manifests/egd.pp | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/manifests/egd.pp b/manifests/egd.pp index 8a7da6f..cb5fcca 100644 --- a/manifests/egd.pp +++ b/manifests/egd.pp @@ -1,17 +1,10 @@ class ekeyd::egd { - package{'ekeyd-egd-linux': - ensure => present, - before => Service['egd-linux'], + if ( $virtual == "vserver" ) { + fail("This class shouldn't be included on vservers") } - service{'egd-linux': - enable => true, - ensure => running, - } - - if $use_shorewall { - Service['egd-linux']{ - require => Service['shorewall'], - } + case $operatingsystem { + debian: { include ekeyd::egd::debian } + default: { include ekeyd::egd::base } } } |