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 # Major version is pinned to force some consistency for Arno
29 if ! yum -y install python-pip-1* python-virtualenv-1* gcc-4* git-1* sshpass-1* ansible-1* python-requests-1*; then
30 printf '%s\n' 'bootstrap.sh: failed to install required packages' >&2
36 echo "Cloning khaleesi to /opt"
38 if [ ! -d khaleesi ]; then
39 if ! git clone -b v1.0 https://github.com/trozet/khaleesi.git; then
40 printf '%s\n' 'bootstrap.sh: Unable to git clone khaleesi' >&2
47 cp ansible.cfg.example ansible.cfg
49 echo "Completed Installing Khaleesi"
53 ansible localhost -m setup -i local_hosts
55 ./run.sh --no-logs --use /vagrant/opnfv_ksgen_settings.yml playbooks/opnfv.yml