Skip to content

Instantly share code, notes, and snippets.

@ahonor
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ahonor/f114d5da2084daea9186 to your computer and use it in GitHub Desktop.
Save ahonor/f114d5da2084daea9186 to your computer and use it in GitHub Desktop.
ops.aclpolicy
description: 'Given user in group "ops" and for adhoc commands and jobs matching "web/.*", then allow action [read,run] on nodes tagged 'www'.
context:
project: 'guitars-production'
for:
resource:
- allow: read
job:
- match:
group: 'web'
name: '.*'
allow: [run,read]
adhoc:
- allow: [read,run,kill]
node:
- match:
nodename: '.*'
allow: [read]
- contains:
tags: www
allow: [read,run]
by:
group: ops
---
description: Allow read access for guitars-production project.
context:
application: 'rundeck'
for:
resource:
- allow: [read]
project:
- match:
name: 'guitars-production'
allow: [read]
by:
group: ops
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment