Closed nosrio closed 1 year ago
When creating an acl to filter using nodes attributes the acl file is rendered incorrectly
Using this ACL
rundeck::config::aclpolicyfile { 'read-qa-nodes': acl_policies => [ { 'description' => 'Read qa nodes', 'context' => { 'project' => '.*' }, 'for' => { 'node' => [ { 'match' => { 'environment' => 'qa' }, 'allow' => ['read'] } ] }, 'by' => [ { 'group' => ['qa'] } ] } ] }
The ACL rendered is this:
description: 'Read qa nodes' context: project: '.*' for: node: - match: environment: 'qa' ### <-- THIS IS INCORRECT allow: ["read"] by: group: - 'qa'
The ACL should be this (with the extra indent)
description: 'Read qa nodes' context: project: '.*' for: node: - match: environment: 'qa' allow: ["read"] by: group: - 'qa'
When creating an acl to filter using nodes attributes the acl file is rendered incorrectly
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
Using this ACL
What are you seeing
The ACL rendered is this:
What behaviour did you expect instead
The ACL should be this (with the extra indent)
Output log
Any additional information you'd like to impart