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, 2019 in Puppet by Vinay
514 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, 2019 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, 2019 in Puppet by Yogesh
1,584 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, 2019 in Puppet by Sirajul
• 59,230 points
1,993 views
0 votes
1 answer

What is Hiera in puppet and what does it do?

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

answered Jul 25, 2019 in Puppet by Sirajul
• 59,230 points
4,542 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, 2019 in Puppet by Sirajul
• 59,230 points
958 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
3,503 views
+2 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, 2019 in Puppet by Namik
• 1,230 points
548 views
0 votes
1 answer

What are classes in Puppet?

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

answered Mar 8, 2019 in Puppet by Haider
362 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