Skip to content

Instantly share code, notes, and snippets.

@msutter
Created April 5, 2017 12:59
Show Gist options
  • Save msutter/ed7bdd190fe9605483d9f8a10a33210c to your computer and use it in GitHub Desktop.
Save msutter/ed7bdd190fe9605483d9f8a10a33210c to your computer and use it in GitHub Desktop.
# 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