On Monday, November 12, 2012 2:22:31 AM UTC-6, Ray wrote:
>
> Hi,
>
> is there a way to do something alongs the lines of
>
> Exec { "assembleBINDZoneFile":
>    ...
>    require => [File["${bindzoneassemblyscript}"], Dnsrecord[ <<| |>> ] ],
> }
>
> I've written a DNS record Type/Provider. Exporting Dnsrecord resources 
> with @@ also works nicely.
>
> Before the zonefine gets assembled, I want to make sure that puppet first 
> collects all the Dnsrecord resources from its DB. The first way that come 
> to my mind was to put  Dnsrecord[ <<| |>> ] into the "require => " line, 
> however, this does not seem to be the right way: "Error 400 on SERVER: 
> Syntax error at '<<|'; expected '|>>'" is all I get.
>
> Any thoughts?
>


You should be able to do this via the chain operator:

exec { 'assembleBINDZoneFile':
   ...
   require => File["${bindzoneassemblyscript}"]
}

Dnsrecord<<| |>> -> Exec['assembleBINDZoneFile']


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/279A-VSTensJ.
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.

Reply via email to