Ask Your Question

Could not evaluate: Augeas didn't load with Shellvars.lns

asked 2016-07-08 08:12:33 -0600

Chutki gravatar image

updated 2016-07-08 08:13:56 -0600


I have below code using augeas provider

class module_name::my_services {
shellvar{ 'testing':
      ensure  => present,
      target  => '/etc/services',
      comment => 'test1',
include module_name::my_services

getting below error.

Could not evaluate: Augeas didn't load /etc/services with Shellvars.lns: Syntax error (line:23, character:6)

I added all the required module augeasproviders and augeasproviders_shellvar but still I am getting error.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-07-10 09:27:58 -0600

JohnsonEarls gravatar image

/etc/services does not use the Shellvars lens; it uses the Services lens. Unless augeasproviders has a services provider, you will have to use Augeas directly, or try another forge module that manages the /etc/services file (such as ccin2p3-etc_services)

edit flag offensive delete link more


Thanks for your response. But my requirement is to comment out a line on /etc/services, the etc_services only append the services on /etc/services file.

Chutki gravatar imageChutki ( 2016-07-11 05:20:10 -0600 )edit

Then you will have to use Augeas directly, if the `augeasproviders` developers do not provide a module to manage `/etc/services`. If you need help with Augeas, I would suggest creating a new question, since that's not what you asked in the original question here.

JohnsonEarls gravatar imageJohnsonEarls ( 2016-07-11 07:51:43 -0600 )edit

Your Answer

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

Add Answer

Question Tools

1 follower


Asked: 2016-07-08 08:12:33 -0600

Seen: 116 times

Last updated: Jul 10 '16