How to install a package in the slave node with Puppet

0 votes

Hi Guys,

I have configured a puppet Master-Slave configuration. I want to install a package in the slave node. How to do that?

Dec 31, 2020 in Puppet by akhtar
• 38,260 points
1,298 views

1 answer to this question.

0 votes

Hi@akhtar,

You need to add your node definition to /etc/puppet/manifests/site.pp. In Puppet manifests on 'master', agents are defined using node statements as shown below.

node 'puppet-agent' {
  package { 'vim' :
    ensure => present,
  }
}

If you run Puppet on 'puppet agent', you can see the below output.

Centos@puppet-agent:~$ sudo puppet agent --test
Info: Retrieving plugin
Info: Caching catalog for puppet-agent.ec2.internal
Info: Applying configuration version '1419623309'
Notice: Finished catalog run in 0.03 seconds
answered Dec 31, 2020 by MD
• 95,460 points

Related Questions In Puppet

0 votes
1 answer

How can i know the time as to when exactly did a node join puppet?

Puppet does not itself keep any timestamp ...READ MORE

answered Aug 8, 2019 in Puppet by Sirajul
• 59,230 points
724 views
0 votes
1 answer

How to install a package if it is not installed using puppet conditions

You will need to write a puppet ...READ MORE

answered Mar 18, 2020 in Puppet by Sirajul
• 59,230 points
2,109 views
+2 votes
1 answer

How do I trigger the puppet agent on slave to install docker using jenkins?

Hey @Mercy, you will have to write ...READ MORE

answered Aug 17, 2020 in Puppet by Karan
• 19,610 points
1,272 views
0 votes
0 answers
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,034 views
+2 votes
1 answer
0 votes
1 answer

How to pull the catalog from the puppet master node?

Hi@akhtar, The puppet agent is configured to run ...READ MORE

answered Dec 31, 2020 in Puppet by MD
• 95,460 points
1,397 views
0 votes
1 answer

How to change the run interval time in puppet?

Hi@akhtar, You can change the run interval time ...READ MORE

answered Dec 31, 2020 in Puppet by MD
• 95,460 points
1,569 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP