On Wed, Dec 15, 2010 at 02:27:46PM -0800, Jay N. wrote: > Hi, > > I thought I would have no problem with that but /etc/puppet is > autorequired by /etc/puppet/files, which means a dependency cycle. So > my first question is, is there a way to avoid that unwanted > autorequiring? >
An explicit require should overwrite any autorequire and should not
cause a dependency cycle. You should see something like this when
running in debugmode
debug: /Stage[main]//Node[default]/File[/etc/puppet/files]: Skipping
automatic relationship with File[/etc/puppet]
I just tried that on my own to be sure:
node default {
file { '/etc/puppet':
require => File['/etc/puppet/files'],
ensure => directory,
}
file { '/etc/puppet/files':
ensure => directory,
}
}
Worked for me
-Stefan
pgpC4tNwfWxDz.pgp
Description: PGP signature
