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? Cheers, Ray -- 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/-/oMXAVJubU9cJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
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 puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Apparently Analagous Threads
- WG: Samba 4.1.7 /Centos 6 with bind-dlz ERROR: fialed to find dnsRecord for DC
- Phantom DNS records visible with dig, but not samba-tool dns
- Samba + BIND9 DLZ. DNS dosen't resolve FQDN, only short hostname
- Samba 4 internal DNS - how to modify SOA record
- Authentication to Secondary Domain Controller initially fails when PDC is offline