Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-2151

values from augments_file (def.json) not resolved soon enough for executor control

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      <pre>
      [root@host001 inputs]# cf-execd -OK
      error: Mail report: unknown host '$(def.smtpserver)' ('smtpserver' in body executor control). Make sure that fully qualified names can be looked up at your site.
      </pre>

      The class guard in body executor control to enable or disable email has no effect with regard to the ability to set this variable. Removing the guard results in the same error.

      Setting smtpserver directly just results in complaining about other settings.

      <pre>
      [root@host001 inputs]# cf-execd -OK
      error: Mail report: cannot mail to $(def.mailto).
      </pre>

      Setting mailto allows me to continue, but then I can see that mailfrom is not expanded properly in /var/log/mailllog.

      <pre>
      Sep 25 19:37:02 localhost postfix/qmgr[1114]: 51FBC8009F: from=<$@host001.localdomain>, size=649, nrcpt=1 (queue active)
      </pre>

      This leads me to conclude that it is related to pre-evaluation having fewer passes and perhaps less opportunity for executor control to converge those variables.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10003 Eystein Maloy Stenberg
                Reporter:
                a10042 Nick Anderson
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel