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

files_single_copy when set from augments has no effect

    XMLWordPrintable

    Details

      Description

      From #cfengine on irc.freenode.net:

      Is there a bug with control_agent_files_single_copy?
      
      4:12 AM
      I added the following line to the var section in def.json
      4:12 AM
      "control_agent_files_single_copy": [ ".*" ]
      4:13 AM
      but it doesnt behave as expected.
      4:14 AM
      I use the following copy_from param in my promise
      4:14 AM
      copy_from => secure_cp("$(my.distdir)/config/sshd_config$(suffixes)", "$(sys.policy_hub)"),
      4:15 AM
      and append following to the vars section in my bundle
      4:15 AM
      "suffixes" slist =>

      Unknown macro: { "__$(sys.fqhost)", "" }

      ;
      4:16 AM
      If i am right, cfe should copy the first file matching _$(sys.fqhost) and if it exist should stop copying i.e. sshd_config because sshd_config_my.system.intern exists.
      4:17 AM
      But for any reason cfe doesnt behave like it should.
      4:17 AM
      What i am doing wrong?

        Attachments

          Activity

            People

            • Assignee:
              a10042 Nick Anderson
              Reporter:
              a10042 Nick Anderson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel