aboutsummaryrefslogtreecommitdiff
path: root/manifests/rules/out/puppet.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2012-06-13 21:34:55 -0300
committermh <mh@immerda.ch>2012-06-13 21:34:55 -0300
commit210b66ab54f1c57a10a2e9a342559f77e649658f (patch)
tree01a9ff90a2905736b9c7a52004c97f3e383bd4ba /manifests/rules/out/puppet.pp
parentd1c97a77e3ab7add830ba1f0f377e57b612c44d8 (diff)
downloadpuppet-shorewall-210b66ab54f1c57a10a2e9a342559f77e649658f.tar.gz
puppet-shorewall-210b66ab54f1c57a10a2e9a342559f77e649658f.tar.bz2
migrate away from hiera stuff
Diffstat (limited to 'manifests/rules/out/puppet.pp')
-rw-r--r--manifests/rules/out/puppet.pp30
1 files changed, 19 insertions, 11 deletions
diff --git a/manifests/rules/out/puppet.pp b/manifests/rules/out/puppet.pp
index 5cd4643..cbe8cce 100644
--- a/manifests/rules/out/puppet.pp
+++ b/manifests/rules/out/puppet.pp
@@ -1,12 +1,20 @@
-class shorewall::rules::out::puppet {
- include ::shorewall::rules::puppet
- # we want to connect to the puppet server
- shorewall::rule { 'me-net-puppet_tcp':
- source => '$FW',
- destination => 'net:$PUPPETSERVER',
- proto => 'tcp',
- destinationport => '$PUPPETSERVER_PORT,$PUPPETSERVER_SIGN_PORT',
- order => 340,
- action => 'ACCEPT';
- }
+class shorewall::rules::out::puppet(
+ $puppetserver = "puppet.${::domain}",
+ $puppetserver_port = 8140,
+ $puppetserver_signport = 8141
+) {
+ class{'shorewall::rules::puppet':
+ puppetserver => $puppetserver,
+ puppetserver_port => $puppetserver_port,
+ puppetserver_signport => $puppetserver_signport,
+ }
+ # we want to connect to the puppet server
+ shorewall::rule { 'me-net-puppet_tcp':
+ source => '$FW',
+ destination => 'net:$PUPPETSERVER',
+ proto => 'tcp',
+ destinationport => '$PUPPETSERVER_PORT,$PUPPETSERVER_SIGN_PORT',
+ order => 340,
+ action => 'ACCEPT';
+ }
}