Hello!

I want to uncomment a line in a file, for example:

*/root/.bashrc*
# export LS_OPTIONS='--color=auto'


*after change:*
export LS_OPTIONS='--color=auto'

After some searching for a solution, I found the Augeas-Tool and then the 
Augeas-Shellvar-Provider.
So I tried it:

  shellvar { "export LS_OPTIONS":
    ensure  =>  present,
    target  =>  "/root/.bashrc",
    uncomment =>  true,
  }

But I always get this error, regardless how I paraphrase the ressource 
"shellvar".

An alternative solution would be great, too. But with the file_line 
ressource, I can't imagine, that there is an very short and easy way.

I hope someone can help me! 

Thank You!

Hoize

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/7e435d9e-42a1-4516-b627-6eaf58518976%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to