On 09/01/17 02:52, chris smith wrote:
Hi,
This seems like a pretty simple thing but I can't figure out why this is
throwing a warning.
I'm using puppet 4.8.1 installed from the puppetlabs-pc1 on scientific
linux 6.
# puppet -V
4.8.1
# rpm -q puppet-agent
puppet-agent-1.8.2-1.el6.x86_64
My file is as simple as I can make it:
file {'/test':
ensure => directory,
alias => 'abc',
}
file {'/test/2':
ensure => directory,
require => File['abc'],
}
When I run it, it complains:
# puppet apply test.pp
Warning: Could not find resource 'File[abc]' in parameter 'require'
(at /root/test.pp:8)
Notice: Compiled catalog for sl-x86-64.local in environment production
in 0.10 seconds
Notice: /Stage[main]/Main/File[/test]/ensure: created
Notice: /Stage[main]/Main/File[/test/2]/ensure: created
Notice: Applied catalog in 0.04 seconds
Though it seems to apply the resources in the correct order (I haven't
had it fail trying to create /test/2 before /test).
Any info or ideas would be great.
The reason it works is because the default ordering is "manifest order"
and your manifest has the resources in the correct order.
The reference File['abc'] does not succeed because 'abc' is an alias,
and not the title - I believe there is a ticket about that already logged.
- henrik
--
Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/1d0fd21d-f1a2-5f41-b53d-b0de9c4873f8%40puppet.com.
For more options, visit https://groups.google.com/d/optout.