Назад | Перейти на главную страницу

Puppet: err: / Exec / returns: изменить с notrun на 0 не удалось: для команды превышен тайм-аут

Я пытаюсь установить Nagios на свои серверы, используя марионетку и свой собственный сценарий оболочки. Все работает нормально, но я вижу ошибку в конце выполнения сценария марионетки, как показано ниже:

[root@localhost tmp]# /usr/local/bin/puppet --verbose nagiosscript.pp
....
.... Lines of verbose output
....
info: Scope(Class[main]): installing Nagios agent in /usr/local/nagios
info: Applying configuration version '1016779459'
notice: /Stage[main]//Exec[/tmp/check_server.sh]/returns: executed successfully
notice: /Stage[main]//File[/tmp/temporary_mount]/ensure: created
notice: /Stage[main]//Exec[mount]/returns: executed successfully
notice: /Stage[main]//Exec[retrieve_nagios_install_script]/returns: executed successfully
notice: /Stage[main]//File[/var/tmp/nagios_install.sh]/mode: mode changed '644' to '700'

err: /Stage[main]//Exec[/var/tmp/nagios_install.sh]/returns: change from notrun to 0 failed: Command exceeded timeout at /tmp/nagiosscript.pp:34

notice: Finished catalog run in 332.42 seconds

Я не уверен, что означает эта ошибка, но установка nagios прошла успешно.

Это известно ФАКТ

По умолчанию марионетка ждет 300 секунд для завершения задания, если этого не происходит, то только вы видите ошибку, как указано выше. Вы можете определить тайм-аут значение в вашем марионеточном сценарии. используйте следующее в своем марионеточном сценарии

timeout => 0,

Из документа Puppet:

Timeout
The maximum time the command should take. If the command takes longer than the timeout, 
the command is considered to have failed and will be stopped. 
The timeout is specified in seconds. The default timeout is 300 seconds and 
you can set it to 0 to disable the timeout.