Re: passing environment variable to cfengine daemons

"'Nick Anderson' via help-cfengine" <[email protected]>
Newsgroups gmane.comp.sysutils.cfengine.general
Message-ID <[email protected]>
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]?


[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/87zgmscee6.fsf%40northern.tech.

-- 
Nick Anderson | Doer of Things | (+1) 785-550-1767 | https://northern.tech

-- 
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/87zgmscee6.fsf%40northern.tech.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.