On Thursday, November 14, 2013 3:46:24 PM UTC-6, Stuart Cracraft wrote:
>
>
> somefile.pp
>
> class mumble {
> }
>
> class mumble::testcontents inherits mumble {
> file { "/tmp/testfile":
> path => "/tmp/testfile,
> ensure => present,
> mode => 0640,
> content => "I am a test file.",
>
>
>
> puppet parser validate passed it.
>
> puppet apply says it is run
>
> yet no /tmp/testfile appears
>
> the puppet master is running and this is being done on the puppet master.
> the agent on the puppet master is running.
>
Other than the problems Jo pointed out, it is a bit inconsistent to combine
"ensure => present" with any specified 'content'. If you intend for the
target to be a regular file, then you should "ensure => 'file'", and if you
don't care whether it's a regular file then it doesn't make sense to
specify content.
John
--
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/e8587c1b-6d16-4673-a972-0a9ddc01e497%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.