I want to use a CNAME as a level of indirection
( to point N webservers at the active mySQL replica).

I'd like to use /etc/hosts to avoid the DNS propagation delays.

I don't want to do away with DNS altogether though - is it possible to lookup
a hostname and pass that  IP to the hosts type? Something like:

# this gets used by several classes
$activedbhost = "mysql1.mydomain.com"

host { "db.hosting.mydomain.com":
   ensure => present,
   ip          => ip_of($activedbhost)
}

'ip_of()' is what Puppet calls a 'function', right?
Does anyone have a reference on how to write them -
the reductive labs docs seem a little broken today.

Or better still, has someone already written such a thing :)

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to