Add ansible related install scripts
Change-Id: I7ab32df59882eb1bba66e4d613b4fbd72972f3ee Todo: find out a way to dynamically turn off strict key checking.
This commit is contained in:
parent
00a9989fe1
commit
6fcc29479d
25
install/ansible.sh
Executable file
25
install/ansible.sh
Executable file
@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
|
||||
echo "Installing Ansible"
|
||||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
source $DIR/install.conf
|
||||
if [ -f $DIR/env.conf ]; then
|
||||
source env.conf
|
||||
else
|
||||
echo "failed to load environment"
|
||||
exit 1
|
||||
fi
|
||||
source $DIR/install_func.sh
|
||||
|
||||
echo "INstalling ansible related packages"
|
||||
sudo yum -y install ansible
|
||||
if [[ "$?" != "0" ]]; then
|
||||
echo "Failed to install ansible"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
sudo mkdir -p /var/ansible/run
|
||||
sudo mkdir -p /root/backup/ansible
|
||||
sudo cp -rn /var/ansible/* /root/backup/ansible/
|
||||
sudo cp -rf $ADAPTERS_HOME/ansible/* /var/ansible/
|
@ -6,7 +6,7 @@
|
||||
export OS_INSTALLER=${OS_INSTALLER:-cobbler}
|
||||
|
||||
# PACKAGE_INSTALLER indicates the tool for Package provisioning, default is 'chef'.
|
||||
export PACKAGE_INSTALLER=${PACKAGE_INSTALLER:-chef}
|
||||
export PACKAGE_INSTALLER=${PACKAGE_INSTALLER:-package}
|
||||
|
||||
# service NIC
|
||||
export NIC=${NIC:-}
|
||||
|
@ -340,7 +340,8 @@ echo "Install the OS Installer Tool"
|
||||
source ${COMPASSDIR}/install/$OS_INSTALLER.sh || exit $?
|
||||
|
||||
echo "Install the Package Installer Tool"
|
||||
source ${COMPASSDIR}/install/$PACKAGE_INSTALLER.sh || exit $?
|
||||
source ${COMPASSDIR}/install/chef.sh || exit $?
|
||||
source ${COMPASSDIR}/install/ansible.sh || exit $?
|
||||
|
||||
echo "Download and install Compass Web"
|
||||
source ${COMPASSDIR}/install/compass_web.sh || exit $?
|
||||
|
Loading…
Reference in New Issue
Block a user