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

creating roles through yaml is not working #125

Open
ltutar opened this issue Jun 21, 2016 · 0 comments
Open

creating roles through yaml is not working #125

ltutar opened this issue Jun 21, 2016 · 0 comments

Comments

@ltutar
Copy link
Contributor

ltutar commented Jun 21, 2016

yaml:

xldeploy::server::use_exported_resources: true
xldeploy::server::roles:
  administrators:
    granted_permissions:
      global:
        - login

code:

  # handle exported resources
  if str2bool($use_exported_resources) {

    ensure_resource('xldeploy_check_connection', 'default', {'rest_url' => $rest_url, 'before' => Anchor['xldeploy::post_config::exported_cis']})

logging:

[root@xldagent ~]# puppet agent -t
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Duplicate declaration: Xldeploy_check_connection[default] is already declared; cannot redeclare at /etc/puppetlabs/code/environments/production/modules/xldeploy/manifests/server/post_config.pp:43:5 on node xldagent.home
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
[root@xldagent ~]# 
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