Skip to content

Instantly share code, notes, and snippets.

@ploubser
Created April 6, 2017 14:09
Show Gist options
  • Save ploubser/d9cea838211088ddf199dfe88ef1944f to your computer and use it in GitHub Desktop.
Save ploubser/d9cea838211088ddf199dfe88ef1944f to your computer and use it in GitHub Desktop.
Test policy
---
:name: Test Policy 3000
:confine:
:operatingsystem: Darwin
:rules:
- :description: The JGrep package must be installed
:severity: 9.0
:resources:
:package/jgrep:
:ensure: present
- :description: Port 8888 should be open and have ssl enabled
:severity: 10.0
:resources:
:port/1234-1236:
:open: true
:ssl: true
- :description: File /tmp/foo must exist with ACL 0644
:severity: 1.0
:resources:
:file//tmp/foo:
:ensure: present
:group: "134"
:mode: "0644"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment