Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Install an external IaaS provider (e.g., OpenStack, Amazon EC2) .
  2. 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.

    Code Block
    $ wget https://apt.puppetlabs.com/puppetlabs-release-trusty.deb 
    $ sudo dpkg -i puppetlabs-release-precisetrusty.deb
    $ sudo apt-get update
    $ sudo apt-get install puppetmaster
    $ sudo apt-get install puppet
  3. Add the following to the /etc/puppet/puppet.conf file.

    Code Block
    [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 
  4. Add the following host entry, which points to the puppet master to the /etc/hosts file.

    Code Block
    <IP of your puppet master>   puppet.appfactory.private.wso2.com 
  5. 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.
  6. Run the setup.sh in sudo mode.

    Code Block
    sudo bash setup.sh
  7. See the puppet.log file located inside setup script to make sure that the setup has no errors.

...