server not listed in manifests, but gets catalog

31 views
Skip to first unread message

Andreas Dvorak

unread,
Jan 11, 2016, 7:47:56 AM1/11/16
to Puppet Users
Hi,

after the update of the puppet master from 3.3.1 to 3.6.2 a host gets a catalog even if it is not defined in manifests. Is this a new funcationality? I did not see anything in the release notes.
It gets a catalog with all the information from profiles::base

manifests/
cat site.pp
node default {
    notify { 'Server ist noch nicht in Puppet definiert': }
}

if versioncmp($::puppetversion, '3.6.0') >= 0 {
    Package {
          allow_virtual => true,
            }
}

hiera_include('classes')

a nodes.pp with server, but not the one

hiera/
cat common.yaml
classes:
  - profiles::base


Best regards
Andreas

Martin Alfke

unread,
Jan 11, 2016, 8:57:52 AM1/11/16
to puppet...@googlegroups.com
Hi Andreas,
On 11.01.2016, at 13:47, Andreas Dvorak <andreas...@gmail.com> wrote:

Hi,

after the update of the puppet master from 3.3.1 to 3.6.2 a host gets a catalog even if it is not defined in manifests. Is this a new funcationality? I did not see anything in the release notes.
It gets a catalog with all the information from profiles::base

manifests/
cat site.pp
node default {
    notify { 'Server ist noch nicht in Puppet definiert': }
}

if versioncmp($::puppetversion, '3.6.0') >= 0 {
    Package {
          allow_virtual => true,
            }
}

hiera_include('classes’)

The hiera_include is done in global scope, not within a node scope.
This means, that every node should get classes included from ‘classes’ hiera key.


a nodes.pp with server, but not the one

hiera/
cat common.yaml
classes:
  - profiles::base

And this is where the hiera_include gets its classes which should be put into the catalog for all nodes.

Nothing uncommon.
Expected behavior.

Best,
Martin



Best regards
Andreas

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/9377c926-8550-40ef-962b-d036e06bf33f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andreas Dvorak

unread,
Jan 11, 2016, 10:09:20 AM1/11/16
to Puppet Users
Hi,

now I understand. Thank you.

Andreas
Reply all
Reply to author
Forward
0 new messages