Ask Your Question

lnxsck's profile - activity

2015-07-16 04:17:06 -0500 commented answer Are the empty [] enclosed section headers in the configuration files important?

@iamafish i believe so yes.

2015-07-01 03:53:46 -0500 received badge  Enthusiast
2015-06-24 21:45:52 -0500 received badge  Teacher (source)
2015-06-24 11:00:04 -0500 answered a question How to add new module in PUPPET

You must create the module directory structure in the pre-defined module directory of puppet.conf.

For example, let's say we want to pass a host file to the servers.

 mkdir –p /etc/puppet/environments/production/modules/my_hosts/files
 mkdir –p /etc/puppet/environments/production/modules/my_hosts/manifests

manifests - holds init.pp and any other configuration. init.pp - is the core of the module files - holds any files we wish to serve as part of our module templates - contains any templates our module might use

 vi /etc/puppet/environments/production/modules/my_hosts/manifests/my_hosts.pp
class my_hosts {

    file { 'hosts':
    owner => 'root',
    group => 'root',
    mode => '0440',
    path => '/etc/hosts',
    ensure => file,
    source => 'puppet://environments/production/modules/my_hosts/files/hosts'

    }

}
2015-06-24 10:54:10 -0500 answered a question Are the empty [] enclosed section headers in the configuration files important?

Section headers are not commented, so you can add configurations there if you want.

You should leave them there, even if they are empty.