Re: passing environment variable to cfengine daemons
Xander Cage <[email protected]>
| Newsgroups | gmane.comp.sysutils.cfengine.general |
|---|---|
| Message-ID | <[email protected]> |
https://tracker.mender.io/browse/CFE-3925 On Tuesday, February 15, 2022 at 4:59:17 PM UTC+1 Xander Cage wrote: > will do it... > > On Tuesday, February 15, 2022 at 4:56:21 PM UTC+1 Nick Anderson wrote: > >> Xander Cage <[email protected]> writes: >> >> restarting all cfengine processe made the thing rolling… >> >> i added this to def.cf: >> >> aix:: "environment_vars" handle => "common_def_vars_environment_vars", >> comment => "Environment variables of the agent process. The values of >> environment variables are inherited by child commands. This variable makes >> aix more unix conform, should not hurt in cfengine context", slist => { >> "XPG_SUS_ENV=ON", }; >> >> Seems reasonable to me, but perhaps there should also be an empty list >> for the default case if you are not aix or debian. >> >> this to cf_agent.cf: >> >> debian|aix:: >> >> environment => { @(def.environment_vars) }; >> >> Then, if there is a default empty list this does not have to be >> restricted to a specific context and could then be set via augments for any >> platform without having to modify the vendored MPF. >> >> shall i do an PR? >> >> That would be great, can you open a ticket first so you can follow the >> contribution guidelines with respect to the format of the PR >> <https://github.com/cfengine/core/blob/master/CONTRIBUTING.md#pull-request-title-and-description>? >> >> > -- You received this message because you are subscribed to the Google Groups "help-cfengine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/help-cfengine/e84c3e25-43bb-4297-9878-15f55a264039n%40googlegroups.com.