Skip to content

Cannot create simple file with puppet locally or at client node #62

Discussion options

You must be logged in to vote

You created a class, but you didn't apply/assign it to your node. puppet apply /etc/puppetlabs/code/environments/production/modules/helloworld/manifests/init.pp -e 'include helloworld' should work. Or remove the class statement:

  file { '/tmp/foobar.txt':
    ensure  => file,
    mode    => '0644',
    content => 'Hello World \n';
  }

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@binford2k
Comment options

Answer selected by binford2k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants