-
Notifications
You must be signed in to change notification settings - Fork 15
/
charmcraft.yaml
65 lines (60 loc) · 1.63 KB
/
charmcraft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Learn more about charmcraft.yaml configuration at:
# https://juju.is/docs/sdk/charmcraft-config
# This is a template `charmcraft.yaml` file for ops charms
# This file is managed by bootstack-charms-spec and should not be modified
# within individual charm repos. https://launchpad.net/bootstack-charms-spec
type: charm
parts:
charm:
build-packages: [git]
bases:
- build-on:
- name: ubuntu
channel: "22.04"
architectures: ["amd64"]
run-on:
- name: ubuntu
channel: "24.04"
architectures:
- amd64
- name: ubuntu
channel: "22.04"
architectures:
- amd64
- name: ubuntu
channel: "20.04"
architectures:
- amd64
- build-on:
- name: ubuntu
channel: "22.04"
architectures: ["arm64"]
run-on:
- name: ubuntu
channel: "24.04"
architectures:
- arm64
- name: ubuntu
channel: "22.04"
architectures:
- arm64
- name: ubuntu
channel: "20.04"
architectures:
- arm64
actions:
redetect-hardware:
description: >
Redetect the hardware on the device and provide an option to
reinitialize the charm.
By default, this will only show the current hardware tool list and compare with new
detection.
The exporter service(s) will be reconfigured and restarted if option
`apply` is provided.
params:
apply:
type: boolean
description: |
Use the re-detected list of hardware tools as the new enable-list to reconfigure
and restart the exporter.
default: false