Hi all, I''m using puppet. I want to implement a part of manifests(Only 1 function in manifests). I''m wondering, how can i pass parameter from puppet-client or how to configure puppet-client to run a part of manifest. More detail: i want to manage packages for server. Server doesn''t have update management tool, it supports rpm. I''m requested to use puppet. Anybody can suggest for me ? Thanks in advance --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
huangmingyou
2008-May-16 05:28 UTC
[Puppet Users] Re: How to pass parameter from puppet-client ?
use the tags,may be can do this. On May 16, 1:03 pm, "tung dang" <danghuut...@gmail.com> wrote:> Hi all, > I''m using puppet. I want to implement a part of manifests(Only 1 function in > manifests). I''m wondering, how can i pass parameter from puppet-client or > how to configure puppet-client to run a part of manifest. > More detail: i want to manage packages for server. Server doesn''t have > update management tool, it supports rpm. I''m requested to use puppet. > Anybody can suggest for me ? > Thanks in advance--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
tung dang
2008-May-27 03:21 UTC
[Puppet Users] Re: How to pass parameter from puppet-client ?
Hi all, Firstly, thank for your answer As i know tags is used for resources, that means all the tags has to define in the manifests before using Can puppet-client pass the variable parameter to puppetmaster ? Have anyone ever done it? Can i write a program, module to capture tags, that doesn''t exist in the manifest ? Thank in advance TungDH --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Eric Heydrick
2008-May-28 03:40 UTC
[Puppet Users] Re: How to pass parameter from puppet-client ?
On Tue, 27 May 2008, tung dang wrote:> Hi all, > Firstly, thank for your answer > As i know tags is used for resources, that means all the tags has to define in the manifests before using > Can puppet-client pass the variable parameter to puppetmaster ? > Have anyone ever done it? > Can i write a program, module to capture tags, that doesn''t exist in the manifest ?Puppet will make variables for environment variables named FACTER_. So if you wanted a variable called $foo in your manifest run puppetd like "FACTER_foo=bar puppetd ...". You can tie that to tags so that defining a variable in the environment defines a tag: if $foo { tag(dosomething) } if tagged(dosomething) { dosomething } -Eric --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
''lo! Eric Heydrick wrote:> > On Tue, 27 May 2008, tung dang wrote: > > >> Hi all, >> Firstly, thank for your answer >> As i know tags is used for resources, that means all the tags has to define in the manifests before using >> Can puppet-client pass the variable parameter to puppetmaster ? >> Have anyone ever done it? >> Can i write a program, module to capture tags, that doesn''t exist in the manifest ? >>The way to achieve what you''re trying to do is use some kind of classification system that Puppet can plug into (I''m thinking iClassify) so that you can query relevant information when building templates, etc. There is no way to get arbitrary data back from puppet apart from the suggestion below> Puppet will make variables for environment variables named FACTER_. So if > you wanted a variable called $foo in your manifest run puppetd like > "FACTER_foo=bar puppetd ...". You can tie that to tags so that defining a > variable in the environment defines a tag: > > if $foo { > tag(dosomething) > } > > if tagged(dosomething) { > dosomething > } > > -Eric >Regards, AJ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---