>
> On Sat, Sep 8, 2012 at 3:25 AM, Balasubramaniam Natarajan <
> [email protected]> wrote:
>
>> Hi
>>
>> I am a newbie to puppet and I am going through the documents at "
>> http://docs.puppetlabs.com/learning/manifests.html"; the exercise were
>> working normally then suddenly puppet hangs when I tried to apply a manifest
>>
>> root@nscbose:/home/bala/puppet# ps aux | grep -i puppet
>> puppet    4938  3.7  4.9  37764 25288 ?        Ssl  03:01   0:40
>> /usr/bin/ruby1.8 /usr/bin/puppet master --masterport=8140
>> root      4945  4.1  3.8  31396 19508 pts/0    Sl+  03:03   0:37
>> /usr/bin/ruby1.8 /usr/bin/puppet apply 3.file.pp
>> root      5020  0.0  0.1   4364   848 pts/1    S+   03:19   0:00 grep
>> --color=auto -i puppet
>> root@nscbose:/home/bala/puppet# cat 3.file.pp
>> notify {'bignotify':
>>     message    =>    "This is a very big message and will messup the
>>             formating of the code, so be wary of using such
>>             big message, I hope this is very clear for you
>>             don't ever make such a mistake again
>>             Notify['title'] syntax"
>> }
>> root@nscbose:/home/bala/puppet# puppet apply 3.file.pp
>>
>
>
> Well what do you know, I reboot the machine and puppet started to work
> once again, I am still wondering why it was it hanging and what could I
> have done to troubleshoot it without rebooting ?
>
> ps: When I it CTRL+C it did not die rather I had to kill the process ID of
> puppet for it to let go of the terminal.
>
>
>
This has occurred once again,   When I tried to "# puppet apply
break_ssh.pp" the puppet terminal just hangs and it does not complete the
job please at least point me where I have to start looking for answers.

root@nscbose:/home/bala/puppet# cat 10.ssh_break.pp
file{'/etc/ssh/sshd_config':
    ensure    =>    present,
    mode    =>    600,
    source    =>    '/etc/puppet/files/sshd_config',
}
service{'sshd':
    ensure    =>    running,
    enable    =>    true,
    subscribe    =>    File['/etc/ssh/sshd_config'],
}
root@nscbose:/home/bala/puppet# puppet apply 10.ssh_break.pp

After this command puppet terminal just hangs, from an another terminal I
am able to confirm that puppet apply is indeed running.  Nothing on the log
files either :-(

root@nscbose:/home/bala/puppet# ps aux | grep -i puppet
puppet     766  2.3  5.1  38504 25960 ?        Ssl  00:47   7:02
/usr/bin/ruby1.8 /usr/bin/puppet master --masterport=8140
root      7962  9.3  3.8  31484 19580 pts/2    Sl+  05:39   0:29
/usr/bin/ruby1.8 /usr/bin/puppet apply 10.ssh_break.pp
root      8170  0.0  0.1   4364   848 pts/0    S+   05:44   0:00 grep
--color=auto -i puppet


-- 
Regards,
Balasubramaniam Natarajan
www.etutorshop.com/moodle/

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

Reply via email to