Ask Your Question

Revision history [back]

Other than some formatting issues, I don't see why that's not working, however, you can also try:

  file { '/tmp/eureka.txt':
    ensure => file,
  }

  file_line { 'Append a line to /tmp/eureka.txt':
    ensure  => present,
    path    => '/tmp/eureka.txt',
    line    => 'Hello World',
    require => File['/tmp/eureka.txt'],
  }