Hi > Is there any way to create a parent directory for a file if it doesn't > exist? > > Trying this: > > file { "/etc/crontabs/$title.crontab": > source => "puppet:///crontabs/$title.crontab", > ensure => present, > owner => $user, > recurse => true > } > > but it's failing because /etc/crontabs doesn't exist.
you have to manage the parent directory as well, as it is something you like to manage with puppet! so: file{'/etc/crontabs': ensure => directory, } puppet will automagically precede this file definition the one above. greets pete. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---