Alan Sparks wrote:
> I'm trying to create an exported file resource and receiving a vague
> error message:
> Apr 5 18:01:04 ny4-dev-util01 puppetd[12860]: Could not run Puppet
> configuration client: You cannot specify more than one of content,
> source, target at line 102
>
> A puppet client (it's 0.24.8) is creating the following resource:
> @@file { "mlwormbackup_$fqdn":
> mode => 644,
> owner => root,
> group => root,
> ensure => $worm_backup_enabled,
> path => "/root/ml_backup_hosts/$fqdn",
> content =>
> "HOST=$fqdn\nCLEAR=$my_clear_shortname\nCLIENT=$my_bd_shortname\n",
> tag => "mlwormbackup",
> }
>
> Another server (this is a 0.25.4 puppet) has the following in its node
> definition:
> File <<| tag == "mlwormbackup" |>>
>
>
> All are running against a 0.25.4 puppetmaster. We're in process of
> testing migration of all to 0.25.
>
> The message makes no sense to me. The resource only has a content
> parameter, no source or target. Why is the 0.25 puppet (or the
> puppetmaster?) complaining about "more than one" of anything? I've
> looked for duplicate instances of this resource, emptied the
> storeconfigs database completely, and still cannot locate the source of
> this message.
>
> Is there some incompatibility in stored configs between 0.24 and 0.25
> clients?
>
> Thanks in advance for any advice.
> -Alan
>
>
>
Actually the problem was the value of "ensure." That was getting set to
"true" or "false" (set by a boolean test). Puppet saw "true", and threw
that error message (not very helpful, oh well). Fixing it to a
conditional "file" or "absent" helped.
Thanks Ken for making me think in that direction.
-Alan
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.