what is the usage of Puppet apply command?

0 votes
Could you explain with example the usage of puppet apply command?
Jul 30 in Puppet by jenny
20 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 by Sirajul
• 29,660 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 in Puppet by Simran
86 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 in Puppet by Namik
• 1,200 points
13 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 in Puppet by Sirajul
• 29,660 points
14 views
0 votes
1 answer

What are the key components of Puppet?

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

answered Mar 8 in Puppet by Veena
62 views
+13 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,380 points
177 views
0 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 in Puppet by Sirajul
• 29,660 points
28 views
0 votes
1 answer

what is the puppet module command?

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

answered Jul 29 in Puppet by Sirajul
• 29,660 points
19 views