This is an old revision of the document!
The purpose of this guide is to walk through necessary steps to install and run the puppet modules required to setup and OPNFV environment.
Puppet installation guide can be found here.
The following will show how to install puppet modules required for OPNFV. The directories used will be in the context of using production environment, which is what we use with Foreman. You are free to use whatever you want if not using Foreman.
If you have a proxy you will need to edit your puppet.conf:
vi /etc/puppet/puppet.conf
and add:
[main]
http_proxy_host = your_proxy_server
http_proxy_port = your_proxy_port
Now you can install your puppet modules:
Example :sudo puppet module install -i /etc/puppet/environments/production/modules saz/ntp
Now download the openstack puppet modules:
sudo yum install https://repos.fedorapeople.org/repos/openstack/openstack-juno/epel-7/openstack-puppet-modules-2014.2.8-1.el7.centos.noarch.rpm
You will need to edit your puppet.conf to include the path:
sudo vi /etc/puppet/puppet.conf
Append at the end of basemodulepath the newly installed module path which is /usr/share/openstack-puppet/modules/ :
basemodulepath = /etc/puppet/environments/common:/etc/puppet/modules:/usr/share/puppet/modules:/usr/share/openstack-puppet/modules/
Now just restart your Apache server:
sudo service httpd restart
cd /etc/puppet/environments/production/modules/
There clone the git repo of TryStack. This is a temporary copy of OPNFV, this should be changed to OPNFV repo once the commit is finished.
sudo git clone -b quickstack https://github.com/trozet/puppet-trystack.git
And rename it:
sudo mv puppet-trystack trystack
QuickStack is part of a project called Astapor. Clone the following to any temporary directory. We will move the QuickStack module after.
sudo git clone -b opendaylight https://github.com/trozet/astapor.git
sudo mv /astapor/puppet/modules/quickstack/ /etc/puppet/environments/production/modules/quickstack
cd /etc/puppet/environments/production/modules/
There clone the git repo of OpenDaylight.
sudo git clone https://github.com/dfarrell07/puppet-opendaylight.git
And rename it:
sudo mv puppet-opendaylight opendaylight
Then the global variables of the trystack controller class in /etc/puppet/environments/production/modules/trystack/manifests/controller.pp need to be defined in Configure>Global Parameters. Unless explicitly noted below they can have any value. For the sake of simplicity all passwords/tokens can have the same value.