2009/6/19 Douglas <doug.garst...@gmail.com>

>
> I'm relatively new to puppet.
>
> Searched online, and could not find an answer to this. I have the
> following manifest snippet...



>
> [snip]



>
> 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.
>

Yeah, this is an old and know issue (unfortunately).

Original bug report:
http://projects.reductivelabs.com/issues/86


You can work around it with a hackish exec:

exec { "mkdir -p /usr/share/openvpn/easy-rsa/2.0/keys": }

then tack that exec as a require to your file "/usr/share/openvpn/easy-rsa/
2.0/keys":

.r'



p.s.  puppet is smart enough to handle adding the dependency between the
directory and the file within that directory so you don't need that one
require you already have.  Also you can save yourself some typing by doing:

file {
    "/dir":
       ensure => directory,
       mode => 644;
   "/dir/file":
        content => "blah";
}

just note the ";" between items.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to