* (#9) Add a puppetlabs-firewall rule.
This commit is contained in:
parent
9ffe8b150a
commit
561b1fd91d
@ -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.
|
||||
|
||||
---------------------------------------
|
||||
|
||||
|
@ -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'
|
||||
|
@ -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
|
||||
|
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user