Follow the environment configuration documentation before proceeding.
This guide explains how to install the Puppet Master and all the other servers (the repository, build server, IDEs etc.) in a single machine. You need to have adequate hardware capacity to support this installation.
- Install an external IaaS provider (e.g., OpenStack, Amazon EC2) .
As you use the same server as the puppet master and private PaaS, install both the puppet master and agent on the developer machine. For example, use the instructions below for Ubuntu 14.04 LTS. Please read this [6] manual for your OS specific puppet.
$ wget https://apt.puppetlabs.com/puppetlabs-release-trusty.deb $ sudo dpkg -i puppetlabs-release-trusty.deb $ sudo apt-get update $ sudo apt-get install puppetmaster $ sudo apt-get install puppet
Add the following to the
/etc/puppet/puppet.conf
file.
[main] #server=puppet logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl rundir=/var/run/puppet factpath=$vardir/lib/facter templatedir=$confdir/templates certificate_revocation = false [master] # These are needed when the puppetmaster is run by passenger # and can safely be removed if webrick is used. #ssl_client_header = SSL_CLIENT_S_DN #ssl_client_verify_header = SSL_CLIENT_VERIFY #autosign=$confdir/autosign.conf autosign = true certname = puppet server = puppet ca_name = 'Puppet CA generated on puppet.appfactory.private.wso2.com ' logdir=/var/log/puppet-stratos vardir=/var/lib/puppet-stratos ssldir=/var/lib/puppet-stratos/ssl rundir=/var/run/puppet-stratos factpath=$vardir/lib/facter templatedir=$confdir/templates certificate_revocation = false [agent] environment=appfactory server= puppet.appfactory.private.wso2.com
Add the following host entry, which points to the puppet master to the
/etc/hosts
file.
<IP of your puppet master> puppet.appfactory.private.wso2.com
- Check out the installation script from http://svn.wso2.org/repos/wso2/people/anuruddha/setup-script/ and u pdate the
config.properties
file according to your requirements. You can remove a node from it to stop installing it. Run the setup.sh in sudo mode.
sudo bash setup.sh
- See the puppet.log file located inside setup script to make sure that the setup has no errors.
Tip: To restart the setup, use the bash restart.sh command.
To reinstall the setup, use clean.sh to completely remove the existing setup and then run setup.sh to reinstall.