Hi,

I have a strange puppet error (v4.10.1) with a file resource that creates a 
cron job...

  file { '/etc/cron.daily/aide':
    ensure  => $mymodule::ensure_aide,
    owner   => 'root',
    group   => 'root',
    mode    => '0755',
    source  => 'puppet:///modules/mymodule/cron/daily-aide-check.sh',
    require => Package['aide'],
  }

The error is:

Error: Failed to apply catalog: Validation of File[/etc/cron.daily/aide] 
failed: You cannot specify more than one of content, source, target at <source 
file>:line#



The ensure param is a Variant - either boolean or enum of true, false, 
present, absent, latest.  The code passes the puppet parser and checking 
puppet lookup for $mymodule::ensure_aide for the test node returns a 'true' 
value from the module's hiera data.

Any ideas?

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/64776827-6fe1-49c0-89b1-fc532faa211a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to