Here's a script I pipe the output of `juju get` to. It formats the settings (non-default by default, or all settings with --all) as `juju set` commands, taking into account formatting and escaping introduced by the YAML output process. --comments shows the help for each setting, but commented out.
I've found that this helps tremendously when needing to modify a complex setting, or even viewing modified settings in an environment.
Here's a script I pipe the output of `juju get` to. It formats the settings (non-default by default, or all settings with --all) as `juju set` commands, taking into account formatting and escaping introduced by the YAML output process. --comments shows the help for each setting, but commented out.
I've found that this helps tremendously when needing to modify a complex setting, or even viewing modified settings in an environment.