What are classes in Puppet?

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

What are the problems that are overcome by using Puppet?

I've used puppet for configuration management the ...READ MORE

answered Mar 5 in Puppet by Yesha
8 views
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
30 views
0 votes
1 answer

What are the key components of Puppet?

These are the following key components of ...READ MORE

answered Mar 8 in Puppet by Veena
17 views
+13 votes
2 answers
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
10 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
31 views