c2bdac4cbb
This patchset implements key rotation for the ceph-fs charm by receiving the new pending key from the ceph-mon charm and manually rotating it via Ceph's authtool. It makes use of the 'ceph-mds-relation-changed' hook for this. Change-Id: Ie0a431235fa6d2c74709f9b6c52ce16557990067
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
type: charm
|
|
|
|
parts:
|
|
charm:
|
|
charm-entrypoint: "hooks/install"
|
|
build-packages:
|
|
- tox
|
|
- git
|
|
- python3-dev
|
|
- libffi-dev
|
|
override-build: |
|
|
apt-get install ca-certificates -y
|
|
tox -e build-reactive
|
|
override-stage: |
|
|
echo "Copying charm to staging area: $CHARMCRAFT_STAGE"
|
|
NAME=$(ls $CHARMCRAFT_PART_BUILD/build/builds)
|
|
cp -r $CHARMCRAFT_PART_BUILD/build/builds/$NAME/* $CHARMCRAFT_STAGE/
|
|
override-prime: |
|
|
# For some reason, the normal priming chokes on the fact that there's a
|
|
# hooks directory.
|
|
cp -r $CHARMCRAFT_STAGE/* .
|
|
|
|
bases:
|
|
- build-on:
|
|
- name: ubuntu
|
|
channel: "20.04"
|
|
architectures:
|
|
- amd64
|
|
run-on:
|
|
- name: ubuntu
|
|
channel: "20.04"
|
|
architectures: [amd64, s390x, ppc64el, arm64]
|
|
- name: ubuntu
|
|
channel: "22.04"
|
|
architectures: [amd64, s390x, ppc64el, arm64]
|
|
- name: ubuntu
|
|
channel: "23.04"
|
|
architectures: [amd64, s390x, ppc64el, arm64]
|
|
- name: ubuntu
|
|
channel: "23.10"
|
|
architectures: [amd64, s390x, ppc64el, arm64]
|