New Puppet Master install not creating packages when adding Class

991 views
Skip to first unread message

aspo73

unread,
Apr 10, 2014, 2:29:51 AM4/10/14
to puppet...@googlegroups.com
Hi all.

I've just installed Puppet Master for the first time.  Everything seems to be up and running OK on Centos 6.5.

I don't have a local Yum repo so was hoping to use PE Package Management method as outlined here:  http://docs.puppetlabs.com/pe/latest/install_basic.html#installing-agents (Installing Agents Using PE Package Management),

I've added the required Class for the node I'm hoping to install the Agent on (pe_repo::platform::el_5_x86_64) and set off a Puppet Run, but I'm not seeing any new packages in /opt/puppet/packages/public.  I'm also not seeing any errors adding the Class, or performing the Run.

I have a feeling I'm missing something quite fundamental here, but as this is Puppet Day One I was hoping someone could point me in the right direction.

As I have no packages, running curl -k https://<master hostname>:8140/packages/current/install.bash | bash. results in the following 

Please classify puppet.no.genbook.com with the pe_repo::platform::el_5_x86_64 class in the Puppet Enterprise console in order to add support for installing el-5-x86_64 agents

Any assistance much appreciated.




jcbollinger

unread,
Apr 10, 2014, 9:45:58 AM4/10/14
to puppet...@googlegroups.com


On Thursday, April 10, 2014 1:29:51 AM UTC-5, aspo73 wrote:
Hi all.

I've just installed Puppet Master for the first time.  Everything seems to be up and running OK on Centos 6.5.

I don't have a local Yum repo so was hoping to use PE Package Management method as outlined here:  http://docs.puppetlabs.com/pe/latest/install_basic.html#installing-agents (Installing Agents Using PE Package Management),



These instructions are centered around how you need to configure the master to enable it to support agent installations.  They assume that the master is managing itself via a Puppet agent running on the same node, which I guess is normal for PE (and common for OS, too).

 
I've added the required Class for the node I'm hoping to install the Agent on (pe_repo::platform::el_5_x86_64) and set off a Puppet Run, but I'm not seeing any new packages in /opt/puppet/packages/public.  I'm also not seeing any errors adding the Class, or performing the Run.


Make sure you have assigned that class to the master's node (as opposed to the node you are trying to install, for example).  Also, afterward wait for (or force) an agent run on the master to apply that new configuration.

 

I have a feeling I'm missing something quite fundamental here, but as this is Puppet Day One I was hoping someone could point me in the right direction.

As I have no packages, running curl -k https://<master hostname>:8140/packages/current/install.bash | bash. results in the following 

Please classify puppet.no.genbook.com with the pe_repo::platform::el_5_x86_64 class in the Puppet Enterprise console in order to add support for installing el-5-x86_64 agents



That's the message the docs tell you to expect if the needed platform support has not been set up on the master.  I am very much inclined to think that either you have not assigned the specified class to the master (though maybe you assigned it to some other node), or that it has not successfully been applied there.


John

aspo73

unread,
Apr 10, 2014, 7:50:55 PM4/10/14
to puppet...@googlegroups.com
Hi John.
It does look as though I've set up the master to manage itself OK, as I'm seeing my host listed here:
Is this what I should expect?
I also include the class showing as added here:
I can't see any way within the Class menu to force assignment of that pe_repo::platform::el_5_x86_64 class either to the master node, or to another node, other than the way I've already use to simply add it.
Thanks very much for your help so far.  
Dan.

jcbollinger

unread,
Apr 11, 2014, 9:52:54 AM4/11/14
to puppet...@googlegroups.com


On Thursday, April 10, 2014 6:50:55 PM UTC-5, aspo73 wrote:
Hi John.
It does look as though I've set up the master to manage itself OK, as I'm seeing my host listed here:
Is this what I should expect?
I also include the class showing as added here:
I can't see any way within the Class menu to force assignment of that pe_repo::platform::el_5_x86_64 class either to the master node, or to another node, other than the way I've already use to simply add it.
Thanks very much for your help so far.  



I think what you have done is add the class 'pe_repo::platform::el_5_x86_64' to the list of those available for assignment to nodes.  The number 0 to the right of it is the number of nodes to which this class has been assigned, I believe.  You should be able to verify that by clicking on the class name in that "Classes" panel to bring up its detail page -- one of the details reported is to which nodes the class has been assigned.

Your computers don't all have the same configuration requirements, and probably some have conflicting requirements.  Puppet allows you to model all those possibly-conflicting configurations via modules, classes, and data, but just because Puppet knows how to configure nodes in a particular way doesn't mean it should configure them that way.  You need to fill in the blanks by telling it what configuration to apply to each node (or group of similar nodes): http://docs.puppetlabs.com/pe/latest/console_classes_groups.html#assigning-classes-and-groups-to-nodes.  In particular, you may want to look at http://docs.puppetlabs.com/pe/latest/console_classes_groups.html#editing-classes-on-nodes.

tl;dr: go to the Nodes section of the console, select the master node (should be the only one at this point), and edit it to add the desired class to its class list.


John

Dan Aspinall

unread,
Apr 30, 2014, 11:12:00 PM4/30/14
to puppet...@googlegroups.com
Apologies for the delay in responding - been on leave.

That is exactly the problem so thank you so much.  I didn't know that you had to add the class to the node as well.  I thought from the main console screen was sufficient.

Thanks again!



--
You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/_oGm3XIoD7Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/9a78af8e-972f-45cb-86b9-9ecfdb1a331d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages