Drop the :: from your hiera.yaml, it's being taken literally as '::role' rather than defining scope.
Regards Craig On Tue, Mar 11, 2014 at 9:17 AM, Dirk Heinrichs <[email protected]> wrote: > Hi, > > I'm trying to categorize our Puppet agent nodes via custom facts. To do > this, I've placed a simple text file "custom_facts.txt" into > C:\ProgramData\PuppetLabs\facter\facts.d with content > > [facts] > role = PuppetDev > > When I call facter on the agent node, I can see the new fact. > > On the server, I've added a line > > - "role/%{::role}" > > into /etc/hiera.yaml, below the :hierarchy: line and restarted the master. > > Finally, I've added /etc/puppet/hiera/role/PuppetDev.yaml with content > > --- > puppet_agent::version: 3.4.3 > > while /etc/puppet/hiera/common.yaml has > > puppet_agent::version: 3.4.2 > > To verify that the correct version is delivered, I run > > hiera puppet_agent::version ::role=PuppetDev > > and get the correct version (3.4.3) back. > > However, when I run the puppet agent on the node, it has role unset and > thus it doesn't try to update the puppet agent. > > What am I doing wrong here? > > Master is 3.4.3, agents are 3.4.2. > > Thanks... > > Dirk > -- > > *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions > *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach > *Tel*: +49 2226 1596666 (Ansage) 1149 > *Email*: [email protected] > *Skype*: dirk.heinrichs.recommind > www.recommind.com > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/531ED4B8.5060001%40recommind.com<https://groups.google.com/d/msgid/puppet-users/531ED4B8.5060001%40recommind.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- *Enviatics *| Automation and configuration management http://www.enviatics.com | @Enviatics Puppet Training http://www.enviatics.com/training/ -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CACxdKhFd11Y9apR30w45P9GDfjBw-NxLXkVDftPs0DxBWuYx%3Dg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
<<inline: Logo.gif>>
