2015-01-07 11:51:34 +01:00
|
|
|
# == Class: proxmox::hypervisor
|
|
|
|
#
|
|
|
|
# Manage the Proxmox hypervisor.
|
|
|
|
#
|
|
|
|
# === Parameters
|
|
|
|
#
|
|
|
|
# Document parameters here.
|
|
|
|
#
|
|
|
|
# [*sample_parameter*]
|
|
|
|
# Explanation of what this parameter affects and what it defaults to.
|
|
|
|
# e.g. "Specify one or more upstream ntp servers as an array."
|
|
|
|
#
|
|
|
|
# === Variables
|
|
|
|
#
|
|
|
|
# Here you should define a list of variables that this module would require.
|
|
|
|
#
|
|
|
|
# [*sample_variable*]
|
|
|
|
# Explanation of how this variable affects the funtion of this class and if it
|
|
|
|
# has a default. e.g. "The parameter enc_ntp_servers must be set by the
|
|
|
|
# External Node Classifier as a comma separated list of hostnames." (Note,
|
|
|
|
# global variables should not be used in preference to class parameters as of
|
|
|
|
# Puppet 2.6.)
|
|
|
|
#
|
|
|
|
# === Examples
|
|
|
|
#
|
|
|
|
# class { '::proxmox::hypervisor':
|
|
|
|
# kvm_only => true,
|
|
|
|
# }
|
|
|
|
#
|
|
|
|
# === Authors
|
|
|
|
#
|
|
|
|
# Gardouille <gardouille@gmail.com>
|
|
|
|
#
|
|
|
|
# === Copyright
|
|
|
|
#
|
|
|
|
# WTFPL <http://wtfpl.org/>
|
|
|
|
#
|
|
|
|
class proxmox::hypervisor (
|
2015-01-08 23:02:50 +01:00
|
|
|
$ve_pkg_ensure = $proxmox::params::ve_pkg_ensure,
|
|
|
|
$ve_pkg_name = $proxmox::params::ve_pkg_name,
|
|
|
|
$kvm_only = $proxmox::params::kvm_only,
|
|
|
|
$kernel_kvm_pkg_name = $proxmox::params::kernel_kvm_pkg_name,
|
|
|
|
$kernel_pkg_name = $proxmox::params::kernel_pkg_name,
|
|
|
|
$rec_pkg_name = $proxmox::params::rec_pkg_name,
|
|
|
|
$old_pkg_ensure = $proxmox::params::old_pkg_ensure,
|
|
|
|
$old_pkg_name = $proxmox::params::old_pkg_name,
|
2015-01-09 09:50:01 +01:00
|
|
|
$pve_enterprise_repo_ensure = $proxmox::params::pve_enterprise_repo_ensure,
|
2015-01-09 18:14:43 +01:00
|
|
|
$pveproxy_default_path = $proxmox::params::pveproxy_default_path,
|
|
|
|
$pveproxy_default_content = $proxmox::params::pveproxy_default_content,
|
|
|
|
$pveproxy_allow = $proxmox::params::pveproxy_allow,
|
|
|
|
$pveproxy_deny = $proxmox::params::pveproxy_deny,
|
|
|
|
$pveproxy_policy = $proxmox::params::pveproxy_policy,
|
2015-01-09 19:13:05 +01:00
|
|
|
$pveproxy_service_name = $proxmox::params::pveproxy_service_name,
|
|
|
|
$pveproxy_service_manage = $proxmox::params::pveproxy_service_manage,
|
|
|
|
$pveproxy_service_enabled = $proxmox::params::pveproxy_service_enabled,
|
2015-01-17 19:07:22 +01:00
|
|
|
$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,
|
2015-02-03 15:47:05 +01:00
|
|
|
$vz_config_file_path = $proxmox::params::vz_config_file_path,
|
|
|
|
$vz_config_file_tpl = $proxmox::params::vz_config_file_tpl,
|
2015-02-03 16:28:07 +01:00
|
|
|
$vz_iptables_modules = $proxmox::params::vz_iptables_modules,
|
2015-02-03 16:16:36 +01:00
|
|
|
$vz_service_name = $proxmox::params::vz_service_name,
|
|
|
|
$vz_service_manage = $proxmox::params::vz_service_manage,
|
|
|
|
$vz_service_enabled = $proxmox::params::vz_service_enabled,
|
2015-01-21 17:05:42 +01:00
|
|
|
$labs_firewall_rule = $proxmox::params::labs_firewall_rule,
|
2015-03-17 15:08:07 +01:00
|
|
|
$cluster_master_ip = undef,
|
|
|
|
$cluster_name = undef,
|
2015-01-07 11:51:34 +01:00
|
|
|
) inherits proxmox::params {
|
2015-01-08 23:02:50 +01:00
|
|
|
|
2015-01-07 11:51:34 +01:00
|
|
|
include '::proxmox::hypervisor::preconfig'
|
2015-01-08 23:02:50 +01:00
|
|
|
include '::proxmox::hypervisor::install'
|
2015-01-08 23:50:53 +01:00
|
|
|
include '::proxmox::hypervisor::config'
|
2015-01-09 19:13:05 +01:00
|
|
|
include '::proxmox::hypervisor::service'
|
2015-03-17 15:08:07 +01:00
|
|
|
include '::proxmox::hypervisor::cluster'
|
2015-01-07 11:51:34 +01:00
|
|
|
|
2015-01-08 23:02:50 +01:00
|
|
|
Class['proxmox::hypervisor::preconfig'] ->
|
2015-01-08 23:50:53 +01:00
|
|
|
Class['proxmox::hypervisor::install'] ->
|
2015-01-09 19:13:05 +01:00
|
|
|
Class['proxmox::hypervisor::config'] ->
|
2015-03-17 15:08:07 +01:00
|
|
|
Class['proxmox::hypervisor::service'] ->
|
|
|
|
Class['proxmox::hypervisor::cluster']
|
2015-01-07 11:51:34 +01:00
|
|
|
|
|
|
|
} # Public class: proxmox::hypervisor
|