Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
su_ldap
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
suitpuppet
su_ldap
Commits
90c85f18
Commit
90c85f18
authored
6 years ago
by
Adam Lewenberg
Browse files
Options
Downloads
Patches
Plain Diff
found some other ldap to su_ldap I missed before
parent
fef0f15c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+8
-8
8 additions, 8 deletions
README.md
manifests/init.pp
+1
-2
1 addition, 2 deletions
manifests/init.pp
manifests/openldap_install.pp
+2
-2
2 additions, 2 deletions
manifests/openldap_install.pp
with
11 additions
and
12 deletions
README.md
+
8
−
8
View file @
90c85f18
...
...
@@ -12,14 +12,14 @@ traditional servers and containers.
### OpenLDAP Installation and Configuration ###
The main class
`ldap`
supports the installation of OpenLDAP and some of
it
s configuration. The simplest installation (which accepts all the
defaults):
OpenLDAP'
s configuration. The simplest installation (which accepts all the
defaults)
is
:
class { 'ldap':
}
This assumes installation on a traditional Debian server and will install
whichever version of OpenLDAP is current for
the
that version of Debian.
whichever version of OpenLDAP is current for that version of Debian.
#### Hosting Model
...
...
@@ -41,8 +41,8 @@ the version of Debian underlying the host.
However, you can override this by using the
`install_archive`
and
`install_distro`
. If the distribution you want to use is already in
included in
`/etc/apt/sources.list.d`
then use
`install_dsitribution`
to
specify the distribution:
included in
the APT sources via
`/etc/apt/sources.list.d`
then use
`install_distribution`
to
specify the distribution:
# Use the "testing" distribution
class { 'ldap':
...
...
@@ -50,9 +50,9 @@ specify the distribution:
}
If the distribution is _not_ already included in
`/etc/apt/sources.list.d`
then you
need also to
use
`install_repository`
. This will
add a
`.list`
file into
`/etc/apt/sources.list.d`
that tells
`apt`
where to look for
the
distribution.
then you
can
use
`install_repository`
to
add a
`.list`
file to
`/etc/apt/sources.list.d`
that tells
`apt`
where to look for
the
distribution.
For example,
# Use the "stretch-prod" distribution.
class { 'ldap':
...
...
This diff is collapsed.
Click to expand it.
manifests/init.pp
+
1
−
2
View file @
90c85f18
...
...
@@ -25,8 +25,7 @@ class su_ldap (
fail
(
"Unknown hosting model
${hosting_model}
"
)
}
## Install apt files/packages(?) so we load the correct version of OpenLDAP.
class
{
'su_ldap::openldap_install'
:
}
include
su_ldap::openldap_install
## Basic configuration: /etc/ldap/ldap.conf, /etc/default/slapd, et al.
class
{
'su_ldap::config'
:
...
...
This diff is collapsed.
Click to expand it.
manifests/openldap_install.pp
+
2
−
2
View file @
90c85f18
...
...
@@ -13,13 +13,13 @@ class su_ldap::openldap_install (
# /etc/apt/sources.list.d.
if
(
$repository
)
{
file
{
'/etc/apt/sources.list.d/ldap'
:
content
=>
template
(
'ldap/etc/apt/sources.list.d/ldap.erb'
)
content
=>
template
(
'
su_
ldap/etc/apt/sources.list.d/ldap.erb'
)
}
}
# Pin some OpenLDAP packages.
file
{
'/etc/apt/preferences.d/ldap'
:
content
=>
template
(
'ldap/etc/apt/preferences.d/ldap.erb'
)
content
=>
template
(
'
su_
ldap/etc/apt/preferences.d/ldap.erb'
)
,
notify
=>
Exec
[
'ldap aptitude update'
];
}
...
...
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