diff options
author | mh <mh@immerda.ch> | 2011-03-01 21:56:22 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2011-03-01 21:56:22 +0100 |
commit | e7a1d738c9c95ff059fbaeff107d91a2e1742f8e (patch) | |
tree | 34d6274c4ab11602ac564e6f8c70703ffb6b5a1d /manifests/host | |
parent | 374d403d3417b72bd54edfed73ee193d21b5d5bb (diff) | |
download | puppet-ekeyd-e7a1d738c9c95ff059fbaeff107d91a2e1742f8e.tar.gz puppet-ekeyd-e7a1d738c9c95ff059fbaeff107d91a2e1742f8e.tar.bz2 |
add egd-management
We can now run hosts with a key in the host mode, so it will
provide entropy to other hosts. Furthermore we can define clients
that will collect entropy from such a host.
Diffstat (limited to 'manifests/host')
-rw-r--r-- | manifests/host/base.pp | 15 | ||||
-rw-r--r-- | manifests/host/centos.pp | 6 |
2 files changed, 21 insertions, 0 deletions
diff --git a/manifests/host/base.pp b/manifests/host/base.pp new file mode 100644 index 0000000..ec8525b --- /dev/null +++ b/manifests/host/base.pp @@ -0,0 +1,15 @@ +class ekeyd::host::base inherits ekeyd::base { + sysctl::value{'kernel.random.write_wakeup_threshold': + value => 1024 + } + + File['/etc/entropykey/ekeyd.conf']{ + source => 'puppet:///modules/ekeyd/ekeyd.conf.daemon', + } + + Service['ekeyd']{ + before => Service['egd-linux'], + } + + include ekeyd::egd +} diff --git a/manifests/host/centos.pp b/manifests/host/centos.pp new file mode 100644 index 0000000..d989d55 --- /dev/null +++ b/manifests/host/centos.pp @@ -0,0 +1,6 @@ +class ekeyd::host::centos inherits ekeyd::host::base { + file{'/etc/sysconfig/egd-linux': + ensure => 'absent', + notify => Service['egd-linux'], + } +} |