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

def.json, not working

    XMLWordPrintable

    Details

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

      Description

      Try to copy example_def.json to masterfiles/controls/3.7/def.json . None of the variables set in def.json expands
      as I would expect, using cf-promise --show-vars . Make simplest def.json and confirm same .

      test:

      yum install cfengine-community-3.7.0-1.el6.x86_64.rpm
      cd /var/cfengine/masterfiles/controls/3.7/;wget https://raw.githubusercontent.com/cfengine/masterfiles/master/example_def.json;cp example_def.json def.json
      cf-agent --bootstrap megalon
      cf-promise -D DEBUG --show-vars|grep -i mailto
      default:control_executor.mailto $(def.mailto) source=promise

      I would expect the variables to expand as set by def.json.

      repeat - with simpler def.json:
      {"vars":{"mailto":"people@mydomain-com"}}

      cf-agent -KIf update.cf

      cf-promises -D DEBUG_cf --show-vars|grep mailto
      default:control_executor.mailto $(def.mailto) source=promise
      -
      lsb_release -a
      LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
      Distributor ID: RedHatEnterpriseServer
      Description: Red Hat Enterprise Linux Server release 6.7 (Santiago)
      Release: 6.7
      Codename: Santiago

      rpm -q gcc
      gcc-4.4.7-16.el6.x86_64

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10053 Marcin Pasinski
                Reporter:
                don don moore
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel