Juju command to display non-default config values
Bug #1975748 reported by
Connor Chamberlain
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Opinion
|
Wishlist
|
Unassigned |
Bug Description
There are times when it would be convenient to quickly see which configs for a given application have a non-default value. Currently, we can achieve this effect by performing an export-bundle, but it is slow and wasteful for this purpose, as it generates far more data than is required.
I would like to be able to run something like `juju config $app --non-default` or `juju non-default-configs $app` and see all configs for $app which have been modified.
Changed in juju: | |
importance: | Undecided → Wishlist |
status: | New → Opinion |
To post a comment you must log in.
Fwiw, Juju keeps "source: user" for those values modified by an user so you can query it like:
$ juju config keystone --format json \ .value. source= ="user" ).key'
| jq -c '.settings | to_entries[] | select(
"openstack-origin" hostname" hostname"
"os-admin-hostname"
"os-internal-
"os-public-
"region"
"vip"
$ juju config keystone --format json \ .value. source= ="user" ) | [.key, .value.value]'
| jq -c '.settings | to_entries[] | select(
["openstack- origin" ,"cloud: focal-yoga" ] hostname" ,"admin. my.example. com"] hostname" ,"internal. my.example. com"] hostname" ,"public. my.example. com"] ,"myRegion" ] "10.100. 0.11"]
["os-admin-
["os-internal-
["os-public-
["region"
["vip",