Puppet 4.0.0 compatibility fixes

This commit is contained in:
Tom De Vylder 2015-04-23 11:26:23 +02:00
parent b2817fc85f
commit 0ded568a44
5 changed files with 6 additions and 27 deletions

View file

@ -1,12 +1,9 @@
# == Class icingaweb2::config
#
class icingaweb2::config {
if is_function_available('assert_private') {
assert_private()
} else {
private()
}
class icingaweb2::config (
$config_dir = $::icingaweb2::config_dir,
$web_root = $::icingaweb2::web_root,
) {
@user { 'icingaweb2':
ensure => present,
home => $::icingaweb2::web_root,

View file

@ -220,7 +220,7 @@ class icingaweb2 (
class { 'icingaweb2::preinstall': } ->
class { 'icingaweb2::install': } ->
class { 'icingaweb2::config': } ->
Class [ 'icingaweb2' ]
Class['icingaweb2']
validate_absolute_path($config_dir)
validate_absolute_path($web_root)

View file

@ -1,12 +1,6 @@
# == Class icingaweb2::install
#
class icingaweb2::install {
if is_function_available('assert_private') {
assert_private()
} else {
private()
}
if $::icingaweb2::install_method == 'package' {
if $::icingaweb2::pkg_list {
package { $::icingaweb2::pkg_list:
@ -29,7 +23,7 @@ class icingaweb2::install {
before => Vcsrepo['icingaweb2'],
}
}
vcsrepo { 'icingaweb2':
ensure => present,
path => $::icingaweb2::web_root,

View file

@ -1,12 +1,6 @@
# == Class icingaweb2::preinstall
#
class icingaweb2::preinstall {
if is_function_available('assert_private') {
assert_private()
} else {
private()
}
if $::icingaweb2::manage_repo and $::icingaweb2::install_method == 'package' {
case $::operatingsystem {
'RedHat', 'CentOS': {

View file

@ -3,12 +3,6 @@
define icingaweb2::preinstall::redhat(
$pkg_repo_version,
) {
if is_function_available('assert_private') {
assert_private()
} else {
private()
}
case $::operatingsystem {
'RedHat', 'CentOS', 'Scientific': {
case $pkg_repo_version {