Hello, I tried using config_version with my simple shell script which returns my SVN revision number. but puppet doesn''t seem to be applying the config version in the logs. More Details Puppet Master/Client Version: 2.6.4 config_version = /usr/loca/bin/get_revision ( this line is placed under [master] section in puppet.conf) when i run the script manually i get the following output. Revision: xxx Can somebody sugget me, if the script output format is wrong or should i have config_version configured under [main] section in puppet.conf. Cheers, Chakra -- 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.
Hi Guys, Anybody got config_version working ? Cheers, Chakra On Wed, Feb 9, 2011 at 12:08 PM, chakra <chakrapanibs@gmail.com> wrote:> Hello, > > I tried using config_version with my simple shell script which returns > my SVN revision number. but puppet doesn''t seem to be applying the > config version in the logs. > > More Details > Puppet Master/Client Version: 2.6.4 > config_version = /usr/loca/bin/get_revision ( this line is placed > under [master] section in puppet.conf) > > when i run the script manually i get the following output. > Revision: xxx > > Can somebody sugget me, if the script output format is wrong or should > i have config_version configured under [main] section in puppet.conf. > > > > Cheers, > Chakra > > -- > 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.
On Tue, Feb 8, 2011 at 10:38 PM, chakra <chakrapanibs@gmail.com> wrote:> Hello, > > I tried using config_version with my simple shell script which returns > my SVN revision number. but puppet doesn''t seem to be applying the > config version in the logs. > > More Details > Puppet Master/Client Version: 2.6.4 > config_version = /usr/loca/bin/get_revision ( this line is placed > under [master] section in puppet.conf)config_version is associated with environments, so place it under [main] or an environment (production is implied default), [production] config_version = /bin/date> when i run the script manually i get the following output. > Revision: xxxCan you execute the script as the puppet user? The daemon runs as the puppet user. Try /bin/date first and make sure you configuration is working first before using your custom script. Thanks, Nan -- 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.