OpenStack Mitaka, instalación Just For Fun

Siguiendo mi anterior artículo sobre mis primeras impresiones sobre OpenStack Mitaka, aquí está un breve screencast de unos minutos sobre como instalarlo en un ambiente virtualizado con Virtualbox y Vagrantfile:

El archivo Vagrantfile necesario para la instalación, es el siguiente:

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure(2) do |config|
  config.vm.box = "puppetlabs/centos-7.2-64-nocm"

  config.vm.network "forwarded_port", guest: 80, host: 8080
  config.vm.synced_folder ".", "/vagrant", disabled: true

  config.vm.provider "virtualbox" do |vb|
    vb.cpus = 2
    vb.memory = "4096"
  end

  config.vm.provision "shell", inline: <<-SHELL
     sed -i s/enabled=1/enabled=0/ /etc/yum.repos.d/epel.repo
     yum -y update
     systemctl stop NetworkManager 
     systemctl stop firewalld
     systemctl disable NetworkManager 
     systemctl disable firewalld
     systemctl enable network
     setenforce 0
     echo -e "LANG=en_US.utf-8\nLC_ALL=en_US.utf-8" > /etc/environment
     yum install -y https://www.rdoproject.org/repos/rdo-release.rpm
     yum update -y
     yum install -y openstack-packstack vim
     packstack --gen-answer-file=/root/answers.txt
     sed -i s/CONFIG_CINDER_INSTALL=y/CONFIG_CINDER_INSTALL=n/ /root/answers.txt
     sed -i s/CONFIG_SWIFT_INSTALL=y/CONFIG_SWIFT_INSTALL=n/ /root/answers.txt
     sed -i s/CONFIG_CEILOMETER_INSTALL=y/CONFIG_CEILOMETER_INSTALL=n/ /root/answers.txt
     sed -i s/CONFIG_AODH_INSTALL=y/CONFIG_AODH_INSTALL=n/ /root/answers.txt
     sed -i s/CONFIG_GNOCCHI_INSTALL=y/CONFIG_GNOCCHI_INSTALL=n/ /root/answers.txt
     sed -i s/CONFIG_NAGIOS_INSTALL=y/CONFIG_NAGIOS_INSTALL=n/ /root/answers.txt
  SHELL
end

Confío esto sea de utilidad para que puedas probar OpenStack.

Leave a Reply

  

  

  

Anti-Spam by WP-SpamShield