proxmox/manifests/hypervisor/config.pp
Gardouille add74a6e37 New class: proxmox::hypervisor::config
Remove the subscription message at the login on the webgui.
Add a fact to check if Proxmox is available on the system.
2015-01-08 23:50:53 +01:00

24 lines
703 B
Puppet

# == Class: proxmox::hypervisor::config
#
# Some tiny configurations for Proxmox
#
class proxmox::hypervisor::config {
Exec {
path => [ '/bin', '/sbin', '/usr/bin', '/usr/sbin' ],
logoutput => 'on_failure',
}
if $::is_proxmox == 'true' {
# Remove the Subscription message
exec { 'remove_subscription_message':
command => 'rm -f /usr/share/pve-manager/ext4/pvemanagerlib.js.bak; sed -i".bak" -r -e "s/if \(data.status !== \'Active\'\) \{/if (false) {/" /usr/share/pve-manager/ext4/pvemanagerlib.js',
onlyif => 'grep "if (data.status !== \'Active\') {" /usr/share/pve-manager/ext4/pvemanagerlib.js',
}
}
} # Private class: proxmox::hypervisor::config