Partial catalog runs

119 views
Skip to first unread message

Bostjan Skufca

unread,
May 9, 2012, 7:45:24 PM5/9/12
to puppet...@googlegroups.com
Hello fellow puppeteers :)

I was just wondering: would anyone benefit from puppet's abitity to only do partial catalog runs?

Additional explanation:
As you manage your hosts with puppet, your catalog tends to grow and puppet runs are becoming longer. If you manage some overseas servers, runtime is even longer.
What I was thinking about is being able to run just part of your catalog, for example just one stage, or just one module. This way one could trigger puppet run via mcollective, and only for run stage called "appconfig". This would check and/or modify only a dozen resources across clustered application setup, instead of doing the whole catalog run with thousands of resources.

What do you guys think? Should I be looking into app deployment tools instead? A separate installation of dedicated puppet for this objective is also an option...

Best regards,
b.


Gary Larizza

unread,
May 9, 2012, 8:58:27 PM5/9/12
to puppet...@googlegroups.com
You could also do this with Tags from the command line (https://puppetlabs.com/references/0.25.3/metaparameter.html#tag).  If you run puppet agent -t --tags apache it will only declare the resources that are tagged with the 'apache' tag.  

Tags are implicitly set through major scope levels (i.e. anything inside class 'ntp' gets a tag of 'ntp') but can also be set with the tag() function or the tag metaparameter.

-- 
Gary Larizza
Sent with Sparrow

--
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/-/H_EXKAgASdwJ.
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.

Gary Larizza

unread,
May 9, 2012, 8:59:15 PM5/9/12
to puppet...@googlegroups.com
Just realized I grabbed an OOOOOLD version of the docs.  Here's the latest --> https://puppetlabs.com/references/latest/metaparameter.html#tag

-- 
Gary Larizza
Sent with Sparrow

On Wednesday, May 9, 2012 at 4:45 PM, Bostjan Skufca wrote:

Bostjan Skufca

unread,
May 9, 2012, 9:12:23 PM5/9/12
to puppet...@googlegroups.com
Aaah, that's useful.
I guess I've been searching for the wrong keywords (partial catalog run != tags).

Thank you very much!
b.
Reply all
Reply to author
Forward
0 new messages