What is resource declaration in Puppet?

0 votes
What is resource declaration in puppet? How does it look, like can you please give an example? Thank you so much.
Mar 11 in Puppet by Vinay
8 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Puppet code is composed primarily of resource declarations. A resource describes something about the state of the system, such as a certain user or file should exist, or a package should be installed. Here is an example of a user resource declaration:

user { 'mitchell':
  ensure     => present,
  uid        => '1000',
  gid        => '1000',
  shell      => '/bin/bash',
  home       => '/home/mitchell'
}
answered Mar 11 by Bob

Related Questions In Puppet

0 votes
1 answer

What is class inheritance in Puppet?

What is class Inheritance? Node groups inherent properties ...READ MORE

answered Mar 5 in Puppet by Yogesh
18 views
0 votes
1 answer

What are profiles in Puppet?

Wrapper classes that use multiple component modules ...READ MORE

answered Feb 15 in Puppet by Sheela
11 views
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
50 views
0 votes
1 answer

Is nested class supported in Puppet?

Puppet supports the concept of nesting of ...READ MORE

answered Mar 8 in Puppet by Devika
29 views
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer

What are classes in Puppet?

Classes in Puppet are introduced using the ...READ MORE

answered Mar 8 in Puppet by Haider
12 views
0 votes
1 answer

What are modules in puppet?

A module can be defined as a ...READ MORE

answered Mar 8 in Puppet by Vivek
7 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.