The "config.yaml" settings inside juju charms contain a type - e.g.:
pip_no_index:
default: False
type: boolean
description: "Prevent pip connecting to Python Package Index to download packages"
This type defaults to string if not provided. The only ones I've seen in existing charms are:
- string
- boolean
- int
Is it possible to have other types? Specifically, list
or dictionary
? Is there a list of charm config types anywhere?
All available types (as of r2798):
From the code:
If a
type:
setting is found inconfig.yaml
which doesn't match one of these, then it throws the error:This is a shame. I'd have very much liked the option of a
dictionary
ormap
type