Puppet is a software configuration management tool, used for managing
software stack on servers. Java also can be managed using Puppet.
Here below are the steps for installing Java using Puppet on Ubuntu:
First install Java modules on Puppet Master using sudo command.
Step 1
sudo /opt/puppetlabs/bin/puppet module install puppetlabs-java --version 6.2.0
The above command will install Java module on Puppet Master.
Step 2
After that change the manifest in site.pp file in Puppet Master by executing the below command:
sudo vi /etc/puppetlabs/code/environments/production/manifests/site.pp
node 'target_agent_node_private_dns_name' {
include lamp
class {
'java':
distribution => 'jre',
}
}
Step 3
Now go to Puppet Agent node and apply the changes by executing the below command:
sudo /opt/puppetlabs/bin/puppet agent --test
once you installed, type java -version to confirm Java version
Here below are the steps for installing Java using Puppet on Ubuntu:
First install Java modules on Puppet Master using sudo command.
Step 1
sudo /opt/puppetlabs/bin/puppet module install puppetlabs-java --version 6.2.0
The above command will install Java module on Puppet Master.
Step 2
After that change the manifest in site.pp file in Puppet Master by executing the below command:
sudo vi /etc/puppetlabs/code/environments/production/manifests/site.pp
node 'target_agent_node_private_dns_name' {
include lamp
class {
'java':
distribution => 'jre',
}
}
Step 3
Now go to Puppet Agent node and apply the changes by executing the below command:
sudo /opt/puppetlabs/bin/puppet agent --test
once you installed, type java -version to confirm Java version
No comments:
Post a Comment