Andrew
2012-Jul-19 09:52 UTC
[Puppet Users] run puppet for few modules only, not for all catalogue
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. 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-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Martin Alfke
2012-Jul-19 11:44 UTC
Re: [Puppet Users] run puppet for few modules only, not for all catalogue
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-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Andrey Kozichev
2012-Jul-19 14:12 UTC
Re: [Puppet Users] run puppet for few modules only, not for all catalogue
Thanks a lot Martin! This is exactly what I need. On 19 Jul 2012, at 12:44, Martin Alfke <tuxmea@gmail.com> wrote:> 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-users@googlegroups.com. >> To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. >> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.