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 canonical pigiron.example.com",
          "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.


-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/76dbf3da-c912-465b-981b-d19cda59df6f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to