[Puppet Users] Re: How to deploy & excecute script remotely

2013-10-05 Thread Raju Patil
I have write the below script in puppet language on puppet master. Now wants to know that, I have to call this script to be excuted from puppet master on End points. How do I do that ? Class users { file { '/opt/example.sh': ensure => prsent, content => "#!/bin/sh\mkdir /opt/test12

[Puppet Users] Puppet is always trying 'service start' instead of 'restart' - how to force restart?

2013-10-05 Thread Sans
Dear all, As stated in the title, I have a module for ganglia gmond, where puppet is always doing '*/etc/init.d/ganglia-monitor start*' instead of '*restart*' whenever a 'refresh' is triggered for the service. This is what I have in my module: file { 'gmond_conf': > name=> '/etc/g

Re: [Puppet Users] Puppet is always trying 'service start' instead of 'restart' - how to force restart?

2013-10-05 Thread Trevor Vaughan
Sans, This is probably because you don't have a process named ganglia-monitor running on your system. service { 'ganglia-monitor': ensure => running, enable => true, hasrestart => true, # This says to look for a process called 'ganglia-monitor' if it doesn't exis