Hello,
We have a weird problem with includes:
err: Could not retrieve catalog from remote server: Error 400 on SERVER:
Could not find resource 'Class[Common_software]' for relationship from
'Class[Default_repositories]'
My wild guess would be that "common_software" gets in before
"default_repositories" and thus the error message. If i run agent again it
sometimes goes away and configuration gets applied, sometimes it does not.
I even tried using stages, did not help.
nodes.pp looks like this;
stage { pre: before => Stage[main] }
node 'basenode' {
class { 'default_repositories' : stage => pre }
<some stuff here>
include common_software-site
<some more stuff here>
}
We have multiple (read: many) sites with configuration which varies here
and there. To make things a bit more sane and to reduce duplication we
decided to have common code base we ship to each site which then changes
from site to site using inheritance mechanism, so, for example, there is
class called "common_software" which defines some resources and then there
is "common_software-site" which inherits base class and adds some
functionality.
If I include child class in nodes.pp problem is there, but including parent
class fixes the problem.
Any thoughts on the matter?
BR,
Nikita
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/X2-ki-AVTZ0J.
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-users?hl=en.