Created
April 5, 2017 12:59
-
-
Save msutter/ed7bdd190fe9605483d9f8a10a33210c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install yamledit to be used with ansible to update yaml files | |
# this must be done on your master, infra and node hosts | |
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
yum install -i ./epel-release-latest-7.noarch.rpm | |
yum -y install python-pip | |
pip install ruamel.yaml | |
if [ ! -d yamledit ] | |
then | |
git clone https://github.com/microtodd/yamledit.git | |
fi | |
if [ ! -f /usr/local/sbin/yamledit ] | |
then | |
echo '#!/bin/python' | cat - yamledit/yamledit.py > /usr/local/sbin/yamledit | |
chmod a+x /usr/local/sbin/yamledit | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment