Versions Compared

Key

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

...

  1. Log in to the server where you intent to set up Puppet Master as root user.
  2. Install  Subversion
    Ex:- sudo apt-get install subversion
  3. Get the checkout from this repository location to /home/{user}/puppetsource/.  Ex:- svn co https://svn.wso2.org/repos/wso2/scratch/appfactory_2.0.0/products/appfactory/2.1.0/modules/puppet-manifests  /home/ubuntu/puppetsource/

  4. Download Puppet Master version 3.7. or above from https://puppetlabs.com. 

  5. Install the Puppet Master packages with command apt-get install puppetmaster. If you want to stop the Puppet Master, the command is /etc/init.d/puppetmaster stop.
  6. Change the following configuration files in Puppet Master installation.

    FileConfiguration
    /etc/default/puppetmaster
    Code Block
    DAEMON_OPTS="--ssl_client_header=HTTP_X_SSL_SUBJECT"
    SERVERTYPE=webrick
    PUPPETMASTERS=1
    PORT=8140
    /etc/puppet/puppet.conf
    Code Block
    [main]
    logdir=/var/log/puppet
    vardir=/var/lib/puppet
    ssldir=/var/lib/puppet/ssl
    rundir=/var/run/puppet
    factpath=$vardir/lib/facter
    templatedir=$confdir/templates
    prerun_command=/etc/puppet/etckeeper-commit-pre
    postrun_command=/etc/puppet/etckeeper-commit-post
    debug=true
    verbose=true
    
    
    [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 =true
    
    
    [appfactory]
    environment=appfactory
    modulepath=/home/{user}/puppetsource/appfactory/modules
    templatedir=/home/{user}/puppetsource/appfactory/templates
    manifest=/home/{user}/puppetsource/appfactory/manifests/site.pp
    manifestdir=/home/{user}/puppetsource/appfactory/manifests/

     

  7. Set the server's host name to puppet.wso2.example.com and add the host to /etc/hostname file as follows:
    hostname puppet.appfactory.private.wso2.com
    hostname > /etc/hostname

     

  8. Starting the Puppet Master with the following command:
    /etc/init.d/puppetmaster start

  9. Install apache file server using the following command:
    apt-­get install apache2

    We need this file server to manage the distribution packs of all products involved in an App Factory deployment, such as WSO2 App Factory, API Manager, ELB, application Server etc. 
     
  10. Create a folder named software inside the apache document ­root (/var/www) and download the following distribution packs to the software folder:
    • apache-maven-3.0.5-bin.tar.gz
    • apache-activemq-5.9.1-bin.tar.gz
    • apache-stratos-4.0.0-wso2v1.zip
    • apache-stratos-cartridge-agent-4.0.0-wso2v1-bin.zip
    • apache-stratos-load-balancer-4.0.0-wso2v1.zip
    • gitblit-1.3.1.zip
    • gitblit-1.4.1.zip
    • jdk-7u51-linux-x64.tar.gz
    • mysql-connector-java-5.1.29-bin.jar
    • wso2appfactory-2.1.0.zip
    • wso2as-5.2.0.zip
    • wso2as-5.2.1.zip
    • wso2bam-2.4.1.zip
    • wso2bps-3.2.0.zip
    • wso2elb-2.1.0.zip
    • wso2is-4.5.0.zip
    • wso2mb-2.2.0.zip
    • wso2-private-paas-4.0.0-installer.zip
    • wso2ss-1.1.0.zip
    • wso2ues-1.1.0.zip
     

...