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
48 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
56 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
• 53,110 points
49 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
• 53,110 points
77 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,420 points
499 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, 2019 in Puppet by Vivek
50 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
57 views