From: Matthew Watkins Date: Tue, 20 Jun 2023 11:00:52 +0000 (+0100) Subject: Feat: Modify Devstack templates to include Debian/Ubuntu X-Git-Tag: v0.14.0~1 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=901a507e1f565e1ebe4480cf762e7514c067f11c;p=releng%2Fcommon-packer.git Feat: Modify Devstack templates to include Debian/Ubuntu Issue: RELENG-4765 Signed-off-by: Matthew Watkins Change-Id: I3dbd5152b32a79673d92d00fa022793cf3caecfb --- diff --git a/provision/devstack-centos.yaml b/provision/devstack.yaml similarity index 70% rename from provision/devstack-centos.yaml rename to provision/devstack.yaml index 0a893a0..cf037c1 100644 --- a/provision/devstack-centos.yaml +++ b/provision/devstack.yaml @@ -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 @@ -28,6 +28,17 @@ - "@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 index 0000000..2c7dfac --- /dev/null +++ b/releasenotes/notes/devstack-ubuntu-e08093d9d95055d2.yaml @@ -0,0 +1,4 @@ +--- +features: + - | + Modify devstack templates for Ubuntu/Debian distributions. diff --git a/templates/devstack.json b/templates/devstack.json index ba0668e..98a1f13 100644 --- a/templates/devstack.json +++ b/templates/devstack.json @@ -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": [