* (#9) Add a puppetlabs-firewall rule.

This commit is contained in:
gardouille 2015-01-21 17:05:42 +01:00
parent 9ffe8b150a
commit 561b1fd91d
4 changed files with 17 additions and 1 deletions

View File

@ -3,8 +3,9 @@
##### Changes
* README.md: Add examples, a table of contents.
* Correct indentation, double quote, ...
* (#2) Add an array and a file to load additionnal module.
* (#2) Add an array and a file to load additionnal modules.
* Correct module's dependencies.
* (#9) Add a puppetlabs-firewall rule.
---------------------------------------

View File

@ -56,6 +56,7 @@ class proxmox::hypervisor (
$pve_modules_list = $proxmox::params::pve_modules_list,
$pve_modules_file_path = $proxmox::params::pve_modules_file_path,
$pve_modules_file_content = $proxmox::params::pve_modules_file_content,
$labs_firewall_rule = $proxmox::params::labs_firewall_rule,
) inherits proxmox::params {
include '::proxmox::hypervisor::preconfig'

View File

@ -34,4 +34,15 @@ class proxmox::hypervisor::config {
}
if $proxmox::hypervisor::labs_firewall_rule == true {
firewall { '100 accept proxmox':
proto => 'tcp',
action => 'accept',
port => ['8006', '5900']
}
}
} # Private class: proxmox::hypervisor::config

View File

@ -38,6 +38,9 @@ class proxmox::params {
$pve_modules_file_path = '/etc/modules-load.d/proxmox.conf'
$pve_modules_file_content = 'proxmox/hypervisor/proxmox_modules.conf.erb'
# Firewall
$labs_firewall_rule = false
}
}
default: {