Skip to content

Commit

Permalink
Fix key generation
Browse files Browse the repository at this point in the history
  • Loading branch information
emning committed Oct 26, 2014
1 parent c5ab124 commit d52758c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifests/eyaml.pp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
exec { 'createkeys':
user => $owner,
cwd => $confdir,
command => "${cmdpath}/eyaml createkeys",
command => 'eyaml createkeys',
path => $cmdpath,
creates => "${confdir}/keys/private_key.pkcs7.pem",
require => Package['hiera-eyaml'],
Expand Down
6 changes: 6 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@
# Note: You need to manage any package/gem dependancies
# Default: native
#
# [*cmdpath*]
# Search paths for command binaries, like the 'eyaml' command.
# The default should cover most cases.
# Default: ['/opt/puppet/bin', '/usr/bin', '/usr/local/bin']
#
# === Actions:
#
# Installs either /etc/puppet/hiera.yaml or /etc/puppetlabs/puppet/hiera.yaml.
Expand Down Expand Up @@ -104,6 +109,7 @@
$eyaml_extension = $hiera::params::eyaml_extension,
$confdir = $hiera::params::confdir,
$logger = $hiera::params::logger,
$cmdpath = $hiera::params::cmdpath,
$merge_behavior = undef,
$extra_config = '',
) inherits hiera::params {
Expand Down
3 changes: 1 addition & 2 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,16 @@
$owner = 'pe-puppet'
$group = 'pe-puppet'
$provider = 'pe_gem'
$cmdpath = '/opt/puppet/bin'
$confdir = '/etc/puppetlabs/puppet'
} else {
$hiera_yaml = '/etc/puppet/hiera.yaml'
$datadir = '/etc/puppet/hieradata'
$owner = 'puppet'
$group = 'puppet'
$provider = 'gem'
$cmdpath = '/usr/bin/puppet'
$confdir = '/etc/puppet'
}
$cmdpath = ['/opt/puppet/bin', '/usr/bin', '/usr/local/bin']
$datadir_manage = true
$backends = ['yaml']
$logger = 'console'
Expand Down

0 comments on commit d52758c

Please sign in to comment.