Quoting Felix Frank <[email protected]> on Fri, Jul 17 22:13:
>
> https://github.com/puppetlabs/puppetlabs-stdlib#file_line
> 
> As soon as you install the stdlib module, the type becomes available to
> your manifests.

I have had great luck with the file_line, expecially when used with the
'match =>' parameter which keeps there from being multiple lines if you
update the contents of 'line =>' at some point.

 file_line { 'sbin_for_root':
   path  => '/root/.profile',
   line  => 'export PATH="$PATH:/usr/local/sbin",
   match => '^export PATH=',
 }

-- 
Omen Wild
Systems Administrator
Metro Cluster

-- 
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/20150718173915.GA16660%40descolada.ucdavis.edu.
For more options, visit https://groups.google.com/d/optout.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to