So basically I am using this (http://github.com/larstobi/puppet-dns/) module to manage amazon's route53 dns entries.
The generic definition goes like that:node 'testnode' {
base::route53::r53delegation { "$primary_fqdn.": ;}
}On a server node which (is actually my puppet master) submits dns entries to amazon I do:
node 'masternode' {
include base::route53::r53server
}The problem is that whenever I specify resources via base::route53::r53delegation within same node where base::route53::r53server is included, resources seems to show up (be exported) in the mysql database but are never realized...
--debug --verbose is not really verbose enough about realizing resources...
A little help how to further debug this would be highly appreciated...The definitions looks like below:
define base::route53::r53delegation($recordname ='', target="$::ec2_public_hostname",rtype='CNAME',$ttl=60) {
@@dnsrecord { "$title":
ensure => present,
value => "$target",
type => "$rtype",
zone => 'foobar.com.',
ttl => "$ttl",
}
}class base::route53::r53server {
include base::generalsettings
Dnsrecord <<| tag == 'Base::Route53::R53delegation' |>> {
id => "${base::generalsettings::route53_id}",
secret => "${base::generalsettings::route53_key}",
}
}
Its puppet 2.7.x latest, I chain resources like this:node 'puppetmaster-client' {include base::route53::r53server$primary_fqdn = 'puppetmaster.foo.bar'base::route53::r53delegation { ["$primary_fqdn.",'xyz.foo.bar.']: } ->Class['base::route53::r53server']}