what is the usage of Puppet apply command

0 votes
Could you explain with example the usage of puppet apply command?
Jul 30, 2019 in Puppet by jenny
2,593 views

1 answer to this question.

0 votes

Puppet apply- Applies a standalone Puppet manifest to the local system.

This is the standalone puppet execution tool; use it to apply individual manifests.

When provided with a modulepath, via command line or config file, puppet apply can effectively mimic the catalog that would be served by puppet master with access to the same modules, although there are some subtle differences. 

When combined with scheduling and an automated system for pushing manifests, this can be used to implement a serverless Puppet site.

Most users should use 'puppet agent' and 'puppet master' for site-wide manifests.

Example:

$ puppet apply -l /tmp/manifest.log manifest.pp
$ puppet apply --modulepath=/root/dev/modules -e "include ntpd::server" 
$ puppet apply --catalog catalog.json
answered Jul 30, 2019 by Sirajul
• 59,230 points

Related Questions In Puppet

0 votes
1 answer

What is the use of etckeeper-commit-post and etckeeper-commit-pre on Puppet Agent?

Hey @Pallavi,  etckeeper-commit-post: In this configuration file you can ...READ MORE

answered Feb 15, 2019 in Puppet by Simran
1,155 views
0 votes
0 answers

Puppet+Docker: What is the equivalent of docker rm in Puppet code?

I was looking to remove a few ...READ MORE

Aug 13, 2019 in Puppet by Namik
• 1,230 points
771 views
0 votes
1 answer

What is the maximum limit of puppet agents that a Puppet server can handle?

 If scaling is a issue, you can ...READ MORE

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

What are the key components of Puppet?

These are the following key components of ...READ MORE

answered Mar 8, 2019 in Puppet by Veena
2,117 views
+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,053 views
+2 votes
1 answer
0 votes
1 answer

what is the role of Facter in puppet?

Facter is a library that reports and ...READ MORE

answered Jul 25, 2019 in Puppet by Sirajul
• 59,230 points
1,261 views
0 votes
1 answer

what is the puppet module command?

This command provides an interface for managing ...READ MORE

answered Jul 29, 2019 in Puppet by Sirajul
• 59,230 points
579 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