Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@daBONDi
Created March 14, 2017 21:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save daBONDi/70ac72ed568d56b52f20c7458ab30cda to your computer and use it in GitHub Desktop.
Save daBONDi/70ac72ed568d56b52f20c7458ab30cda to your computer and use it in GitHub Desktop.
Install Ansible and tools from Devel
#!/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