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
b8db66d6
Commit
b8db66d6
authored
5 years ago
by
Linda J Laubenheimer
Browse files
Options
Downloads
Patches
Plain Diff
try to regularize sync pattern
parent
bdeeeac9
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
manifests/sync_scripts.pp
+50
-2
50 additions, 2 deletions
manifests/sync_scripts.pp
manifests/syncs/ldap_reports.pp
+26
-0
26 additions, 0 deletions
manifests/syncs/ldap_reports.pp
with
76 additions
and
2 deletions
manifests/sync_scripts.pp
+
50
−
2
View file @
b8db66d6
...
...
@@ -6,19 +6,67 @@
class
su_ldap::sync_scripts
(
$ldap_master_fqdn
=
undef
,
#
#
select the sync scripts one by one in the hiera file
$enable_ldap_wg_maint
=
false
,
$enable_ldap_sync_attribute
=
false
,
$enable_ldap_group_maint
=
false
,
$enable_ldap_sync_sugal_attributes
=
false
,
$enable_ldap_alias_maint
=
false
,
$enable_posix_account_sync
=
false
,
$enable_ldap_reports
=
false
,
)
{
if
(
$enable_ldap_wg_maint
)
{
class
{
'su_ldap::syncs::ldap_g
roup
_maint'
:
class
{
'su_ldap::syncs::ldap_
w
g_maint'
:
ensure
=>
present
,
}
}
if
(
$enable_ldap_group_maint
)
{
class
{
's_ldap::base::syncs::ldap_group_maint'
:
ensure
=>
present
}
}
if
(
$enable_ldap_sync_sugal_attributes
)
{
class
{
'su_ldap::syncs::ldap_sync_sugal_attributes'
:
ensure
=>
present
}
}
if
()
{
class
{
'su_ldap::syncs::ldap_sync_suprivilegegroup'
:
ensure
=>
present
}
}
if
()
{
class
{
'su_ldap::syncs::ldap_alias_maint'
:
ensure
=>
present
}
}
if
(
$enable_posix_account_sync
)
{
su_ldap::syncs::posix_account_sync
{
'aeroastroarl'
:
ensure
=>
present
}
su_ldap::syncs::posix_account_sync
{
'anesthesia'
:
ensure
=>
present
}
su_ldap::syncs::posix_account_sync
{
'statistics'
:
ensure
=>
present
}
}
if
(
$enable_ldap_reports
)
{
class
{
'su_ldap::syncs::ldap-reports'
:
ensure
=>
present
}
}
file
{
'/etc/cron.d/ldap-reports'
:
ensure
=>
present
,
mode
=>
'0644'
,
source
=>
"puppet:///modules/s_ldap/etc/cron.d/ldap-reports"
,
}
}
This diff is collapsed.
Click to expand it.
manifests/syncs/ldap_reports.pp
0 → 100644
+
26
−
0
View file @
b8db66d6
# The ldap-reports service.
#
# See also https://ikiwiki.stanford.edu/service/ldap/sync-scripts/
#
# NOTE: Normally installed only on prod and UAT.
class
su_ldap::syncs::ldap_reports
(
$ensure
=
undef
,
){
## Configuration file
file
{
'/etc/ldap-reports/som-mail-forwards-non-stanford.conf'
:
ensure
=>
present
,
content
=>
template
(
'su_ldap/etc/ldap-reports/som-mail-forwards-non-stanford.conf.erb'
),
}
## Cron job
file
{
'/etc/cron.d/ldap-reports'
:
ensure
=>
present
,
source
=>
'puppet:///modules/su_ldap/etc/cron.d/ldap-reports'
,
require
=>
File
[
'/etc/ldap-reports/som-mail-forwards-non-stanford.conf'
],
}
}
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