diff options
author | Leif Johansson <leifj@sunet.se> | 2015-05-09 17:08:26 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2015-05-09 17:08:26 +0200 |
commit | cd7acf3cd7e6a193791220e59a92b07b301dbdc3 (patch) | |
tree | 0386232d357da175bcb940d8e8da2c8760fce342 /global/overlay/etc/puppet/modules/sunet/manifests/ici_ca.pp | |
parent | b426d3fae51f9a15bd99a54a67c6878e4b3f9506 (diff) |
drop old modulessunet-ops-2015-05-09-v12
Diffstat (limited to 'global/overlay/etc/puppet/modules/sunet/manifests/ici_ca.pp')
-rw-r--r-- | global/overlay/etc/puppet/modules/sunet/manifests/ici_ca.pp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/global/overlay/etc/puppet/modules/sunet/manifests/ici_ca.pp b/global/overlay/etc/puppet/modules/sunet/manifests/ici_ca.pp deleted file mode 100644 index 3658142..0000000 --- a/global/overlay/etc/puppet/modules/sunet/manifests/ici_ca.pp +++ /dev/null @@ -1,38 +0,0 @@ -define sunet::ici_ca($pkcs11_module="/usr/lib/softhsm/libsofthsm.so", - $pkcs11_pin=undef, - $pkcs11_key_slot="0", - $pkcs11_key_id="abcd", - $autosign_dir=undef, - $autosign_type="peer", - $public_repo_url=undef, - $public_repo_dir=undef) -{ - apt::ppa {'ppa:leifj/ici': } -> - package { 'ici': ensure => latest } -> - exec { '${name}_setup_ca': - command => "/usr/bin/ici ${name} init", - creates => "/var/lib/ici/${name}" - } -> - file { '${name}_ca_config': - path => "/var/lib/ici/${name}/ca.config", - content => template("sunet/ici_ca/ca.config.erb") - } - if $public_repo_dir and $public_repo_url { - cron {'ici_publish': - command => "test -f /var/lib/ici/${name}/ca.crt && /usr/bin/ici ${name} gencrl && /usr/bin/ici ${name} publish ${public_repo_dir}", - user => "root", - minute => "*/5" - } - } -} - -define sunet::ici_ca::autosign($ca=undef, - $autosign_dir=undef, - $autosign_type="client") -{ - cron {"ici_autosign_${name}": - command => "test -f /var/lib/ici/${ca}/ca.crt && /usr/bin/ici ${ca} issue -t ${autosign_type} -d 365 --copy-extensions ${autosign_dir}", - user => "root", - minute => "*/5" - } -} |