#!/usr/bin/env bash

#sudo yum -y update

sudo rpm -i http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm

sudo yum -y install python-pip python-virtualenv gcc git

sudo yum -y install python-keystoneclient python-novaclient python-glanceclient python-neutronclient python-keystoneclient

yum -y install sshpass

cd /opt

echo "Cloning khaleesi to /opt"

if [ ! -d khaleesi ]; then
  sudo git clone -b opnfv https://github.com/trozet/khaleesi.git
fi


pip install ansible
pip install requests



cd khaleesi

sudo cp ansible.cfg.example ansible.cfg

cd tools/ksgen

sudo python setup.py develop

cd ../..

echo "Completed Installing Khaleesi"

cd /opt

cd /opt/khaleesi/

./run.sh --no-logs --use /vagrant/opnfv_ksgen_settings.yml playbooks/opnfv.yml

#!/usr/bin/env bash

#sudo yum -y update

sudo rpm -i http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm

sudo yum -y install python-pip python-virtualenv gcc git

sudo yum -y install python-keystoneclient python-novaclient python-glanceclient python-neutronclient python-keystoneclient

yum -y install sshpass

cd /opt

echo "Cloning khaleesi to /opt"

if [ ! -d khaleesi ]; then
  sudo git clone -b opnfv https://github.com/trozet/khaleesi.git
fi


pip install ansible
pip install requests



cd khaleesi

sudo cp ansible.cfg.example ansible.cfg

cd tools/ksgen

sudo python setup.py develop

cd ../..

echo "Completed Installing Khaleesi"

cd /opt

cd /opt/khaleesi/

ansible localhost -m setup -i local_hosts

./run.sh --no-logs --use /vagrant/opnfv_ksgen_settings.yml playbooks/opnfv.yml

Add ansible setup to print facter
Add ansible setup to print facter

There was an issue for resolv.conf jinja template not finding the facter var
