I'm relatively new to puppet.
Searched online, and could not find an answer to this. I have the
following manifest snippet...
class openvpn {
package { openvpn: ensure => latest }
file {
"/usr/share/openvpn/easy-rsa/2.0/keys":
ensure => directory, owner => root, group => root, mode =>
600,
file {
"/usr/share/openvpn/easy-rsa/2.0/keys/ca.crt":
source => "puppet://$server/openvpn/ca.crt",
owner => root, group => root, mode => 600,
require => File["/usr/share/openvpn/easy-rsa/2.0/keys"],
}
}
Puppet is complaining with...
Jun 19 11:35:59 node1 puppetd[3553]: (//Node[basenode]/openvpn/File[/
usr/share/openvpn/easy-rsa/2.0/keys]/ensure) change from absent to
directory failed: Cannot create /usr/share/openvpn/easy-rsa/2.0/
keys; parent directory /usr/share/openvpn/easy-rsa/2.0 does not exist
Shouldn't puppet automatically create all the subdirectories above usr/
share/openvpn/easy-rsa/2.0 directory for me? If not, do I need to go
and create dependancies for every single node in the directory
hierarchy? That seems a little crazy. Isn't there a better way?
Thanks,
Doug.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---