Giter Club home page Giter Club logo

ansible-role-slapd's People

Contributors

ktooi avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

uprunning

ansible-role-slapd's Issues

ubuntu2204 の idempotence で失敗する

ubuntu2204 の indempotence テストで下記のタスクに失敗する。

  TASK [ktooi.slapd : Start up the provider and a consumer/s on the backend (2/2)] ***
  fatal: [instance]: FAILED! => {"changed": false, "details": "{'desc': 'Type or value exists', 'info': 'modify/add: olcMultiProvider: value #0 already exists'}", "msg": "Attribute action failed."}

該当のタスクの内容は下記で、特に問題はないように見受けられる。

- name: Start up the provider and a consumer/s on the backend (2/2)
  become: true
  ldap_attrs:
    dn: '{{ slapd_olcDatabase_type_dn }}'
    attributes:
      olcMirrorMode: 'TRUE'
    state: exact
  tags:
    - slapd_replication

Configure the database to under access control タスクで失敗する

RHEL 7/8/9 系のディストリビューションの場合、 Configure the database to under access control タスクで下記エラーが発生して失敗する。

  TASK [ktooi.slapd : Configure the database to under access control] ************
  fatal: [instance]: FAILED! => {"changed": false, "details": "{'msgtype': 103, 'msgid': 6, 'result': 80, 'desc': 'Other (e.g., implementation specific) error', 'ctrls': [], 'info': '<olcAccess> handler exited with 1'}", "msg": "Attribute action failed."}

暫定対処として、 RHEL 系ではこのタスクをスキップさせることで Playbook を完走できるようにする。

config database の N-Way Multi-Provider を構成できない

下記でエラーになって config database の N-Way Multi-Provider を構成できない。

TASK [slapd : Ensure slapd of global config options included olcServerID] ***************************************************************************************************************************************************************************************************
changed: [ctrl01]
changed: [ctrl02]

TASK [slapd : Start up the provider and a consumer/s on the config database (1/2)] ******************************************************************************************************************************************************************************************
changed: [ctrl01]
changed: [ctrl02]

TASK [slapd : Start up the provider and a consumer/s on the config database (2/2)] ******************************************************************************************************************************************************************************************
fatal: [ctrl02]: FAILED! => {"changed": false, "details": "{'desc': 'Server is unwilling to perform', 'info': 'shadow context; no update referral'}", "msg": "Attribute action failed."}
fatal: [ctrl01]: FAILED! => {"changed": false, "details": "{'desc': 'Server is unwilling to perform', 'info': 'shadow context; no update referral'}", "msg": "Attribute action failed."}

RHEL の場合、モジュールのインポートで失敗する

RHEL 系の場合、タスクでモジュールをインポートすることができない。

  TASK [ktooi.slapd : Ensure a module memberof.la was loaded] ********************
  An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ldap.OTHER: {'msgtype': 105, 'msgid': 3, 'result': 80, 'desc': 'Other (e.g., implementation specific) error', 'ctrls': [], 'info': '<olcModuleLoad> handler exited with 1'}
  fatal: [instance]: FAILED! => {"changed": false, "details": "{'msgtype': 105, 'msgid': 3, 'result': 80, 'desc': 'Other (e.g., implementation specific) error', 'ctrls': [], 'info': '<olcModuleLoad> handler exited with 1'}", "msg": "Entry action failed."}

暫定的にテスト時にはモジュールのインポートを行わないように設定する。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.