Skip to content

Detailed installation commands

Felipe Vicens edited this page Aug 9, 2018 · 4 revisions

Recomended specs for the virtual machines

SP VM

  • Cpu: 4 cores
  • Ram: 8 GB
  • Hdd: 80 GB

VnV VM

  • Cpu: 1 cores
  • Ram: 4 GB
  • Hdd: 60 GB

Create tango user

sudo adduser tango
sudo usermod -a -G sudo tango

Packages installation

sudo apt-get install -y software-properties-common
sudo apt-add-repository -y ppa:ansible/ansible
sudo apt-get update
sudo apt-get install -y ansible
sudo apt-get install -y git
sudo apt-get install python3
sudo apt install python3-pip
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10 
sudo pip3 install docker

Docker-ce

sudo apt-get update
sudo apt-get install \
  apt-transport-https \
  ca-certificates \
  curl \
  software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"
sudo apt-get update
sudo apt-get install docker-ce

Create docker network

sudo docker network create tango	

Repository cloning

git clone https://github.com/sonata-nfv/tng-devops.git
cd tng-devops

Execute installation

  • For SP: sudo ansible-playbook roles/sp.yml -i environments -e target=localhost --ask-vault-pass
  • For VnV: sudo ansible-playbook roles/vnv.yml -i environments -e target=localhost --ask-vault-pass

Password is: sonata

After these steps, the installation is finished.