Ask Your Question
0

puppet augeas resource only support avalialbe lenses

asked 2015-08-12 05:33:05 -0500

Chutki gravatar image

updated 2015-08-12 05:34:05 -0500

Hi,

I am automating rhnplugin config file in puppet, below is my manifests

  augeas { 'config' :
    lens => 'Simplevars.lns',
    incl => '/etc/yum/pluginconf.d/rhnplugin.conf',
   changes => 'set /etc/yum/pluginconf.d/rhnplugin.conf/test " " '
 }

getting below error

Warning: Augeas[config](provider=augeas): Loading failed for one or more files, see debug for /augeas//error output

even I tried with "simplelines lenses" not getting any o/p

I used "simplelines and simplevars" since could not find lenses for rhnplugin.

I treid in augtool and it worked

augtool> set /files/etc/yum/pluginconf.d/rhnplugin.conf/test
augtool> save
Saved 1 file(s)
augtool> set /files/etc/yum/pluginconf.d/rhnplugin.conf/test/enabled 1
augtool> save
Saved 1 file(s)
augtool> print /files/etc/yum/pluginconf.d/rhnplugin.conf/test
/files/etc/yum/pluginconf.d/rhnplugin.conf/test
/files/etc/yum/pluginconf.d/rhnplugin.conf/test/enabled = "1"

My doubt is can't we convert int to augeas resource if the lenses are not available.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-08-13 05:26:41 -0500

Chutki gravatar image

I used "ini_setting" resource and it worked.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2015-08-12 05:33:05 -0500

Seen: 339 times

Last updated: Aug 13 '15