What are classes in Puppet?

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

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
11 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
7 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
18 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
10 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
6 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
29 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.