FAQ
Hello Gav and Meiji,
I tried all the above.. still it doesn't solve my issue any further
suggestion?

my output when I run "puppet device --verbose"

# puppet device --verbose
info: starting applying configuration to sw1 at telnet://10.0.0.1/
info: Creating a new SSL key for sw1
err: Could not request certificate: Could not write
/var/opt/lib/pe-puppet/devices/sw1/ssl/private_keys/sw1.pem to
privatekeydir: Permission denied -
/var/opt/lib/pe-puppet/devices/sw1/ssl/private_keys/sw1.pem
info: Creating a new SSL key for sw1
err: Could not request certificate: Could not write
/var/opt/lib/pe-puppet/devices/sw1/ssl/private_keys/sw1.pem to
privatekeydir: Permission denied -
/var/opt/lib/pe-puppet/devices/sw1/ssl/private_keys/sw1.pem
info: Creating a new SSL key for sw1
err: Could not request certificate: Could not write
/var/opt/lib/pe-puppet/devices/sw1/ssl/private_keys/sw1.pem to
privatekeydir: Permission denied -
/var/opt/lib/pe-puppet/devices/sw1/ssl/private_keys/sw1.pem
.
.
.
.

Thanks,
Vatsa
On Monday, 5 November 2012 13:17:05 UTC-8, Gavin Williams wrote:

Try changing the file owner/group to match what you're running puppet
as...

Gav

On 5 November 2012 20:51, meiji wang <wang...@gmail.com <javascript:>>wrote:
Although I change the mode to 0777, Puppet forces the mode to 0750

debug: /File[/var/opt/lib/pe-puppet/devices/certname/state]:
Autorequiring File[/var/opt/lib/pe-puppet/devices/certname]
debug: /File[/var/opt/lib/pe-puppet/devices/certname/clientbucket]/mode:
mode changed '0777' to '0750'
debug: /File[/var/opt/lib/pe-puppet/devices/certname/ssl]/mode: mode
changed '0777' to '0771'
debug: /File[/var/opt/lib/pe-puppet/devices/certname/ssl/private]/mode:
mode changed '0777' to '0750'
debug: /File[/var/opt/lib/pe-puppet/devices/certname/state]/mode: mode
changed '0777' to '1755'
debug:
/File[/var/opt/lib/pe-puppet/devices/certname/ssl/private_keys]/mode: mode
changed '0777' to '0750'
debug: /File[/var/opt/lib/pe-puppet/devices/certname/client_yaml]/mode:
mode changed '0777' to '0750'
debug: /File[/var/opt/lib/pe-puppet/devices/certname/client_data]/mode:
mode changed '0777' to '0750'
info: Creating a new SSL key for certname
......
err: Could not request certificate: Could not write
/var/opt/lib/pe-puppet/devices/certname/ssl/private_keys/certname.pem to
privatekeydir: Permission denied -
/var/opt/lib/pe-puppet/devices/certname/ssl/private_keys/certname.pem


then Puppet throws error message..

Meiji

On Monday, November 5, 2012 8:18:03 AM UTC-8, meiji wang wrote:

1. I get the following error when I run “puppet device’

err: Could not request certificate: Could not write
/var/opt/lib/pe-puppet/**devices/certname/ssl/private_**keys/certname.pem
to privatekeydir: Permission denied - /var/opt/lib/pe-puppet/**
devices/certname/ssl/private_**keys/certname.pem

Any thought?


Thanks,
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/CEDQ4q9o5uEJ.
To post to this group, send email to puppet...@googlegroups.com<javascript:>
.
To unsubscribe from this group, send email to
puppet-users...@googlegroups.com <javascript:>.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 5 of 7 | next ›
Discussion Overview
grouppuppet-users @
categoriespuppet
postedNov 5, '12 at 4:18p
activeJul 18, '13 at 1:10p
posts7
users4
websitepuppetlabs.com

People

Translate

site design / logo © 2022 Grokbase