2015-01-07 11:51:34 +01:00
# = = Class : proxmox: : params
#
class proxmox: : params {
case $ : : osfamily {
'Debian' : {
if $ : : operatingsystem = = 'Debian' and versioncmp( $ : : operatingsystemrelease, '7.0' ) > = 0 {
2015-01-08 23:02:50 +01:00
# Virtual Environment packages
$ ve_pkg_ensure = 'present'
$ ve_pkg_name = [ 'proxmox-ve-2.6.32' , 'ksm-control-daemon' , 'vzprocps' , 'open-iscsi' , 'bootlogd' , 'pve-firmware' ]
2015-01-07 11:51:34 +01:00
2015-01-08 23:02:50 +01:00
# PVE Kernel
$ kvm_only = false
2015-03-25 11:55:22 +01:00
$ kernel_kvm_pkg_name = [ 'pve-kernel-3.10.0-8-pve' ]
2015-02-19 11:45:21 +01:00
$ kernel_pkg_name = [ 'pve-kernel-2.6.32-37' ]
2015-01-08 23:02:50 +01:00
# Recommended packages
$ rec_pkg_name = [ 'ntp' , 'ssh' , 'lvm2' , 'bridge-utils' ]
# Old useless packages
$ old_pkg_ensure = 'absent'
$ old_pkg_name = [ 'acpid' , 'linux-image-amd64' , 'linux-base' , 'linux-image-3.2.0-4-amd64' ]
2015-01-17 19:07:22 +01:00
# Manage PVE Enterprise repository ( need a subscription)
2015-01-09 09:50:01 +01:00
$ pve_enterprise_repo_ensure = 'absent'
2015-01-09 18:14:43 +01:00
# Pveproxy access restriction
$ pveproxy_default_path = '/etc/default/pveproxy'
$ pveproxy_default_content = 'proxmox/hypervisor/pveproxy_default.erb'
$ pveproxy_allow = '127.0.0.1'
$ pveproxy_deny = 'all'
2015-01-09 19:13:05 +01:00
$ pveproxy_policy = 'allow'
$ pveproxy_service_name = 'pveproxy'
2015-01-17 19:07:22 +01:00
$ pveproxy_service_manage = true
2015-01-09 19:13:05 +01:00
$ pveproxy_service_enabled = true
2015-01-17 19:07:22 +01:00
# Manage additionnals modules
2015-01-27 14:25:06 +01:00
$ pve_modules_list = [ 'iptable_filter' , 'iptable_mangle' , 'iptable_nat' , 'ipt_length' , 'ipt_limit' , 'ipt_LOG' , 'ipt_MASQUERADE' , 'ipt_multiport' , 'ipt_owner' , 'ipt_recent' , 'ipt_REDIRECT' , 'ipt_REJECT' , 'ipt_state' , 'ipt_TCPMSS' , 'ipt_tcpmss' , 'ipt_TOS' , 'ipt_tos' , 'ip_conntrack' , 'ip_nat_ftp' , 'xt_iprange' , 'xt_comment' , 'ip6table_filter' , 'ip6table_mangle' , 'ip6t_REJECT' ]
2015-01-17 19:07:22 +01:00
$ pve_modules_file_path = '/etc/modules-load.d/proxmox.conf'
$ pve_modules_file_content = 'proxmox/hypervisor/proxmox_modules.conf.erb'
2015-02-03 15:47:05 +01:00
# OpenVZ configuration
$ vz_config_file_path = '/etc/vz/vz.conf'
$ vz_config_file_tpl = 'proxmox/hypervisor/vz.conf.erb'
2015-02-03 16:28:07 +01:00
$ vz_iptables_modules = true
2015-02-03 16:16:36 +01:00
$ vz_service_name = 'vz'
$ vz_service_manage = true
$ vz_service_enabled = true
2015-02-03 15:47:05 +01:00
2015-01-21 17:05:42 +01:00
# Firewall
$ labs_firewall_rule = false
2015-02-03 15:47:05 +01:00
}
2015-01-23 18:12:10 +01:00
2015-02-03 15:47:05 +01:00
# # VM - OpenVZ
# Network
$ vm_interfaces_path = '/etc/network/interfaces'
$ vm_interfaces_content = 'proxmox/vm/openzv_interfaces.erb'
$ vm_interfaces_tail_path = '/etc/network/interfaces.tail'
$ vm_interfaces_tail_content = 'proxmox/vm/openzv_interfaces.tail.erb'
$ network_service_name = 'networking'
$ network_service_manage = true
$ network_service_enabled = true
2015-01-23 18:12:10 +01:00
2015-01-07 11:51:34 +01:00
}
default : {
2015-02-03 15:47:05 +01:00
fail( "Proxmox Virtual Environment only works with Debian system; And the OpenVZ configuration has been tested only with Debian family; So osfamily (${::osfamily}) or lsbdistid (${::lsbdistid}) is unsupported" )
2015-01-23 18:12:10 +01:00
2015-01-07 11:51:34 +01:00
}
2015-01-23 18:12:10 +01:00
2015-01-07 11:51:34 +01:00
}
} # Private class : proxmox: : params