diff options
Diffstat (limited to 'modules/gnupg')
-rw-r--r-- | modules/gnupg/manifests/client.pp | 11 | ||||
-rw-r--r-- | modules/gnupg/manifests/init.pp | 14 |
2 files changed, 11 insertions, 14 deletions
diff --git a/modules/gnupg/manifests/client.pp b/modules/gnupg/manifests/client.pp new file mode 100644 index 00000000..1c8f6210 --- /dev/null +++ b/modules/gnupg/manifests/client.pp @@ -0,0 +1,11 @@ +class gnupg::client { + package {['gnupg', + 'rng-utils']: + } + + local_script { 'create_gnupg_keys.sh': + content => template('gnupg/create_gnupg_keys.sh') + } +} + + diff --git a/modules/gnupg/manifests/init.pp b/modules/gnupg/manifests/init.pp index 0c183c56..c2237264 100644 --- a/modules/gnupg/manifests/init.pp +++ b/modules/gnupg/manifests/init.pp @@ -1,18 +1,4 @@ class gnupg { - class client { - package { ["gnupg","rng-utils"]: - ensure => present, - } - - file { "/usr/local/bin/create_gnupg_keys.sh": - ensure => present, - owner => root, - group => root, - mode => 755, - content => template('gnupg/create_gnupg_keys.sh') - } - } - # debian recommend SHA2, with 4096 # http://wiki.debian.org/Keysigning # as they are heavy users of gpg, I will tend |