Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HPCasCode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hpc-team
HPCasCode
Commits
4c695a8e
Commit
4c695a8e
authored
7 years ago
by
Chris Hines
Browse files
Options
Downloads
Patches
Plain Diff
fix an error detecting the ppolicy and enable the auxposixgroup schema
Former-commit-id:
7519d863
parent
27bdac56
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/ldapserver/files/auxposixgroup.ldif
+4
-0
4 additions, 0 deletions
roles/ldapserver/files/auxposixgroup.ldif
roles/ldapserver/tasks/main.yml
+19
-5
19 additions, 5 deletions
roles/ldapserver/tasks/main.yml
with
23 additions
and
5 deletions
roles/ldapserver/files/auxposixgroup.ldif
0 → 100644
+
4
−
0
View file @
4c695a8e
dn: cn=auxPosixGroup,cn=schema,cn=config
objectClass: olcSchemaConfig
cn: auxPosixGroup
olcObjectClasses: ( 1.3.6.1.4.1.1.1.1.2.1 NAME 'auxPosixGroup' DESC 'Abstraction of a group of accounts' SUP top AUXILIARY MUST gidNumber MAY ( userPassword $ memberUid $ description ) )
This diff is collapsed.
Click to expand it.
roles/ldapserver/tasks/main.yml
+
19
−
5
View file @
4c695a8e
---
---
-
name
:
include vars
include_vars
:
file
:
"
{{
ansible_distribution
}}_{{
ansible_distribution_version
}}_{{
ansible_architecture
}}.yml"
-
include_vars
:
"
{{
ansible_distribution
}}_{{
ansible_distribution_version
}}_{{
ansible_architecture
}}.yml"
-
name
:
include vars2
-
include_vars
:
"
{{
ansible_distribution
}}.yml"
include_vars
:
file
:
"
{{
ansible_distribution
}}.yml"
-
name
:
install system packages apt
-
name
:
install system packages apt
apt
:
name={{ item }} state=installed update_cache=true
apt
:
name={{ item }} state=installed update_cache=true
sudo
:
true
sudo
:
true
with_items
:
system_packages
with_items
:
"
{{
system_packages
}}"
when
:
ansible_os_family == 'Debian'
when
:
ansible_os_family == 'Debian'
-
name
:
install system packages yum
-
name
:
install system packages yum
yum
:
name={{ item }} state=installed
yum
:
name={{ item }} state=installed
sudo
:
true
sudo
:
true
with_items
:
system_packages
with_items
:
"
{{
system_packages
}}"
when
:
ansible_os_family == 'RedHat'
when
:
ansible_os_family == 'RedHat'
-
name
:
Fixed default configuration
-
name
:
Fixed default configuration
...
@@ -139,6 +143,16 @@
...
@@ -139,6 +143,16 @@
-
inetorgperson
-
inetorgperson
ignore_errors
:
true
ignore_errors
:
true
sudo
:
true
sudo
:
true
-
name
:
copy the auxposixgroup schema
copy
:
src="files/auxposixgroup.ldif" dest="{{ ldapDir }}/schema/auxposixgroup.ldif"
become
:
True
become_user
:
root
-
name
:
load the auxposixgroup schema
shell
:
ldapadd -Y EXTERNAL -H ldapi:/// -f "{{ ldapDir }}/schema/auxposixgroup.ldif" -D cn=config
become_user
:
root
become
:
True
-
name
:
check ppolicy module loaded
-
name
:
check ppolicy module loaded
shell
:
slapcat -b cn=config | grep "olcModuleLoad. {.*}ppolicy"
shell
:
slapcat -b cn=config | grep "olcModuleLoad. {.*}ppolicy"
...
@@ -152,7 +166,7 @@
...
@@ -152,7 +166,7 @@
when
:
ppolicyModuleLoaded|failed
when
:
ppolicyModuleLoaded|failed
-
name
:
check ppolicy overlay config
-
name
:
check ppolicy overlay config
shell
:
"
slapcat
-b
cn=config
|
grep
'dn:
olcOverlay=ppolicy,olcDatabase={.*}.db,cn=config'"
shell
:
"
slapcat
-b
cn=config
|
grep
'dn:
olcOverlay=
{.*}
ppolicy,olcDatabase={.*}.db,cn=config'"
ignore_errors
:
true
ignore_errors
:
true
sudo
:
true
sudo
:
true
register
:
ppolicyOverlayConfigured
register
:
ppolicyOverlayConfigured
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment