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,180 points
74 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,140 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,030 points
122 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,030 points
324 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 16, 2020 in Puppet by Karan
• 19,590 points
408 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
1,037 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,140 points
56 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,140 points
63 views