On 16.04.2014 17:05, Ihor Kravchuk wrote:
Hi ,
I made a small python program that solves DNS integration issues
between
CloudStack VR's DNS service and BIND DNS.
This program assumes that you are using one sub-domain per
network(each
network has own sub-domain) (IMHO the best way fro naming instances in
CloudStack)
How it works:
This program runs on CloudStack management server and listen for the
new vm
deployment using CloudStack catalina.out log.
On event (new host deployed) program calls CloudStack API and gets
list of
Networks and list of VM. Using theses lists and preconfigured domain
settings it creates the zone file for BIND, push it to server and
refresh
BIND
The source code for the event driven version on GitHub:
https://github.com/IhorKravchuk/cloudstack_ingvar/
All parameters load from dns_builder.conf file and local and remote
(from
CloudStack mgmt server prospective) BIND DNS servers supported.
Igor
Pretty neat, but have you looked at this?
https://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.0/html/Admin_Guide/events.html
It sounds like you are not using that facility which to me (non-dev)
seems more elegant.
Lucian
--
Sent from the Delta quadrant using Borg technology!
Nux!
www.nux.ro