./rundeck-acl-generator.pl -i inputfile.csv
- A aclpolicy file is created and populated with rundeck policy and its name is the unique combination of username,context and project.
- Entire rundeck acl policy is printed on the screen for the inputfile
###Input file format csv file with ':' seperated fields
# <FIELD1>:<FIELD2>:<FIELD3>:<FIELD4>:<FIELD5>
(user|groups)-(input-1):context-(project|application):(project-(input-2)):resource-(input-3)(,regex,input-4):(input-5)
input-1 : username|groupname input-2 : projectname input-3 : resourcename ex:job,host input-4 : attributes <key=value ...> ex:name=NAME1 input-5 : permissions ex:read,run,execute,delete,etc.
user level
user-<username>:context-application::resource-project,name=<projectname>:read`
group level
groups-<groupname>:context-application::resource-project,name=<projectname>:read
user level
user-<username>:context-application::resource-project,name=<projectname>:'*'
group level
groups-<groupname>:context-application::resource-project,name=<projectname>:'*'
user level
user-<username>:context-project:project-<projectname>:resource-job,regex,name="(.*)":'*'
group level
groups-<groupname>:context-project:project-<projectname>:resource-job,regex,name="(.*)":'*'
user level
user-<username>:context-project:project-<projectname>:generic-job:'*'
group level
groups-<groupname>:context-project:project-<projectname>:generic-job:'*'
user level
user-<username>:context-project:project-<projectname>:resource-job,regex,name="(.*)":read,run
group level
groups-<groupname>:context-project:project-<projectname>:resource-job,regex,name="(.*)":read,run