2. system managment automation program on github you wished you were running
Ansible is set up to be very simple, and runs over ssh. Here are my notes from trying to get it installed and working on Centos 6.2, using the "Running from Checkout" instructions found at http://ansible.github.com/gettingstarted.html, which gets you version 0.5. The RPM from EPEL provides version 0.3.
here's my super quick instructions, the few issues I ran into mentioned below:
- start with CEntOS 6.2
- sudo su - root or su - root
- install needed packages
- # rpm -ivh http://mirror.pnl.gov/epel/6/i386/epel-release-6-7.noarch.rpm
- # yum -y install python PyYAML python-jinja2 python-paramiko
- # exit
- add ansible
- $ git clone git://github.com/ansible/ansible.git
- $ cd ./ansible
- $ source ./hacking/env-setup
- configure hosts
- $ echo "127.0.0.1" > ~/ansible_hosts
- $ export ANSIBLE_HOSTS=~/ansible_hosts
- and test:
- $ ansible all -m ping -u dewey.garwood
127.0.0.1 | success >> {
"ping": "pong"
}
- if you go looking for paramiko, yum wont find it; you have to use python-paramiko
- without the -u option in the test command (step 6), ansible tries to use the root user to log in and you end up with:
- $ ansible all -m ping --ask-pass
SSH password:
127.0.0.1 | FAILED => FAILED: Authentication failed.
No comments:
Post a Comment