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:

committed by
Guillaume Boutry

parent
7a3ccdb004
commit
e8666ea678
@@ -12,6 +12,12 @@
|
|||||||
name: snapd
|
name: snapd
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
- name: nftables is installed
|
||||||
|
apt:
|
||||||
|
name: nftables
|
||||||
|
become: true
|
||||||
|
when: ansible_distribution_release == 'jammy'
|
||||||
|
|
||||||
- name: lxd snap is installed
|
- name: lxd snap is installed
|
||||||
snap:
|
snap:
|
||||||
name: lxd
|
name: lxd
|
||||||
@@ -22,6 +28,11 @@
|
|||||||
command: lxd init --auto
|
command: lxd init --auto
|
||||||
become: true
|
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
|
- name: current user is in lxd group
|
||||||
user:
|
user:
|
||||||
name: "{{ ansible_user }}"
|
name: "{{ ansible_user }}"
|
||||||
|
12
run_tox.sh
12
run_tox.sh
@@ -1,4 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -o xtrace
|
||||||
|
|
||||||
source common.sh
|
source common.sh
|
||||||
|
|
||||||
@@ -91,8 +93,7 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
push_common_files $charm || exit 1
|
push_common_files $charm || exit 1
|
||||||
|
pushd charms/$charm || exit 1
|
||||||
pushd charms/$charm
|
|
||||||
charmcraft -v pack || exit 1
|
charmcraft -v pack || exit 1
|
||||||
if [[ -e "${charm}.charm" ]];
|
if [[ -e "${charm}.charm" ]];
|
||||||
then
|
then
|
||||||
@@ -100,9 +101,10 @@ then
|
|||||||
rm "${charm}.charm"
|
rm "${charm}.charm"
|
||||||
fi
|
fi
|
||||||
echo "Renaming charm ${charm}_*.charm to ${charm}.charm"
|
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
|
pop_common_files $charm || exit 1
|
||||||
else
|
else
|
||||||
echo "tox argument should be one of pep8, py3, py310, py311, cover";
|
echo "tox argument should be one of pep8, py3, py310, py311, cover";
|
||||||
|
@@ -23,7 +23,7 @@
|
|||||||
juju_classic_mode: false
|
juju_classic_mode: false
|
||||||
microk8s_channel: 1.28-strict/stable
|
microk8s_channel: 1.28-strict/stable
|
||||||
microk8s_classic_mode: false
|
microk8s_classic_mode: false
|
||||||
charmcraft_channel: 2.0/stable
|
charmcraft_channel: 2.x/stable
|
||||||
publish_channels:
|
publish_channels:
|
||||||
keystone-k8s: 2023.2/edge
|
keystone-k8s: 2023.2/edge
|
||||||
glance-k8s: 2023.2/edge
|
glance-k8s: 2023.2/edge
|
||||||
|
Reference in New Issue
Block a user