Skip to content

creating roles through yaml is not working #125

Description

@ltutar

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 ~]# 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions