On 2014-12-09 14:57, Juan Sierra Pons wrote:
Hi,
I am using a mix of the following two blog post:
[1] A modern Puppet Master from scratch
[2] Puppet Infrastructure
After upgrading to 3.7 I am getting the following error message
Error: Could not retrieve catalog from remote server: Error 400 on
SERVER: Evaluation Error: Illegal Resource Type expression, expected
result to be a type name, or untitled Resource, got Type[Class] at
/etc/puppet/environments/production/site/profiles/manifests/base.pp:5:3
on node server3.example.com
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
With 3.6 it worked like a charm.
From the error message, I think you are using the future parser.
Did you use the future parser on 3.6 as well?
The base.pp is like this:
class profiles::base {
anchor { 'profiles::base': }
Class { require => Anchor['profiles::base'] }
users { users: }
}
It looks like your intention is to set the default for every class in
the entire system to have a require of Anchor['profiles::base']. Is that
true, or are you trying to achieve something else?
Read more about containment here:
https://docs.puppetlabs.com/puppet/latest/reference/lang_containment.html
- 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/lv6sn3%242mk%241%40ger.gmane.org.
For more options, visit https://groups.google.com/d/optout.