Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

you must have a tty to run sudo

$
0
0
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

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>