This documentation is for WSO2 Puppet Modules version 2.0.0. View documentation for the latest release.
We have moved WSO2 Puppet Modules to separate product specific repositories, and as a result the puppet-modules repository, which this documentation is based on has been deprecated.
A new puppet-common repository has been introduced. Please find the new repository list here.
Page Comparison - Master / Client - puppet agent (v.15 vs v.16) - WSO2 Puppet Modules 2.0.0 - WSO2 Documentation

Versions Compared

Key

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

...

  1. Modify the deployment.conf file according to your product.
  2. Login to Puppet Agent as super user.
  3. Copy the content of the modified deployment.conf file into the /opt/deployment.conf file.
    For example, the deployment.conf file may appear as follows for the WSO2 APIM 1.9.1 product.

    Code Block
    product_name=wso2am
    product_version=1.9.1
    product_profile=default
    vm_type=openstack
    environment=production
    platform=default
  4. Copy the file setup.sh file, which appears as follows, into the /opt/setup.sh file.
    For example, the setup.sh file may appear as follows for the WSO2 APIM 1.9.1 product.

    Code Block
    #!/bin/bash
    echo  "#####################################################"
    
    echoecho "                  " Starting cleanup " 
    echo  "#####################################################"
    
    ps aux | grep -i wso2 | awk '{print $2}' | xargs kill -9
    #rm -rf /mnt/*
    sed -i  '/environment/d'  /etc/puppet/puppet.conf
    echo  "#####################################################" 
    echo  "
    
    echo "#####################################################"
    echo "               Setting up environment " 
    echo  "#####################################################" 
    rm
    -f /etc/facter/facts.d/deployment_pattern.txt
    mkdir -p /etc/facter/facts.d
    
    while read -r line; do declare  $line; done < deployment.conf  
    echo product_name=$product_name >>cp deployment.conf /etc/facter/facts.d/deployment_pattern.txt 
    
    echo product_version=$product_version >> /etc/facter/facts.d/deployment_pattern.txt  
    echo product_profile=$product_profile >> /etc/facter/facts.d/deployment_pattern.txt  
    echo vm_type=$vm_type >> /etc/facter/facts.d/deployment_pattern.txt  
    echo environment=$environment >> /etc/facter/facts.d/deployment_pattern.txt 
    echo platform=$platform >> /etc/facter/facts.d/deployment_pattern.txt 
    
    echo  "#####################################################"   
    echo  " Installing "   
    echo  "#####################################################"   
    
    puppet agent --enable  
    puppet agent -vt  
    puppet agent --disable  
  5. Fix setup.sh file permissions as follows.

    Code Block
    chmod 755 setup.sh
  6. Run the following command to set the Puppet Custom Facts and run the Puppet Agent in order to setup the WSO2 product instance.

    Code Block
    ./setup.sh

    This installs an instance of a standard WSO2 product based on the product and version that you defined.
    For example:

    Code Block
    /mnt/10.0.2.89/wso2am-1.9.1

      For  APIM 1.9.1  the complete deployment time (deployment and server startup) is approximately 1 minute.

...