Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
puppet-freeradius
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Projets publics
puppet-freeradius
Commits
b350cc95
Commit
b350cc95
authored
Jan 15, 2016
by
Jonathan Gazeley
Browse files
Options
Downloads
Patches
Plain Diff
Add proper headers & footers for templates.conf
parent
1b9ccd50
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
files/template.header
+33
-0
33 additions, 0 deletions
files/template.header
manifests/init.pp
+8
-2
8 additions, 2 deletions
manifests/init.pp
with
41 additions
and
2 deletions
files/template.header
0 → 100644
+
33
−
0
View file @
b350cc95
# -*- text -*-
##
## templates.conf -- configurations to be used in multiple places
##
## $Id: 7b8b44e051c974c1a0a6e27a0cff50e621835df2 $
######################################################################
#
# Version 2.0 has a useful new feature called "templates".
#
# Use templates by adding a line in radiusd.conf:
#
# $INCLUDE templates.conf
#
# The goal of the templates is to have common configuration located
# in this file, and to list only the *differences* in the individual
# sections. This feature is most useful for sections like "clients"
# or "home_servers", where many may be defined, and each one has
# similar repeated configuration.
#
# Something similar to templates can be done by putting common
# configuration into separate files, and using "$INCLUDE file...",
# but this is more flexible, and simpler to understand. It's also
# cheaper for the server, because "$INCLUDE" makes a copy of the
# configuration for inclusion, and templates are simply referenced.
#
# The templates are defined in the "templates" section, so that they
# do not affect the rest of the server configuration.
#
# A section can reference a template by using "$template name"
#
templates {
This diff is collapsed.
Click to expand it.
manifests/init.pp
+
8
−
2
View file @
b350cc95
...
...
@@ -100,9 +100,15 @@ class freeradius (
}
concat::fragment
{
'template_header'
:
target
=>
"
${freeradius::fr_basepath}
/templates.conf"
,
content
=>
"# Template config
\n\n
"
,
source
=>
'puppet:///modules/freeradius/template.header'
,
order
=>
'05'
,
}
concat::fragment
{
'template_footer'
:
target
=>
"
${freeradius::fr_basepath}
/templates.conf"
,
content
=>
"}
\n
"
,
order
=>
'95'
,
}
# Set up concat proxy file
concat
{
"
${freeradius::fr_basepath}
/proxy.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