Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
puppet-shorewall
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chris
puppet-shorewall
Commits
fc200fa2
Commit
fc200fa2
authored
Sep 13, 2011
by
Silvio Rhatto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding shorewall::tunnel
parent
236336c6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
manifests/base.pp
manifests/base.pp
+1
-0
manifests/init.pp
manifests/init.pp
+2
-0
manifests/tunnel.pp
manifests/tunnel.pp
+11
-0
No files found.
manifests/base.pp
View file @
fc200fa2
...
...
@@ -46,6 +46,7 @@ class shorewall::base {
File
[
"/var/lib/puppet/modules/shorewall/tcdevices"
],
File
[
"/var/lib/puppet/modules/shorewall/tcrules"
],
File
[
"/var/lib/puppet/modules/shorewall/tcclasses"
],
File
[
"/var/lib/puppet/modules/shorewall/tunnel"
],
],
require
=>
Package
[
shorewall
],
}
...
...
manifests/init.pp
View file @
fc200fa2
...
...
@@ -71,5 +71,7 @@ class shorewall {
shorewall::managed_file
{
tcrules
:
}
# See http://www.shorewall.net/3.0/traffic_shaping.htm
shorewall::managed_file
{
tcclasses
:
}
# See http://www.shorewall.net/manpages/shorewall-tunnels.html
shorewall::managed_file
{
tunnel
:
}
}
manifests/tunnel.pp
0 → 100644
View file @
fc200fa2
define
shorewall::tunnel
(
$tunnel_type
,
$zone
,
$gateway
=
'0.0.0.0/0'
,
$gateway_zones
=
''
,
$order
=
'1'
)
{
shorewall::entry
{
"tunnel.d/
${order}
-
${title}
"
:
line
=>
"#
${name}
\n
${tunnel_type}
${zone}
${gateway}
${gateway_zones}
"
,
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment