Add a variable to choose to keep the PVE enterprise repository.

This commit is contained in:
gardouille 2015-01-09 09:50:01 +01:00
parent 6801503b58
commit 5c400bbed3
5 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,6 @@
##### Changes
* Add a variable to choose to keep PVE enterprise repo for the subscribers.
---------------------------------------

View File

@ -62,7 +62,7 @@ class { 'proxmox::hypervisor':
* `rec_pkg_name`: The list of recommended and usefull packages for Proxmox. Can be an array [ 'ntp', 'ssh', 'lvm2', 'bridge-utils' ].
* `old_pkg_ensure`: What to set useless packages (non recommended, previous kernel, ...). Can be 'present' or 'absent'. Defaults to 'absent'.
* `old_pkg_name`: The list of useless packages. Can be an array [ 'acpid', 'linux-image-amd64', 'linux-base', 'linux-image-3.2.0-4-amd64' ].
* `pve_enterprise_repo_ensure`: Choose to keep the PVE enterprise repository. Can be 'present' or 'absent'. Defaults to 'absent'.
Limitations
-----------

View File

@ -44,6 +44,7 @@ class proxmox::hypervisor (
$rec_pkg_name = $proxmox::params::rec_pkg_name,
$old_pkg_ensure = $proxmox::params::old_pkg_ensure,
$old_pkg_name = $proxmox::params::old_pkg_name,
$pve_enterprise_repo_ensure = $proxmox::params::pve_enterprise_repo_ensure,
) inherits proxmox::params {
include '::proxmox::hypervisor::preconfig'

View File

@ -32,7 +32,8 @@ class proxmox::hypervisor::preconfig {
->
# Remove Enterprise repository (need a subscription)
file { '/etc/apt/sources.list.d/pve-enterprise.list':
ensure => absent,
ensure => "${proxmox::hypervisor::pve_enterprise_repo_ensure}",
notify => Exec[apt_update],
}
->
# Add the standard repository (~community)

View File

@ -20,6 +20,8 @@ class proxmox::params {
$old_pkg_ensure = 'absent'
$old_pkg_name = [ 'acpid', 'linux-image-amd64', 'linux-base', 'linux-image-3.2.0-4-amd64' ]
#
$pve_enterprise_repo_ensure = 'absent'
}
}
default: {