We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/puppetlabs/puppetlabs-peadm/blob/master/tasks/hostname.sh#L3
/usr/bin/hostname vs /bin/hostname
Either do not specify a full path to hostname or
hostname
whn=`which hostname` hostname=$($whn -f) echo '{ "hostname": "'$hostname'" }'
The text was updated successfully, but these errors were encountered:
Also stashing this here:
#!/bin/bash func_bolt() { bolt --inventory ~/inventory.yaml "$@" } . /etc/os-release if [[ "$ID" == "ubuntu" ]]; then func_bolt command run '/opt/puppetlabs/bin/puppet-enterprise-uninstaller -dpy' --nodes all func_bolt command run 'dpkg --list | egrep 'puppet-agent|pe-[a-z]' | cut -d ' ' -f 3 | xargs apt-get remove --purge -y' --nodes all func_bolt command run 'rm -rf /etc/apt/sources.list.d/puppet_enterprise.list* /etc/apt/sources.list.d/pe_repo.list*' --nodes all func_bolt command run 'apt-get update' --nodes all func_bolt command run 'rm -rf /etc/default/pe-* /etc/puppetlabs /opt/puppetlabs /var/log/puppetlabs /tmp/*puppet* /tmp/pe.conf' --nodes all else func_bolt command run '/opt/puppetlabs/bin/puppet-enterprise-uninstaller -dpy' --nodes all func_bolt command run 'yum remove -y puppet-agent pe-*' --nodes all func_bolt command run 'rm -rf /etc/yum.repos.d/puppet_enterprise.repo* /etc/yum.repos.d/pe_repo.repo*' --nodes all func_bolt command run 'yum clean all' --nodes all func_bolt command run 'rm -rf /etc/sysconfig/pe-* /etc/puppetlabs /opt/puppetlabs /var/log/puppetlabs /tmp/*puppet* /tmp/pe.conf' --nodes all fi
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
https://github.com/puppetlabs/puppetlabs-peadm/blob/master/tasks/hostname.sh#L3
/usr/bin/hostname vs /bin/hostname
Either do not specify a full path to
hostname
orThe text was updated successfully, but these errors were encountered: