hi donavan ,
thanks  a lot...

i am able to use environment option
for build support  ......

Thanks
Sanjiv singh
Impetus Infotech (India)


On Nov 16, 4:54 am, donavan <dona...@desinc.net> wrote:
> On Nov 15, 11:11 am, "sanjiv.singh" <sanjiv.si...@impetus.co.in>
> wrote:
>
> > 1) Is there any machnism in which we can select  puppet modules
> > according to build number..?
>
> Look at the support for modulepath with multiple environments[1]. You
> can set the "environment" value to any string. So you can use revision
> numbers or tags [1002, 1003, X, Y] instead of [production, testing,
> development] for $environment. This way clients can be tied to a 'tag'
> of modules, while defaulting to 'main' path for unknown or unset
> "environment"s.
>
> > 2)  Is there any machnism in which we can make puppet modules/ classes
> > argumented , so that  it work according to build number ?
>
> Parameterized classes[2] may work for you, depending on what you need.
> You could set the $build_version from a customer Facter fact or from
> External Node Classifier[3] or LDAP Nodes.
>
> > 3) Have  puppet  inbuild support for versioning ?
>
> Basically it relies on your puppet master manifest & module content to
> come from the VCS of your choice. For example /etc/puppet/modules
> would be an work directory of 
> svn://puppet/branches/production/puppet/modules/.
> You can also track the catalog "version" based on the output of a
> script[4]. So you could provide a version based on `svn info /etc/
> puppet/`, for example. Be careful that config_version is built on
> tracking changes to manifest files. It may miss changes in Resources
> collected from storeconfigs, File resources, template content, etc.
>
> > specificaly , i am going through critical time, where i need to
> > configure one node  with build number X  for one development
> > team .......
> > and need to configure second node with build number Y for second
> > testing  team.
>
> I think this sounds like setting $environment on a per host basis
> using External Nodes.
>
> [1]http://projects.puppetlabs.com/projects/1/wiki/Using_Multiple_Environ...
> [2]http://docs.puppetlabs.com/guides/language_tutorial.html#parameterise...
> [3]http://docs.puppetlabs.com/guides/external_nodes.html
> [4]http://docs.puppetlabs.com/references/latest/configuration.html#confi...

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to