summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2011-03-01 22:35:45 +0100
committermh <mh@immerda.ch>2011-03-01 22:35:45 +0100
commitbd9fa966f4bbd46693548a95d818adb3dc8ef3eb (patch)
tree151f53a16c1a6768a465bc8df3ada115735cc819 /manifests/init.pp
parente7a1d738c9c95ff059fbaeff107d91a2e1742f8e (diff)
downloadpuppet-ekeyd-bd9fa966f4bbd46693548a95d818adb3dc8ef3eb.tar.gz
puppet-ekeyd-bd9fa966f4bbd46693548a95d818adb3dc8ef3eb.tar.bz2
do host stuff and set key with parametrized classes, but work around a bug in puppet regarding parametrized classes
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp17
1 files changed, 15 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 8ef05d2..83ee949 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -1,7 +1,20 @@
-class ekeyd {
+class ekeyd(
+ $ekey_host = false,
+ $ekey_masterkey
+){
if $ekeyd_key_present != 'true' { fail("Can't find an ekey key plugged into usb on ${fqdn}") }
- if !$ekey_masterkey { fail("You need to define \$ekey_masterkey for ${fqdn}") }
include ekeyd::base
+
+ if $ekey_host {
+ case $operatingsystem {
+ centos: { include ekeyd::host::centos }
+ default: { include ekeyd::host::base }
+ }
+
+ if $use_shorewall {
+ include shorewall::rules::ekeyd
+ }
+ }
}