Ask Your Question
0

Running onetime agent from Windows node --tags argument

asked 2017-05-04 09:57:37 -0500

naspar gravatar image

Hi Folks, this is driving me nut since couple days.

I'd need to run one-time configuration from one of the Windows node and be able to pass a parameter or use the --tags (which does not work as far as i can see) to identify the class/es to apply on the node.

Basically I would like to be able to run on demand agent on Windows (therefore no daemon mode) and decide which class/es apply one the node.

I tried the --tags but it does not affect the agent request made against the PuppetServer as it gets what is really defined in the manifest.

Not sure whether it is possible or not, would be nice to hear from you.

PuppetServer : Version 4.10 on Linux CentOS Puppet : 4.10 on Windows node

Thanks! M.

edit retag flag offensive close merge delete

Comments

I think you dont need the tags. just the puppet agent will handle it check your configuration.

Hyder gravatar imageHyder ( 2017-05-08 08:07:16 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-05-09 07:56:47 -0500

naspar gravatar image

Hi Hyder, I need to run on-demand command to perform certain activities on the end-user machine/laptop. We want to use puppet to initialize and configure base system based on corporate settings. From what I can see, the best way to achieve this is to run the puppet from the agent with the --tags command to filter which classes you want applied to that node. I know I could define the classes into the node {} section but this would give me less flexibility as I have to adjust manifest per node, whereas the command line method from the client would give me the change to apply only the needed classes based on the --tags content.

I was able to manage the --tags parameter eventually, adding proper configuration on puppetserver, by adding the proper class and its tags in the module.

Thanks for you help, greatly appreciated. M.

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2017-05-04 09:57:37 -0500

Seen: 27 times

Last updated: May 09