I'm trying to push tripwire agent from puppet to the hosts. i've written a bunch of bash code to be executed by puppet run. But it throws error below, which is kind of wierd. Some of the RHEL 6 servers throws that error, some of them don't. Any thoughts on this will be appreciated.
Debug: Exec[install_agent](provider=shell): Executing check '["/bin/sh", "-c", "/usr/bin/test `rpm -qa TWeagent` != \"TWeagent-8.5.2-0.x86_64\""]'
Debug: Executing: '/bin/sh -c /usr/bin/test `rpm -qa TWeagent` != "TWeagent-8.5.2-0.x86_64"'
Debug: Exec[install_agent](provider=shell): Executing '["/bin/sh", "-c", "/usr/bin/sudo service twdaemon stop; /usr/bin/sudo /usr/local/tripwire/te/agent/bin/uninstall.sh; /usr/bin/sudo rm -rf /usr/local/tripwire"]'
Debug: Executing: '/bin/sh -c /usr/bin/sudo service twdaemon stop; /usr/bin/sudo /usr/local/tripwire/te/agent/bin/uninstall.sh; /usr/bin/sudo rm -rf /usr/local/tripwire'
**Notice: /Stage[main]/Redhat_tripwire/Exec[install_agent]/returns: sudo: sorry, you must have a tty to run sudo
Notice: /Stage[main]/Redhat_tripwire/Exec[install_agent]/returns: sudo: sorry, you must have a tty to run sudo
Notice: /Stage[main]/Redhat_tripwire/Exec[install_agent]/returns: sudo: sorry, you must have a tty to run sudo**
Error: /usr/bin/sudo service twdaemon stop; /usr/bin/sudo /usr/local/tripwire/te/agent/bin/uninstall.sh; /usr/bin/sudo rm -rf /usr/local/tripwire returned 1 instead of one of [0]
Error: /Stage[main]/Redhat_tripwire/Exec[install_agent]/returns: change from notrun to 0 failed: /usr/bin/sudo service twdaemon stop; /usr/bin/sudo /usr/local/tripwire/te/agent/bin/uninstall.sh; /usr/bin/sudo rm -rf /usr/local/tripwire returned 1 instead of one of [0]
Debug: Class[Redhat_tripwire]: Resource is being skipped, unscheduling all events
Thanks,
Suresh
↧