diff options
author | Micah Anderson <micah@riseup.net> | 2013-01-31 18:26:21 -0500 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2013-01-31 18:26:21 -0500 |
commit | 456212d16e55e1299c2d9bfcc7965b40e0318cb4 (patch) | |
tree | 4acf90570ceb247e1dcbf193792c3c2b893634c9 | |
parent | b0a80e7f0dac8abdca32d057452ace7557c9ec67 (diff) |
overriding the group in a define that isn't part of a class is difficult, so
instead of requiring you to do that if you wish to have an application to have
access to the key file, you can pass an alternate to the default group =
'ssl-cert'
-rw-r--r-- | manifests/key.pp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/manifests/key.pp b/manifests/key.pp index 79031f5..4296a4d 100644 --- a/manifests/key.pp +++ b/manifests/key.pp @@ -1,6 +1,7 @@ define x509::key ( $content = 'absent', - $source = 'absent' + $source = 'absent', + $group = 'ssl-cert' ) { include x509::variables include x509::base @@ -8,7 +9,7 @@ define x509::key ( file { "${x509::variables::keys}/${name}.key": ensure => file, mode => '0640', - group => 'ssl-cert', + group => $group, require => Package['ssl-cert'] } |