Skip to content

Instantly share code, notes, and snippets.

@ahonor
Last active August 29, 2015 14:03
Show Gist options
  • Save ahonor/dd699e8b8d9147524bdb to your computer and use it in GitHub Desktop.
Save ahonor/dd699e8b8d9147524bdb to your computer and use it in GitHub Desktop.
example aclpolicy
description: 'Given user in group "releng" and for job matches "anvils/Promote", then allow action [read,run].'
context:
project: 'anvils'
for:
job:
- match:
group: 'anvils'
name: 'Promote'
allow: [run,read]
by:
group: releng
---
description: 'Given user in group "releng" and for nodes, then allow action [read,run].'
context:
project: 'anvils'
for:
node:
- allow: [read,run] # allow read/run for all nodes
by:
group: releng
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment