[Puppet Users] Re: What is wrong with this class?

jcbollinger
Fri, 15 Nov 2013 14:17:58 -0000

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 puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit