Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

file_line simply not working

$
0
0
Hi, I am using file\_line resource to match and replace but it's simply not working. I have tried with even simpler code but it simply ignoring my file\_line resource. file { '/tmp/eureka.txt': ensure => present, }-> file_line { 'Append a line to /tmp/eureka.txt': ensure => 'present', path => '/tmp/eureka.txt', line => 'Hello World', } I have already added "name": "puppetlabs-stdlib", "version": "4.17.0" and using PE 2015.2. After executing the above code I don't see any change happening except creation of the eureka file. Any idea?

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>