From ad027cc28c60bcaca2392336e5555bfd823a2af1 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 30 Jun 2011 16:21:19 -0300 Subject: Adding ekeyd::host::debian class --- .gitignore | 1 + manifests/host/debian.pp | 3 +++ manifests/init.pp | 3 +-- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .gitignore create mode 100644 manifests/host/debian.pp diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1377554 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.swp diff --git a/manifests/host/debian.pp b/manifests/host/debian.pp new file mode 100644 index 0000000..a457ae7 --- /dev/null +++ b/manifests/host/debian.pp @@ -0,0 +1,3 @@ +class ekeyd::host::debian inherits ekeyd::host::base { + package { "usbutils": ensure => installed } +} diff --git a/manifests/init.pp b/manifests/init.pp index b3b780d..b337d5b 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -3,8 +3,6 @@ class ekeyd( $ekeyd_masterkey ){ - package { "usbutils": ensure => installed } - if $ekeyd_key_present != 'true' { fail("Can't find an ekey key plugged into usb on ${fqdn}") } include ekeyd::base @@ -12,6 +10,7 @@ class ekeyd( if $ekeyd_host { case $operatingsystem { centos: { include ekeyd::host::centos } + debian: { include ekeyd::host::debian } default: { include ekeyd::host::base } } -- cgit v1.2.3