...
The users can follow the steps given below to install Stratos2 in Amazon EC2 using this Puppet based deployment methodology.
Setting up Puppet master (with nginx and mongrel)
Install Puppet master packages ( puppetmaster 2.7 , mongrel, nginx)
Code Block apt-get install puppetmaster mongrel nginx
The following commands are used to stop
puppetmaster
andnginx
Code Block /etc/init.d/puppetmaster stop /etc/init.d/nginx stop
Apply the following ch anges to the respective configuration files.
/etc/default/puppetmaster
Code Block DAEMON_OPTS="--ssl_client_header=HTTP_X_SSL_SUBJECT" SERVERTYPE=mongrel PUPPETMASTERS=5 PORT=18140
/etc/pupet/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=/etc/puppet/templates/ modulepath=/etc/puppet/modules/ report=false [stratos2] modulepath=/mnt/puppet/stratos2/modules/ templatedir=/mnt/puppet/stratos2/templates/ manifest=/mnt/puppet/stratos2/manifests/site.pp manifestdir=/mnt/puppet/stratos2/manifests/ report=false [master] node_name = facter
/etc/puppet/autosign.conf
Code Block *.wso2.com
/etc/puppet/auth.conf
Code Block path ~ ^/catalog/([^/]+)$ method find allow $1 allow star.s2.wso2.com path ~ ^/node/([^/]+)$ method find allow $1 path /certificate_revocation_list/ca method find allow * path /report method save allow * path /file allow * path /file_metadata auth any method find allow * path /certificate/ca auth no method find allow * path /certificate/ auth no method find allow * path /certificate_request auth no method find, save allow * path / environment stratos2 allow * path / auth any
/etc/puppet/fileserver.conf
Code Block [files] path /etc/puppet/ allow * [plugins] allow * [stratos2] path /mnt/puppet/stratos2/ allow *
...
Anchor | ||||
---|---|---|---|---|
|
Excerpt | ||||||
---|---|---|---|---|---|---|
Setting up Puppet agent
|
Setting up Stratos2
Create a folder path for Stratos2 Puppet manifests.
Code Block $ mkdir -p /mnt/puppet/stratos2
- Extract the Puppet master files (
manifests
,modules
,templates
) to/mnt/puppet/stratos2
Change the hosts template file in
/mnt/puppet/stratos2/templates/hosts.erb
Public Stratos 2.0 Setup on Amazon EC2
We provide a pre-configured EC2 image that is publicly accessible through the EC2. Please see the Quick Start Guide for more information on how to use the pre-configured image to run Stratos 2.0.
...