How to manage host file with modules plugins New to Foreman, Linux CentOS 6 x64

Background brand new installation.
Communication between the two devices are good. My question is: How can I
add hosts to '/etc/hosts/' on my slave.domain.test with the modules that I
downloaded from the puppet site? I haven't done anything else other than
install the Foreman and connected it with the client? How can I add or
delete hosts to this file? How can I start to edit the code from
"ghoneycutt" to have it working? Any clues would be great. Thanks.

(Here I have my master.domain.test)

puppet module list
/etc/puppet/environments/production/modules
├── ghoneycutt-hosts (v2.2.3)
└── puppetlabs-stdlib (v4.9.0)
/etc/puppet/environments/common (no modules installed)
/etc/puppet/modules (no modules installed)
/usr/share/puppet/modules (no modules installed)

(Here I have my servant.domain.test)
puppet agent -t
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Loading facts
Info: Caching catalog for spacetest.helium.test
Info: Applying configuration version '1443112963'
Notice: Finished catalog run in 0.09 seconds

(host file from servant)
cat /etc/hosts
10.10.10.253 servant.domain.test servant
127.0.0.1 localhost localhost.localdomain localhost4
localhost4.localdomain4
::1 localhost localhost.localdomain localhost6
localhost6.localdomain6

The module documentation says it has a number of parameters
(https://forge.puppetlabs.com/ghoneycutt/hosts), so if you run the
Puppet class import in Foreman you should be able to edit them from there.

Foreman :: Manual gives
an example of editing parameters with a standard NTP module. The same
principles should apply to that module.

··· On 24/09/15 17:50, Juan Rios wrote: > Background brand new installation. > Communication between the two devices are good. My question is: How can > I add hosts to '/etc/hosts/' on my slave.domain.test with the modules > that I downloaded from the puppet site? I haven't done anything else > other than install the Foreman and connected it with the client? How can > I add or delete hosts to this file? How can I start to edit the code > from "ghoneycutt" to have it working? Any clues would be great. Thanks. > > > (Here I have my master.domain.test) > > puppet module list > /etc/puppet/environments/production/modules > ├── ghoneycutt-hosts (v2.2.3) > └── puppetlabs-stdlib (v4.9.0) > /etc/puppet/environments/common (no modules installed) > /etc/puppet/modules (no modules installed) > /usr/share/puppet/modules (no modules installed)


Dominic Cleal
dominic@cleal.org