Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

puppet adding double quotes to allow parameters #292

Closed
sonirahul8123 opened this issue Dec 14, 2016 · 0 comments
Closed

puppet adding double quotes to allow parameters #292

sonirahul8123 opened this issue Dec 14, 2016 · 0 comments

Comments

@sonirahul8123
Copy link

sonirahul8123 commented Dec 14, 2016

I've been facing one issue while using this module. When I managing ACL rules from puppet like this,

'job' => [ {'equals' => { 'name' => 'myJob' }, 'allow' => ['run','read']}, ],

this adds ACL rules in aclpolicy file as below,

description: 'Admin user access'
context:
  project: 'testproject'
for:
  job:
    - equals:
        name: 'myJob'
      allow: ["run", "read"]

see, there are extra double quotes in allow parameter, I suppose it should be

allow => [run,read] but not allow => ["run","read"].

Because of this extra double quotes, user which I am managing from puppet can't see job assigned to it. I tested out ACL file without double quotes it works fine, but not when it has double quotes to run and read.

Kindly help me on this.

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 3.7
  • Ruby: 2.1
  • Distribution: Debian Jessie 8.6
  • Module version: 3.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant