Allowing variables in default.toml


#1

It would be awesome to have variables from pkg and sys available for use in default.toml. Some examples would be sys.ip for hostname or data files paths for pkg_data_paths. Thoughts?


#2

Yes! Or if there was a way to update cfg variables from a hook. For example, I might want to set a var to a FQDN and I might only ever know the domain at runtime. My shell script hook can query the current domain which I will not know at build time and is also not included in the sys vars.


#3

@mwrock is more of what I would like to see. I am having a problem knowing if my database is bound to localhost or the external IP Address. If we could update a cfg variable with the address it is bound to instead of 0.0.0.0, that would be a better solution then what I am trying to do here https://github.com/habitat-sh/core-plans/pull/1242.