What are classes in Puppet

0 votes
I know what classes are but what are classes in puppet?
Mar 8, 2019 in Puppet by Ruth
356 views

1 answer to this question.

0 votes

Classes in Puppet are introduced using the class keyword and the content of that particular class is wrapped inside the curly braces as shown in the following example.

class unix { 
   file { 
      '/etc/passwd': 
      owner => 'superuser', 
      group => 'superuser', 
      mode => 644; 
      '/etc/shadow': 
      owner => 'vipin', 
      group => 'vipin', 
      mode => 440; 
   } 
}
answered Mar 8, 2019 by Haider

Related Questions In Puppet

0 votes
1 answer

What are profiles in Puppet?

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

answered Feb 15, 2019 in Puppet by Sheela
404 views
0 votes
1 answer

what are Resources in puppet?

Resources are the fundamental unit for modeling ...READ MORE

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

what are the different plugins in modules of puppet?

Puppet supports several kinds of plug-ins: Custom facts ...READ MORE

answered Jul 25, 2019 in Puppet by Sirajul
• 59,230 points
526 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,458 views
+2 votes
1 answer
0 votes
1 answer

What are modules in puppet?

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

answered Mar 8, 2019 in Puppet by Vivek
378 views
0 votes
1 answer

How are facts gathered in Puppet?

A tool called factor is used by ...READ MORE

answered Feb 21, 2019 in Puppet by Vismaya
363 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