Using puppet
, trying with the host
resource to update /etc/hosts
on node2.example.com
with the below entry
master.example.com 10.134.39.245
node2.example.com 10.134.39.246
For this I have created the following manifest .
node 'node2.example.com'{
host{
'master.example.com': ip => '10.134.39.245';
'node2.example.com': ip => '10.134.39.246';
}
}
But /etc/hosts
is not getting edited on node2.example.com