Feat: Modify Devstack templates to include Debian/Ubuntu 60/71860/2
authorMatthew Watkins <mwatkins@linuxfoundation.org>
Tue, 20 Jun 2023 11:00:52 +0000 (12:00 +0100)
committerMatthew Watkins <mwatkins@linuxfoundation.org>
Tue, 20 Jun 2023 11:34:14 +0000 (12:34 +0100)
Issue: RELENG-4765
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
Change-Id: I3dbd5152b32a79673d92d00fa022793cf3caecfb

provision/devstack.yaml [moved from provision/devstack-centos.yaml with 70% similarity]
releasenotes/notes/devstack-ubuntu-e08093d9d95055d2.yaml [new file with mode: 0644]
templates/devstack.json

similarity index 70%
rename from provision/devstack-centos.yaml
rename to provision/devstack.yaml
index 0a893a0..cf037c1 100644 (file)
@@ -18,7 +18,7 @@
               - crudini
             state: present
           become: true
-        - name: Installing non-baseline requirements
+        - name: Installing non-baseline requirements (CentOS/RedHat)
           yum:
             name:
               - libxml2-devel
               - "@development"
             state: present
           become: true
+        - name: Installing non-baseline requirements (Ubuntu/Debian)
+          apt:
+            name:
+              - libxml2-dev
+              - libxslt-dev
+              - libffi-dev
+              - libssl-dev
+              - build-essential
+            state: present
+          become: true
+          when: ansible_distribution == "Ubuntu"  or ansible_distribution == "Debian"
         - name: check if net link setup exists
           stat:
             path: /etc/udev/rules.d/80-net-setup-link.rules
diff --git a/releasenotes/notes/devstack-ubuntu-e08093d9d95055d2.yaml b/releasenotes/notes/devstack-ubuntu-e08093d9d95055d2.yaml
new file mode 100644 (file)
index 0000000..2c7dfac
--- /dev/null
@@ -0,0 +1,4 @@
+---
+features:
+  - |
+    Modify devstack templates for Ubuntu/Debian distributions.
index ba0668e..98a1f13 100644 (file)
@@ -55,7 +55,7 @@
     },
     {
       "type": "ansible",
-      "playbook_file": "provision/devstack-centos.yaml",
+      "playbook_file": "provision/devstack.yaml",
       "command": "./common-packer/ansible-playbook.sh",
       "skip_version_check": true,
       "ansible_env_vars": [