summaryrefslogtreecommitdiffstats
path: root/lib/puppet/interface/documentation.rb
diff options
context:
space:
mode:
authorIan Ward Comfort <icomfort@stanford.edu>2011-02-17 17:23:29 -0800
committerJacob Helwig <jacob@puppetlabs.com>2011-04-22 11:10:59 -0700
commitf21162bdbae516d2613052d35a2f8bbd34d0bf86 (patch)
tree41eb0d91a769542ef9b2eb5318db702e2f9f315a /lib/puppet/interface/documentation.rb
parentea348761df0b5297dbac50c7f1c48d22746524fa (diff)
downloadpuppet-f21162bdbae516d2613052d35a2f8bbd34d0bf86.tar.gz
puppet-f21162bdbae516d2613052d35a2f8bbd34d0bf86.tar.xz
puppet-f21162bdbae516d2613052d35a2f8bbd34d0bf86.zip
(#6368) Make the File type autorequire its nearest ancestor directory
The File type will now autorequire the nearest ancestor directory found in the catalog, not just the file's parent directory. This is useful for setting up transitive relationships in cases when a package or other resource creates a large directory hierarchy, e.g. package { 'foo': ensure => present } file { '/var/lib/foo': require => Package['foo'] } This will make File resources at arbitrarily deep levels under /var/lib/foo automatically (transitively) require the foo package. Only the nearest ancestor is autorequired, to prevent explosion of the relationship graph.
Diffstat (limited to 'lib/puppet/interface/documentation.rb')
0 files changed, 0 insertions, 0 deletions