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
20 views

1 answer to this question.

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
52 views
0 votes
1 answer

What is PSON in puppet and how is it different from JSON?

PSON is a variant of JSON which ...READ MORE

answered Jul 24 in Puppet by Sirajul
• 25,420 points
36 views
0 votes
1 answer

What is Hiera in puppet and what does it do?

Hiera is a built-in key-value configuration data lookup ...READ MORE

answered Jul 25 in Puppet by Sirajul
• 25,420 points
48 views
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
• 25,420 points
25 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
148 views
0 votes
1 answer
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
12 views
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
21 views