Hello =)

I would like to either replace "enabled=True" to "enabled=False" in a bunch 
of files or rename those files to end with "_false".

Right now I replace content is files with e.g.

 replace { 'dummy5':
    file => '/etc/xdg/user-dirs.conf',
    pattern => "enabled=True",
    replacement => "enable=False"
  }

but I don't like it a whole lot, as I have to fill in the dummy variable my 
self and make sure all are unique.

Is it possible to rename files with Puppet or is there a better way to 
replace content files?

Kind regards
Jasmine


-- 
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/fa3b4b2b-9f42-426a-92dd-af602e27684e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to