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

server bundles not expanding certain slists

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.0
    • Component/s: Evaluation
    • Labels:
      None
    • Platform:
      Any

      Description

      $ cat promises.cf
      <pre>
      body common control
      {
      bundlesequence =>

      { "main" }

      ;
      }

      bundle agent main
      {
      reports:
      cfengine::
      "foo";
      }

      bundle server access
      {
      vars:
      "h[mf]" slist =>

      { "ettin", "sol", "venus" }

      ;
      "h[mo]" slist =>

      { "vega", "polaris", "rigel" }

      ;

      "i" slist => getindices( "h" );

      access:
      "${sys.workdir}/masterfiles/${i}"
      admit_hostnames => { "@{h[${i}]}" };
      }
      </pre>

      Running cf-server -vF shows:

      <pre>
      2014-04-17T11:50:48-0400 verbose: === BEGIN summary of access
      promises === 2014-04-17T11:50:48-0400 verbose: Path:
      /home/neil/.cfagent/masterfiles/mf
      2014-04-17T11:50:48-0400 verbose: admit_hostnames: @

      {h[mf]}

      2014-04-17T11:50:48-0400 verbose: Path: /home/neil/.cfagent/masterfiles/mo
      2014-04-17T11:50:48-0400 verbose: admit_hostnames: @

      {h[mo]}

      </pre>
      Expected results
      <pre>
      2014-04-17T11:50:48-0400 verbose: === BEGIN summary of access
      promises === 2014-04-17T11:50:48-0400 verbose: Path:
      /home/neil/.cfagent/masterfiles/mf
      2014-04-17T11:50:48-0400 verbose: admit_hostnames: ettin
      2014-04-17T11:50:48-0400 verbose: admit_hostnames: sol
      2014-04-17T11:50:48-0400 verbose: admit_hostnames: venus
      2014-04-17T11:50:48-0400 verbose: Path: /home/neil/.cfagent/masterfiles/mo
      2014-04-17T11:50:48-0400 verbose: admit_hostnames: vega
      2014-04-17T11:50:48-0400 verbose: admit_hostnames: polaris
      2014-04-17T11:50:48-0400 verbose: admit_hostnames: rigel
      </pre>

        Attachments

          Activity

            People

            • Assignee:
              a10025 Volker Hilsheimer (Inactive)
              Reporter:
              neilhwatson Neil Watson
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel