Forked from daBONDi/ubuntu-provisioning-ansible-host.sh
Created
March 14, 2017 21:51
-
-
Save naptar/491046ff66c7083e54cd1b28b3b0c6f3 to your computer and use it in GitHub Desktop.
Install Ansible and tools from Devel
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
#!/usr/bin/env bash | |
# TODO: Rewrite that as Ansible Playbook maybe for vagrant:ansible_local | |
# Installing Basic Utilitys | |
sudo apt-get install nano dnsutils | |
# Installing git | |
sudo apt-get install git -y | |
# Installing Ansible over PPA | |
sudo apt-get install software-properties-common -y | |
sudo apt-add-repository ppa:ansible/ansible -y | |
sudo apt-get update -y | |
#sudo apt-get install ansible -y | |
# Installing Devel of Ansible | |
sudo -H pip install git+git://github.com/ansible/ansible.git@devel | |
# Installing Kerberos Support | |
sudo export DEBIAN_FRONTEND=noninteractive apt-get install krb5-user -y | |
sudo export DEBIAN_FRONTEND=noninteractive apt-get install libkrb5-dev -y | |
# Installing Phyton Kerberos Support | |
sudo apt-get install python-dev python-pip libkrb5-dev -y | |
pip install 'pywinrm[kerberos]' | |
# Install HP Comware 7 Python Lib from Source | |
# https://github.com/HPENetworking/ansible-hpe-cw7 | |
# Requirements for PIP Packages | |
sudo apt install libxml2-dev libxslt1-dev python-dev zlib1g-dev libffi-dev libssl-dev -y | |
#Upgrade Paramiko needed for pyhepcw7 | |
sudo pip install paramiko --upgrade | |
#Install netaddr so we can use ipaddr filter in ansible | |
sudo pip install netaddr | |
# Fetch Repo and Install | |
git clone https://github.com/HPENetworking/pyhpecw7.git | |
cd pyhpecw7 | |
sudo python setup.py install | |
cd .. | |
sudo rm -r -f pyhpecw7 | |
# Installing pyvmomi to support managing VMWare | |
sudo pip install pyvmomi | |
# Installing vmware vSphere CLI | |
# !!!! Maybe we dont need this, use SSH !!!! - Service need to be enable on the ESX Host | |
# TODO:: Need to do this Manual, Maybe Host it on a Webserver to Download files | |
# cp /opt/it-infra/vagrant-provisioning/fj-v-ansible1/VMware-vSphere-CLI-6.5.0-4566394.x86_64.tar.gz ~/vmwareclie.tar.gz | |
# cd ~ | |
# tar -xzf VMware-vSphere-CLI-6.5.0-4566394.x86_64.tar.gz | |
# TODO:: See if we can Automate that | |
# vmware-vsphere-cli-distrib/vmware-install.pl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment