nickanderson / cfengine-file_integrity_monitoring

File Integrity Monitoring related CFEngine policy
MIT License
0 stars 0 forks source link

update for cfbs #2

Closed craigcomstock closed 3 years ago

craigcomstock commented 3 years ago

We now have the "directory" build step so I think you can:

    "library-file-integrity-monitoring": {
      "description": "Monitor key files for changes",
      "tags": ["wip", "untested"],
      "repo": "https://github.com/nickanderson/cfengine-file_integrity_monitoring",
      "by": "https://github.com/nickanderson",
      "version": "0.1.0",
      "commit": "0fee53540262541c09f17cd8774ffe5ccea48482",
      "steps": [
        "directory ./policy/file_integrity_monitoring/ services/file_integrity_monitoring/"
      ]
    }

As this will automatically include the .cf file in the list of autorun inputs and the autorun tag will take care of adding to the bundlesequence.

nickanderson commented 3 years ago

I intentionally did not choose to activate this with autorun because the later it is done the more opportunity there is to pick up variables with the tag being looked for.

nickanderson commented 3 years ago

I did however make some cfbs related changes to the repo, and you can now add this repo directly.