Configure charm build on jammy

Insert nft rule on openstack-INPUT chain allowing incoming traffic on
lxdbr0.
Switch charmbuild to 2.x/stable.

Change-Id: I1ccb90cf46751875c0e1b4b528e7bab1e6befc13
This commit is contained in:
Hemanth Nakkina 2023-12-01 15:31:43 +05:30 committed by Guillaume Boutry
parent 7a3ccdb004
commit e8666ea678
No known key found for this signature in database
GPG Key ID: E95E3326872E55DE
3 changed files with 19 additions and 6 deletions

View File

@ -12,6 +12,12 @@
name: snapd
become: true
- name: nftables is installed
apt:
name: nftables
become: true
when: ansible_distribution_release == 'jammy'
- name: lxd snap is installed
snap:
name: lxd
@ -22,6 +28,11 @@
command: lxd init --auto
become: true
- name: allow packets from lxd bridge
command: nft insert rule filter openstack-INPUT iif lxdbr0 accept
become: true
when: ansible_distribution_release == 'jammy'
- name: current user is in lxd group
user:
name: "{{ ansible_user }}"

View File

@ -1,4 +1,6 @@
#!/bin/bash
#!/usr/bin/env bash
set -o xtrace
source common.sh
@ -91,8 +93,7 @@ then
fi
push_common_files $charm || exit 1
pushd charms/$charm
pushd charms/$charm || exit 1
charmcraft -v pack || exit 1
if [[ -e "${charm}.charm" ]];
then
@ -100,9 +101,10 @@ then
rm "${charm}.charm"
fi
echo "Renaming charm ${charm}_*.charm to ${charm}.charm"
mv ${charm}_*.charm ${charm}.charm
popd
mv ${charm}_*.charm ${charm}.charm
popd || exit 1
pop_common_files $charm || exit 1
else
echo "tox argument should be one of pep8, py3, py310, py311, cover";

View File

@ -23,7 +23,7 @@
juju_classic_mode: false
microk8s_channel: 1.28-strict/stable
microk8s_classic_mode: false
charmcraft_channel: 2.0/stable
charmcraft_channel: 2.x/stable
publish_channels:
keystone-k8s: 2023.2/edge
glance-k8s: 2023.2/edge