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

Problem adding all cfbs module content from subdirectory

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Rejected
    • Priority: High
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cfbs
    • Labels:
      None

      Description

      I have a repository, https://github.com/nickanderson/cfengine-sysctl I am trying to publish 3 cfbs modules from it, ( inventory-kernel-settings-sysctl-current, inventory-kernel-settings-sysctl-conf, and kernel-settings-sysctl-conf).

      I made my own index for testing (here is the the version when I encountered this issue)

      {
        "modules": {
              "inventory-etc-hosts": {
            "description": "Inventory entries from /etc/hosts",
            "tags": ["inventory", "untested"],
            "repo": "https://github.com/nickanderson/cfengine-inventory-etc-hosts",
            "by": "https://github.com/nickanderson",
            "version": "1.0.0",
            "commit": "afbb08ab87630e724940c530050a271b63565402",
            "steps": [ "copy policy/main.cf services/inventory-etc-hosts/main.cf",
                     "json cfbs/def.json def.json"]
          },
          "autorun": {
            "description": "Enable autorun functionality",
            "tags": ["wip", "untested"],
            "repo": "https://github.com/cfengine/modules",
            "by": "https://github.com/cfengine",
            "version": "1.0.0",
            "commit": "d077f49162b05226e45f87511b6102e42a93bb72",
            "subdirectory": "management/autorun",
            "steps": ["json def.json def.json"]
          },
          "masterfiles": {
            "description": "Official CFEngine Masterfiles Policy Framework (MPF)",
            "tags": ["official", "base"],
            "repo": "https://github.com/cfengine/masterfiles",
            "by": "https://github.com/cfengine",
            "commit": "3ce8f9ed53fdcb3b41013d6fadc284b6d46aea53",
            "steps": [
                "run ./autogen.sh",
                "delete ./autogen.sh",
                "run ./cfbs/cleanup.sh",
                "delete ./cfbs/cleanup.sh",
                "copy ./ ./"
              ]
          },
          "mpf": {
            "alias": "masterfiles"
          },
           "inventory-kernel-settings-sysctl-current": {
              "description":"Inventory sysctl settings current state.",
              "tags":[ "inventory", "sysctl" ],
              "by":"https://github.com/nickanderson",
              "version":"1.0.0",
                    "repo": "https://github.com/nickanderson/cfengine-sysctl",
              "commit":"aec9785c6926e73b8e595049fcc676809464d6b0",
              "subdirectory": "policy/inventory-kernel-settings-sysctl-current",
              "steps": [
                  "copy ./ services/inventory-kernel-settings-sysctl-current/",
                  "json ./cfbs/def.json def.json"
              ]
          },
          "inventory-kernel-settings-sysctl-conf": {
              "description":"Inventory settings from /etc/sysctl.conf.",
              "tags":[ "inventory", "sysctl" ],
              "by":"https://github.com/nickanderson",
              "repo": "https://github.com/nickanderson/cfengine-sysctl",
              "version":"1.0.0",
              "commit":"aec9785c6926e73b8e595049fcc676809464d6b0",
              "subdirectory": "policy/inventory-kernel-settings-sysctl-conf",
              "steps": [
                  "copy ./ services/inventory-kernel-settings-sysctl-conf/",
                  "json ./cfbs/def.json def.json"
              ]
          },
          "kernel-settings-sysctl-conf": {
              "description":"Manage settings in /etc/sysctl.conf.",
              "tags":[ "sysctl" ],
              "by":"https://github.com/nickanderson",
              "version":"1.0.0",
                   "repo": "https://github.com/nickanderson/cfengine-sysctl",
              "commit":"aec9785c6926e73b8e595049fcc676809464d6b0",
              "subdirectory": "policy/kernel-settings-sysctl-conf",
              "steps": [
                  "copy ./ services/kernel-settings-sysctl-conf/",
                  "json ./cfbs/def.json def.json"
              ]
          }
        }
      }
      

      I initialized my cfbs repo and set the index (note, the index is pointing to the current version of my gist, not the specific version noted above).

      [root@hub cfbs]# cat cfbs.json 
      {
        "index": "https://gist.github.com/nickanderson/22b896185accc65a387269ce0c93158a/raw/index.json",
        "name": "Example",
        "description": "Example description",
        "build": [
          {
            "name": "masterfiles",
            "description": "Official CFEngine Masterfiles Policy Framework (MPF)",
            "tags": ["official", "base"],
            "repo": "https://github.com/cfengine/masterfiles",
            "by": "https://github.com/cfengine",
            "commit": "3ce8f9ed53fdcb3b41013d6fadc284b6d46aea53",
            "steps": [
              "run ./autogen.sh",
              "delete ./autogen.sh",
              "run ./cfbs/cleanup.sh",
              "delete ./cfbs/cleanup.sh",
              "copy ./ ./"
            ],
            "added_by": "cfbs add"
          },
          {
            "name": "inventory-kernel-settings-sysctl-current",
            "description": "Inventory sysctl settings current state.",
            "tags": ["inventory", "sysctl"],
            "by": "https://github.com/nickanderson",
            "version": "1.0.0",
            "repo": "https://github.com/nickanderson/cfengine-sysctl",
            "commit": "",
            "subdirectory": "policy/inventory-kernel-settings-sysctl-current",
            "steps": [
              "copy ./ services/inventory-kernel-settings-sysctl-current/",
              "json ./cfbs/def.json def.json"
            ],
            "added_by": "cfbs add"
          }
        ]
      }
      [root@hub cfbs]# cfbs build
      
      Modules:
      001 masterfiles                              @ 3ce8f9ed53fdcb3b41013d6fadc284b6d46aea53 (Downloaded)
      Error: Command failed - ( rsync -r /root/.cfengine/cfbs/downloads/github.com/nickanderson/cfengine-sysctl/policy/inventory-kernel-settings-sysctl-current/ out/steps/002_inventory-kernel-settings-sysctl-current_/ ) 1>/dev/null 2>/dev/null
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              craig.comstock Craig Comstock
              Reporter:
              a10042 Nick Anderson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: