Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
puppetpublic
base
Commits
296620c9
Verified
Commit
296620c9
authored
8 years ago
by
Adam Lewenberg
Browse files
Options
Downloads
Patches
Plain Diff
Add source parameter to kerberos class to override /etc/krb5.conf
parent
92b598b8
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
NEWS
+3
-0
3 additions, 0 deletions
NEWS
manifests/kerberos.pp
+26
-2
26 additions, 2 deletions
manifests/kerberos.pp
with
29 additions
and
2 deletions
NEWS
+
3
−
0
View file @
296620c9
release/005.007 (unreleased)
[kerberos] Add options to completely override /etc/krb5.conf using one
the parameter $source. [adamhl]
[newsyslog] Pull out filter-syslog from newsyslog so filtersyslog can
be used separately from newsyslog. [adamhl]
...
...
This diff is collapsed.
Click to expand it.
manifests/kerberos.pp
+
26
−
2
View file @
296620c9
...
...
@@ -14,6 +14,9 @@
# content => undef,
# }
# }
#
# UPDATE: Rather than overriding this class, you may want to use the
# $source parameter defined below.
# **********************************************************************
#
#
...
...
@@ -35,10 +38,24 @@
# name's IP address PTR record may not match the hostname (e.g., for
# services running in Amazon Web Services).
# Default: true
#
# $source:
# If you want to use your own /etc/krb5.conf file completely overriding
# the one provided in this class, use this parameter.
# Example:
# class { 'base::kerberos':
# source => 'puppet:///modules/s_accounts/etc/krb5.conf',
# }
#
# Note that we don't have an an analagous "content" parameter as calling
# a template from a different module is not a good idea.
# Default: undef
class
base::kerberos
(
$prefer_tcp
=
false
,
$krb_env
=
'prod'
,
$rdns_enabled
=
true
,
$source
=
undef
,
){
# We only allow the 'prod', 'uat', and 'test' environments.
...
...
@@ -71,9 +88,16 @@ class base::kerberos(
}
# Basic Kerberos configuration.
file
{
'/etc/krb5.conf'
:
content
=>
template
(
'base/kerberos/krb5.conf.erb'
)
if
(
$source
)
{
file
{
'/etc/krb5.conf'
:
source
=>
$source
,
}
}
else
{
file
{
'/etc/krb5.conf'
:
content
=>
template
(
'base/kerberos/krb5.conf.erb'
),
}
}
}
# base::kerberos::dr is no longer needed, because it's functionality has been
...
...
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