diff options
author | Thomas Backlund <tmb@mageia.org> | 2015-10-20 00:44:46 +0300 |
---|---|---|
committer | Thomas Backlund <tmb@mageia.org> | 2015-10-20 00:44:46 +0300 |
commit | a51e7b5664d0bc35d2fa00f7171d88ed0877cf4a (patch) | |
tree | 032b6d4cb041afc66010772a62717517cc0bbc9d | |
parent | 129d85e11d3d688b0d01b79cbfae9ab102c1ae9f (diff) | |
download | puppet-a51e7b5664d0bc35d2fa00f7171d88ed0877cf4a.tar puppet-a51e7b5664d0bc35d2fa00f7171d88ed0877cf4a.tar.gz puppet-a51e7b5664d0bc35d2fa00f7171d88ed0877cf4a.tar.bz2 puppet-a51e7b5664d0bc35d2fa00f7171d88ed0877cf4a.tar.xz puppet-a51e7b5664d0bc35d2fa00f7171d88ed0877cf4a.zip |
lint fixes for gnupg
-rw-r--r-- | modules/gnupg/manifests/keys.pp | 10 | ||||
-rw-r--r-- | modules/gnupg/templates/batch | 1 |
2 files changed, 5 insertions, 6 deletions
diff --git a/modules/gnupg/manifests/keys.pp b/modules/gnupg/manifests/keys.pp index 948619a2..a9187137 100644 --- a/modules/gnupg/manifests/keys.pp +++ b/modules/gnupg/manifests/keys.pp @@ -14,8 +14,8 @@ define gnupg::keys($email, $keydir = '/var/lib/signbot/keys') { include gnupg::client - file { "$name.batch": - path => "$batchdir/$name.batch", + file { "${name}.batch": + path => "${batchdir}/${name}.batch", content => template('gnupg/batch') } @@ -30,9 +30,9 @@ define gnupg::keys($email, owner => $login, } - exec { "/usr/local/bin/create_gnupg_keys.sh $batchdir/$name.batch $keydir $batchdir/$name.done": + exec { "/usr/local/bin/create_gnupg_keys.sh ${batchdir}/${name}.batch ${keydir} ${batchdir}/${name}.done": user => $login, - creates => "$batchdir/$name.done", - require => [File[$keydir], File["$batchdir/$name.batch"], Package['rng-utils']], + creates => "${batchdir}/${name}.done", + require => [File[$keydir], File["${batchdir}/${name}.batch"], Package['rng-utils']], } } diff --git a/modules/gnupg/templates/batch b/modules/gnupg/templates/batch index 4dff44eb..f4be84d9 100644 --- a/modules/gnupg/templates/batch +++ b/modules/gnupg/templates/batch @@ -6,4 +6,3 @@ Name-Email: <%= email %> Expire-Date: <%= expire_date %> %commit %echo done - |