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

Error during configure attributes for advanced resource #14

Open
lukikawalec opened this issue Aug 14, 2019 · 2 comments
Open

Error during configure attributes for advanced resource #14

lukikawalec opened this issue Aug 14, 2019 · 2 comments

Comments

@lukikawalec
Copy link

I try to configure advanced resource with meta and I get error "'dict object' has no attribute 'name'".
Probably the cause is nvpair.name in loop_control.labal. Should be nvpair.key.
https://github.com/devgateway/ansible-role-pacemaker/blob/master/tasks/advanced-resource.yml#L22

@cu12
Copy link

cu12 commented Aug 14, 2019

@lukikawalec this works for me:

  - name: Configure NFS resource
    include_role:
      name: pacemaker
      tasks_from: advanced-resource
    vars:
      pcmk_resource:
        type: clone
        id: clo_nfs
        resources:
          p_nfs_server:
            class: lsb
            type: nfs-kernel-server
            meta:
              globally-unique: "false"
              target-role: "Started"
            op:
            - name: monitor
              interval: 10s
              timeout: 30s

@joekhoobyar
Copy link

See PR #15 - it has a fix.

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

3 participants