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

cf_runagent select-class looks broken

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Rejected
    • Priority: High
    • Resolution: Won't Do
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      Trying this example from a fresh installation

      [https://cfengine.com/docs/3.5/reference-components-cfrunagent.html#hosts]

      Having same content in inputs/controls/cf_runagent.cf

      And trying

      <pre>
      root@cfeserver:/var/cfengine# ./bin/cf-runagent -s network1 -d | grep network1
      L:line network1::
      L:class network1:: 12
      P:body:runagent:control: class = network1::
      P:body:runagent:control:network1 attribute = hosts
      P:body:runagent:control:network1 list append: qstring = host1.example.org
      P:body:runagent:control:network1 list append: qstring = host2
      P:body:runagent:control:network1 list append: qstring = host3
      P:body:runagent:control:network1 install list = hosts
      </pre>

      No class defined, no connection timout, nothing else related to any servers as mentionned in cf_runagent.cf.
      Looks like it is not working...

      BTW [https://github.com/cfengine/core/blob/master/cf-runagent/cf-runagent.c#L685] seems to use a regexp with ' ' little bit inconsistent compare to other one.

        Attachments

          Release management

            Issue Links

              Activity

                People

                Assignee:
                a10042 Nick Anderson
                Reporter:
                aagahi Alexis Agahi (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: