Re: [Puppet Users] run puppet for few modules only, not for all catalogue

5,122 views
Skip to first unread message

Martin Alfke

unread,
Jul 19, 2012, 7:44:28 AM7/19/12
to puppet...@googlegroups.com
Hi
On 19.07.2012, at 11:52, Andrew wrote:

I am looking the way to apply only few selected modules to the puppet
node instead of all catalogue. I need this step to be done as the part
of the maintenance.

If you are using modules you can use tags.
Each module is also a tag.

Example you have three modules:
<moduledir>/apache/manifests...
<moduledir>/mysql/manifests...
<moduledir>/base/manifests...

you can use tags to run one or some modules only:

puppet agent --test --tags=apache
puppet agent --test --tags=apache,mysql

hth,

Martin


As of now the only idea I have - is to expose puppet tree via nfs or
HTTP, download/mount only modules I need and run puppet in standalone
mode like puppet --apply.
Just wandering if there are a better way to do it?

PS: sent it by email, but don't see my post, sorry if it will be duplicate

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/1u_WWKkrWKkJ.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

Andrey Kozichev

unread,
Jul 19, 2012, 10:12:36 AM7/19/12
to puppet...@googlegroups.com, puppet...@googlegroups.com
Thanks a lot Martin! This is exactly what I need. 
Reply all
Reply to author
Forward
0 new messages