mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
slim down install, workflow, and notes/thoughts
This commit is contained in:
parent
dd6c91b3d0
commit
4890eeb64e
1 changed files with 19 additions and 16 deletions
|
@ -3,7 +3,7 @@
|
||||||
set -e
|
set -e
|
||||||
FOUND=""
|
FOUND=""
|
||||||
URL="NA"
|
URL="NA"
|
||||||
if [ $(which ansible-playbook) ]; then
|
if [ $(which ansible-playbookx) ]; then
|
||||||
echo "Ansible installed exiting..."
|
echo "Ansible installed exiting..."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
@ -39,31 +39,33 @@ if [ -f /etc/olpc-release ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f /etc/debian_version ]; then
|
if [ -f /etc/debian_version ]; then
|
||||||
# might pickup usbmount
|
# might pickup usbmount confirm ppa location
|
||||||
echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main" >> /etc/apt/sources.list
|
# echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main" >> /etc/apt/sources.list
|
||||||
# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
|
# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
|
||||||
# apt-get update
|
# apt-get update
|
||||||
# apt-get install ansible git python-pip python-setuptools python-wheel patch
|
apt-get install ansible git python-pip python-setuptools python-wheel patch
|
||||||
apt-get install ansible python-kerberos python-selinux python-winrm python-xmltodict sshpass bzip2 file findutils gzip tar unzip zip python-keyczar python-boto python-dnspython python-pyrax python-sphere
|
# apt-get install ansible python-kerberos python-selinux python-winrm python-xmltodict sshpass bzip2 file findutils gzip tar unzip zip python-keyczar python-boto python-dnspython python-pyrax python-sphere
|
||||||
FOUND="yes"
|
FOUND="yes"
|
||||||
FAMILY="debian"
|
FAMILY="debian"
|
||||||
fi
|
fi
|
||||||
if [ `grep -qi ubuntu /etc/lsb-release` ] || [ `grep -qi ubuntu /etc/os-release` ]; then
|
if [ `grep -qi ubuntu /etc/lsb-release` ] || [ `grep -qi ubuntu /etc/os-release` ]; then
|
||||||
apt-get update
|
apt-get update
|
||||||
|
# confirm PPA location
|
||||||
# apt-get install software-properties-common
|
# apt-get install software-properties-common
|
||||||
# apt-add-repository ppa:ansible/ansible
|
# apt-add-repository ppa:ansible/ansible
|
||||||
# apt-get update
|
# apt-get update
|
||||||
# apt-get install ansible git python-pip python-setuptools python-wheel patch
|
apt-get install ansible git python-pip python-setuptools python-wheel patch
|
||||||
apt-get install ansible python-kerberos python-selinux python-winrm python-xmltodict sshpass bzip2 file findutils gzip tar unzip zip python-keyczar python-boto python-dnspython python-pyrax python-sphere
|
# apt-get install ansible python-kerberos python-selinux python-winrm python-xmltodict sshpass bzip2 file findutils gzip tar unzip zip python-keyczar python-boto python-dnspython python-pyrax python-sphere
|
||||||
FOUND="yes"
|
FOUND="yes"
|
||||||
FAMILY="debian"
|
FAMILY="debian"
|
||||||
fi
|
fi
|
||||||
|
# Has 2.2.1
|
||||||
if [ `grep -qi raspbian /etc/*elease` ]; then
|
if [ `grep -qi raspbian /etc/*elease` ]; then
|
||||||
apt-get update
|
apt-get update
|
||||||
# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
|
# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
|
||||||
# apt-get update
|
# apt-get update
|
||||||
# apt-get install ansible git python-pip python-setuptools python-wheel patch
|
apt-get install ansible git python-pip python-setuptools python-wheel patch
|
||||||
apt-get install ansible python-kerberos python-selinux python-winrm python-xmltodict sshpass bzip2 file findutils gzip tar unzip zip python-keyczar python-boto python-dnspython python-pyrax python-sphere
|
# apt-get install ansible python-kerberos python-selinux python-winrm python-xmltodict sshpass bzip2 file findutils gzip tar unzip zip python-keyczar python-boto python-dnspython python-pyrax python-sphere
|
||||||
FOUND="yes"
|
FOUND="yes"
|
||||||
FAMILY="debian"
|
FAMILY="debian"
|
||||||
fi
|
fi
|
||||||
|
@ -75,22 +77,23 @@ fi
|
||||||
|
|
||||||
# latest pip 2.2 is 2.2.3.0 on 2017-07-07
|
# latest pip 2.2 is 2.2.3.0 on 2017-07-07
|
||||||
# ansible-2.3.1.0-1.el7.noarch.rpm from 2017-06-01
|
# ansible-2.3.1.0-1.el7.noarch.rpm from 2017-06-01
|
||||||
|
|
||||||
if [ $FAMILY = "redhat" ]; then
|
|
||||||
VER=`ansible --version|head -n 1|cut -f 2 -d " "` #(returns 2.3.1.0) 2017-07-07
|
VER=`ansible --version|head -n 1|cut -f 2 -d " "` #(returns 2.3.1.0) 2017-07-07
|
||||||
echo "ansible version installed via package manager $VER"
|
echo "ansible version installed via package manager $VER"
|
||||||
|
|
||||||
|
### start ansible pip install TODO add venv location /opt/iiab/anisble
|
||||||
|
if [ $FAMILY = "redhat" ]; then
|
||||||
# rpm -e ansible
|
# rpm -e ansible
|
||||||
|
# pip install ansible==2.3.1 --disable-pip-version-check
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### start pip isolation
|
|
||||||
if [ $FAMILY = "debian" ]; then
|
if [ $FAMILY = "debian" ]; then
|
||||||
VER=`ansible --version|head -n 1|cut -f 2 -d " "` #(returns 2.3.1.0) 2017-07-07
|
# apt remove ansible
|
||||||
apt-get install python-pip python-setuptools python-wheel patch
|
# pip install ansible==2.3.1 --disable-pip-version-check
|
||||||
fi
|
fi
|
||||||
###
|
###
|
||||||
|
|
||||||
###
|
###
|
||||||
#pip upgrades here if needed
|
# other pip upgrades here if needed
|
||||||
###
|
###
|
||||||
|
|
||||||
#if [ $FAMILY = "debian" ]; then
|
#if [ $FAMILY = "debian" ]; then
|
||||||
|
|
Loading…
Reference in a new issue