Skip to content

Commit

Permalink
Merge pull request #34 from emning/eyamlperms
Browse files Browse the repository at this point in the history
Fix eyaml key permissions
  • Loading branch information
hunner committed Nov 21, 2014
2 parents 6453746 + 9abc48d commit 212de3a
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions manifests/eyaml.pp
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,18 @@
require => Package['hiera-eyaml'],
}

$eyaml_files = [
"${confdir}/keys/private_key.pkcs7.pem",
"${confdir}/keys/public_key.pkcs7.pem"]

file { $eyaml_files:
file { "${confdir}/keys/private_key.pkcs7.pem":
ensure => file,
mode => '0604',
mode => '0600',
owner => $owner,
group => $group,
require => Exec['createkeys'],
}

file { "${confdir}/keys/public_key.pkcs7.pem":
ensure => file,
mode => '0644',
owner => $owner,
group => $group,
require => Exec['createkeys'],
Expand Down

0 comments on commit 212de3a

Please sign in to comment.