Issue #3091 has been updated by Paul Tötterman.
Sure.
First I had something like this, and it was working:
<pre>
node foo {
include bar
package { 'baz': ensure => present }
}
</pre>
Then I was going to expand the stuff a lot and decided to put it in a class to
keep my site.pp simple:
(partial) site.pp:
<pre>
node foo {
include foo
}
</pre>
modules/foo/manifests/init.pp:
<pre>
class foo {
include bar
package { 'baz': ensure => present }
file { '/foo/bar/baz':
ensure => present,
source => 'puppet:///foo/baz',
}
}
</pre>
I realized that the additions to the class compared to the node definition were
not being applied. I reset a few things and confirmed that only the default
node catalog was being applied.
After trying to restart puppetmaster, puppetd, purging configurations from both
etc. I tried to rename the node -block in site.pp:
(partial) site.pp:
<pre>
node foo.example.com {
include foo
}
</pre>
And it started working.
I don't know if this is intended behaviour or not, but I'd like to see better
error messages and documentation if it is.
----------------------------------------
Bug #3091: Node and class name collision leads to confusion
http://projects.reductivelabs.com/issues/3091
Author: Paul Tötterman
Status: Needs more information
Priority: Normal
Assigned to: Paul Tötterman
Category: language
Target version:
Affected version: 0.25.1
Keywords: node class language
Branch:
I had a node with quite lot of specific changes, so when I started needing
files etc. I made it into a module with a class that was named the same as the
nodes short hostname. Then I added stuff to the class that was never in the
node and started wondering why Puppet never applied those changes. When I
changed the node definition to match the fqdn, it started working. So is this a
bug? Or should documentation be better? Or should there be an error while
compiling the catalogue?
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://reductivelabs.com/redmine/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
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-bugs?hl=en.