I see a lot of charms use base64 values in config parameters. Especially
when the values are stuff like custom templates.

Is this really the way to go? It may avoid shell quoting hell for
parameters set via command line. (Usually trivial)
But when set via --file option (which is clearly the better way with
complex fields) then I have to say the 'here document' features of YAML
are actually quite good.

The problem I see with bas64 is that nobody can read it without decoding
it every time.

Opinions?


Just as a example of what I mean:
application: logstash-supportcloud
charm: logstash-conf-d
settings:
  config:
    value: |
           filter {
               if [message] == "" {
                   drop { }
               }
           }
           output {
               gelf {
                   host => "foobar"
                   port => "5002"
               }
           }


Cheers
 Tilman Baumann

-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju

Reply via email to