...
sudo -i
apt-get install git
puppetinstall.
git clone https://github.com/thilinapiy/puppetinstall
puppetinstall
folder using the following command: ./puppetinstall -m -d <PUPPETMASTER-DOMAIN>
-s <PUPPET-MASTER-IP>
./puppetinstall -m -d test.org
Installation completed successfully
"Anchor | ||||
---|---|---|---|---|
|
hostname
command. This will show that your system hostname has been modified.puppet.test.org
Verify your Puppet Master (v3) installation by running the following command in the puppetinstall
folder:
ps -ef | grep puppet
The output will be as follows:
Code Block |
---|
puppet 5324 1 0 14:59 ? 00:00:00 /usr/bin/ruby /usr/bin/puppet master --masterport=8140 root 5332 1071 0 15:05 pts/0 00:00:00 grep --color=auto puppet |
cd
git clone https://github.com/apache/incubator-stratos.git
incubator-stratos>/tools/puppet3/
directory. cd incubator-stratos/tools/puppet3/
ls
auth.conf autosign.conf fileserver.conf manifests modules puppet.conf
puppet
folder. cd /etc/puppet/
puppet
folder:ls
The output will be as follows: auth.conf autosign.conf fileserver.conf manifests modules puppet.conf templates
cp -R /root/incubator-stratos/tools/puppet3/manifests/* manifests/
/root/incubator-stratos/tools/puppet3/modules/
directory to the /etc/puppet/modules/
directory. /etc/puppet/manifests/
directory. ls
manifests/
nodes.pp site.pp
/etc/puppet/modules/
directory. ls
modules/
nodejs php ruby tomcat wordpress
Change the variables in the nodes.pp
file accordingly.
vi /etc/puppet/manifests/nodes.pp
Code Block |
---|
#following directory is used to store binary packages $local_package_dir = '/mnt/packs' # Stratos message broker IP and port $mb_ip = '10.4.128.12' $mb_port = '5672' # Stratos CEP IP and port $cep_ip = '10.4.128.10' $cep_port = '7611' # Stratos Cartridge Agent’s trust store password $truststore_password = 'wso2carbon' |
/etc/puppet/
directory.cd /etc/puppet/
autosign.conf
file and save the file.autosign.conf
file as follows:cat autosign.conf
*.test.org
Download a Java distribution and define the Java distribution in the /etc/puppet/manifests/
directory.
Create the files
folder in the /etc/puppet/modules/java/
directory. mkdir /etc/puppet/modules/java/files
Download the Java distribution to the /etc/puppet/modules/java/files/
directory.
Define the Java distribution name and the unzipped folder name in the nodes.pp
file, which is in the /etc/puppet/manifests/
directory, and save the file.
Code Block |
---|
$java_distribution = 'jdk-7u7-linux-x64.tar.gz' $java_name = 'jdk1.7.0_07' |
Copy the Cartridge Agent distribution (apache-stratos-cartridge-
agent-4.0.0-SNAPSHOT-bin.zip
), which is in the <source-home>/products/cartridge-agent/
modules/distribution/target/
directory, to the /etc/puppet/modules/agent/files/
directory. Check the list of files in the /etc/puppet/modules/agent/files/
directory.
Copy the Apache Stratos Load Balancer distribution (apache-stratos-load-balancer-
4.0.0-SNAPSHOT.zip
), which is in the <source-home>/products/load-balancer/modules/distribution/target/
directory, to the /etc/puppet/modules/lb/files/
directory. Check the list of files in the /etc/puppet/modules/lb/files/
directory.