What are classes in Puppet?

0 votes
I know what classes are but what are classes in puppet?
Mar 8 in Puppet by Ruth
18 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 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 in Puppet by Sheela
19 views
0 votes
1 answer

what are Resources in puppet?

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

answered Jul 24 in Puppet by Sirajul
• 17,910 points
15 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 in Puppet by Sirajul
• 17,910 points
18 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
112 views
0 votes
1 answer
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
16 views
0 votes
1 answer

How are facts gathered in Puppet?

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

answered Feb 21 in Puppet by Vismaya
33 views