Issue #86 has been updated by Peter Meier.
> We just do not have state anywhere to say a file as in the first block also
> created all the parents at some point months ago and store that for all
> future invocations to then also create these additional resources. Even
> creating resources on the fly to fill those gaps wont work because presumably
> on the 2nd run the logic that made all the parent resources will be skipped
> since hte parents exist already and as described we will leave existing dirs
> alone, else where do you draw the line between not editing / ? or between not
> editing /var/cache but letting it edit /var/cache/foo? there's way too many
> edge cases.
>
> This further breaks if you have something like class apache::install { } that
> sets up the parent dir for all your vhosts and such using this feature, on
> another machine perhaps you created one of the parent dirs in another class
> already using file{}. The result would be that if you included
> apache::install on different machines the result across different type of
> machine would not be the same and would not be predictable.
good catch about getting unpredictable, even the one over time. running the
same puppet manifest on 2 hosts should get the same result.
----------------------------------------
Feature #86: Directory creation fails if parent directory does not exist
http://projects.reductivelabs.com/issues/86
Author: Redmine Admin
Status: Accepted
Priority: Normal
Assigned to:
Category: file
Target version: unplanned
Complexity: Medium
Patch: None
Affected version: 0.24.7
Keywords: feature
I tried
file {"/usr/local/share/puppet/sopext/facter" :
ensure => directory,
recurse => true
}
but get erros that the parent diretories are not available.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://reductivelabs.com/redmine/my/account
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" 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-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---