ktooi / ansible-role-slapd Goto Github PK
View Code? Open in Web Editor NEWInstall and configure slapd for RHEL/CentOS and Debian/Ubuntu.
Home Page: https://galaxy.ansible.com/ktooi/slapd
License: MIT License
Install and configure slapd for RHEL/CentOS and Debian/Ubuntu.
Home Page: https://galaxy.ansible.com/ktooi/slapd
License: MIT License
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
そのうちやる。
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 を構成できない。
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 系の場合、タスクでモジュールをインポートすることができない。
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."}
暫定的にテスト時にはモジュールのインポートを行わないように設定する。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.