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
cb9e5e28
Commit
cb9e5e28
authored
Feb 1, 2017
by
Stefan Schlesinger
Browse files
Options
Downloads
Patches
Plain Diff
Adding documentation and make $huntgroup optional
parent
144615af
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
README.md
+40
-0
40 additions, 0 deletions
README.md
manifests/huntgroup.pp
+1
-1
1 addition, 1 deletion
manifests/huntgroup.pp
with
41 additions
and
1 deletion
README.md
+
40
−
0
View file @
cb9e5e28
...
...
@@ -266,6 +266,18 @@ freeradius::client { "wlan-controllers":
}
```
```
puppet
# Huntgroup Example
freeradius::client
{
"asa01"
:
ip
=>
'192.168.0.1'
,
secret
=>
'testing123'
,
huntgroups
=>
[
{
name
=>
'firewall'
,
conditions
=>
[
'NAS-IP-Address == 192.168.0.1'
]
},
]
}
```
##### `ip`
The IP address of the client or range in CIDR format. For IPv6, use
`ipv6addr`
.
`ip`
and
`ip6`
are mutually exclusive but one must be supplied.
Default:
`undef`
.
...
...
@@ -322,6 +334,10 @@ Create a firewall exception for this virtual server. If this is set to `true`, y
##### `attributes`
Array of attributes to assign to this client. Default: empty.
##### `huntgroups`
Array of hashes, each hash defines one freeradius::huntgroup. Hash keys are all passed to a new instance of freeradius::huntgroup.
#### `freeradius::config`
Install arbitrary config snippets from a flat file. These are installed in
`/etc/raddb/conf.d`
...
...
@@ -430,6 +446,30 @@ fallback, such as the DEFAULT realm.
For reasons of stability, this home server SHOULD be a virtual server. Otherwise, the fallback may itself be dead!
#### `freeradius::huntgroup`
Define a huntgroup given a name and the conditions under which a huntgroup matches a client.
```
puppet
freeradius::huntgroup
{
'switchaccess'
:
huntgroup
=>
'switchaccess'
,
conditions
=>
[
'NAS-IP-Address == 192.168.0.1'
]
}
##### `huntgroup`
Name
of
the
huntgroup
to
assign
,
if
conditions
are
all
met
.
Default
to
the
resource
title
.
##### `conditons`
Array
of
conditions
which
are
used
to
match
the
client
,
each
element
should
contain
a
condition
in
the
form
of
'Key == Value'
.
##### `type`
##### `home_server`
#### `freeradius::instantiate`
Instantiate
a
module
that
is
not
automatically
instantiated
.
...
...
This diff is collapsed.
Click to expand it.
manifests/huntgroup.pp
+
1
−
1
View file @
cb9e5e28
# Install FreeRADIUS huntgroups
define
freeradius::huntgroup
(
$ensure
=
present
,
$huntgroup
,
$huntgroup
=
$title
,
$conditions
=
[],
$order
=
50
,
)
{
...
...
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