diff options
author | Pascal Terjan <pterjan@mageia.org> | 2011-05-30 18:39:30 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2011-05-30 18:39:30 +0000 |
commit | 919bd7088ec45634e6f660090a143ea2af73a91e (patch) | |
tree | 91ee3c51cff2ba5a31a9f6c7cc8bbae6090e6ae3 /deployment/releasekey | |
parent | a5e2b2c3d0ef04095328f6a6504c398a135f66b8 (diff) | |
download | puppet-919bd7088ec45634e6f660090a143ea2af73a91e.tar puppet-919bd7088ec45634e6f660090a143ea2af73a91e.tar.gz puppet-919bd7088ec45634e6f660090a143ea2af73a91e.tar.bz2 puppet-919bd7088ec45634e6f660090a143ea2af73a91e.tar.xz puppet-919bd7088ec45634e6f660090a143ea2af73a91e.zip |
Add a script to sign isos
Diffstat (limited to 'deployment/releasekey')
-rw-r--r-- | deployment/releasekey/manifests/init.pp | 7 | ||||
-rw-r--r-- | deployment/releasekey/templates/sign_checksums | 11 |
2 files changed, 18 insertions, 0 deletions
diff --git a/deployment/releasekey/manifests/init.pp b/deployment/releasekey/manifests/init.pp index a96b0a89..89310040 100644 --- a/deployment/releasekey/manifests/init.pp +++ b/deployment/releasekey/manifests/init.pp @@ -29,5 +29,12 @@ class releasekey { keydir => $sign_keydir, require => User[$sign_login], } + + file { "/usr/local/bin/sign_checksums": + ensure => present, + owner => $sign_login, + mode => 700, + content => template("releasekey/sign_checksums"), + } } } diff --git a/deployment/releasekey/templates/sign_checksums b/deployment/releasekey/templates/sign_checksums new file mode 100644 index 00000000..28ea7871 --- /dev/null +++ b/deployment/releasekey/templates/sign_checksums @@ -0,0 +1,11 @@ +#!/bin/bash + +if [ $# -lt 1 ]; then + echo "Usage: $0 <directory>" +fi + +directory=$1 +cd "$directory" +for chksum in *.md5 *.sha1; do + gpg --homedir "<%= keydir %>" --yes --sign "$chksum" +done |