CORD-1007 Generate certs and keys on the corddev VM
Change-Id: I18e9662f3efc7bf249ed319b1f7f7086f9424270
diff --git a/roles/create-lxd/tasks/main.yml b/roles/create-lxd/tasks/main.yml
index 3e081a2..a86fe66 100644
--- a/roles/create-lxd/tasks/main.yml
+++ b/roles/create-lxd/tasks/main.yml
@@ -44,6 +44,10 @@
nictype: bridged
parent: mgmtbr
type: nic
+ certs:
+ type: disk
+ path: /usr/local/share/ca-certificates/cord/
+ source: /usr/local/share/ca-certificates/
- name: Create containers for the OpenStack services
become: yes
@@ -124,6 +128,11 @@
tags:
- skip_ansible_lint # running a sub job
+- name: Update CA certificates in containers
+ command: ansible containers -m shell -b -u ubuntu -a "update-ca-certificates"
+ tags:
+ - skip_ansible_lint # running a sub job
+
- name: Create containers' eth0 interface config file for DNS config via resolvconf program
when: not on_maas
template: