3 #bootstrap script for installing/running Khaleesi in Foreman/QuickStack VM
4 #author: Tim Rozet (trozet@redhat.com)
6 #Uses Vagrant and VirtualBox
7 #VagrantFile uses bootsrap.sh which Installs Khaleesi
8 #Khaleesi will install and configure Foreman/QuickStack
11 #Target system should be Centos7
12 #Ensure the host's kernel is up to date (yum update)
23 # Install EPEL repo for access to many other yum repos
24 # Major version is pinned to force some consistency for Arno
25 yum install -y epel-release-7*
27 # Install other required packages
28 if ! yum -y install python-pip python-virtualenv gcc git sshpass ansible python-requests; then
29 printf '%s\n' 'bootstrap.sh: failed to install required packages' >&2
35 echo "Cloning khaleesi to /opt"
37 if [ ! -d khaleesi ]; then
38 if ! git clone -b opnfv https://github.com/trozet/khaleesi.git; then
39 printf '%s\n' 'bootstrap.sh: Unable to git clone khaleesi' >&2
46 cp ansible.cfg.example ansible.cfg
48 echo "Completed Installing Khaleesi"
52 ansible localhost -m setup -i local_hosts
54 ./run.sh --no-logs --use /vagrant/opnfv_ksgen_settings.yml playbooks/opnfv.yml