define cordloghost for logging
Change-Id: Ide456886acf7de8d737c8948a672b1c690433756
diff --git a/roles/maas/defaults/main.yml b/roles/maas/defaults/main.yml
index de2a8cb..51897f9 100644
--- a/roles/maas/defaults/main.yml
+++ b/roles/maas/defaults/main.yml
@@ -64,3 +64,6 @@
docker:
tag: "{{ deploy_docker_tag | default('candidate') }}"
+
+# temporary, for ciab builds
+cord_loghost: "10.100.198.222"
diff --git a/roles/maas/tasks/main.yml b/roles/maas/tasks/main.yml
index 27a7bde..6e2a2aa 100644
--- a/roles/maas/tasks/main.yml
+++ b/roles/maas/tasks/main.yml
@@ -215,12 +215,20 @@
- { src: 'dhcpd.blacklist', dest: '/etc/dhcp' }
- { src: 'dhcpd.reservations', dest: '/etc/dhcp' }
- { src: 'dhcp_harvest.inc', dest: '/etc/bind/maas' }
- - { src: 'cnames.inc', dest: '/etc/bind/maas' }
- { src: 'named.conf.options.inside.maas', dest: '/etc/bind/maas' }
- { src: 'dhcpd.conf.template', dest: '/etc/maas/templates/dhcp' }
- { src: 'dhcp_harvest.inc', dest: '/etc/maas/templates/dns' }
- { src: 'zone.template', dest: '/tmp' }
+- name: Customize cnames.inc file
+ become: yes
+ template:
+ src: cnames.inc.j2
+ dest: "/etc/bind/maas/cnames.inc"
+ owner: maas
+ group: maas
+ mode: "0644"
+
- name: Ensure RNDC Listens
become: yes
lineinfile:
diff --git a/roles/maas/files/cnames.inc b/roles/maas/templates/cnames.inc.j2
similarity index 92%
rename from roles/maas/files/cnames.inc
rename to roles/maas/templates/cnames.inc.j2
index 5c7b906..d9b4349 100644
--- a/roles/maas/files/cnames.inc
+++ b/roles/maas/templates/cnames.inc.j2
@@ -1,3 +1,5 @@
+cordloghost IN A {{ cord_loghost }}
+
mongodb CNAME mongodb-1
nagios CNAME nagios-1
openstack-dashboard CNAME openstack-dashboard-1