Ask Your Question

running puppet apply from a node to install a class held on the puppetmaster

asked 2015-12-03 09:24:56 -0600

barkwayp gravatar image

We have a node provisioned via a CLM image and I wish to get CLM to apply certain puppet classes during the provisioning process. I think I need to run "puppet apply" from the command line on the node but can't get it to look up the class from the puppetmaster. Does anyone know what the best method of doing this is please?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-12-03 10:52:20 -0600

puppet agent -t --tags name-of-module

this will enable you to run just one specific module -- you can also 'tag'groups of modules with a name and then run puppet agent -t tagname and this will run the group of modules.

edit flag offensive delete link more


Thanks for your reply. I tried it but it didn't work. I must be doing something daft but with --debug turned on I get the following: Debug: /Schedule[daily]: Not tagged with Debug: /Schedule[monthly]: Not tagged with Debug: /Schedule[hourly]: Not tagged with

barkwayp gravatar imagebarkwayp ( 2015-12-05 09:01:01 -0600 )edit

hi - what command are you running exactly? cheers Stuart

sahumphries gravatar imagesahumphries ( 2015-12-07 06:47:15 -0600 )edit

puppet agent -t --tags mymodule I'm using puppet dashboard and I noticed that if the class is associated with the node then this works. However, what I am trying to do is, during the provisioning of the server, I want to run mymodule as a one off to help do initial configuration.

barkwayp gravatar imagebarkwayp ( 2015-12-07 10:38:14 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-12-03 09:24:56 -0600

Seen: 131 times

Last updated: Dec 03 '15