Hi All,
I have configured Puppet 3.8.1 and Augeas 1.5.0.
I am trying to edit /etc/hosts file using augeas with following code:
augeas{'host_file':
context => "/files/etc/hosts",
changes => [
"set ipaddr 192.168.0.1",
"set alias[1] pigiron",
"set alias[2] piggy",
],
}
When i am applying this config on Node, it's giving following error:
Error: /Stage[main]/Aug_mod::Configuration_files/Augeas[host_file]: Could not evaluate: undefined method `set' for #<Augeas:0x7f941d460da8>
Please guide.