Puppet Class: icingaweb2::install
- Defined in:
-
manifests/install.pp
Overview
Class icingaweb2::install
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'manifests/install.pp', line 3
class icingaweb2::install {
if $::icingaweb2::install_method == 'package' {
if $::icingaweb2::pkg_list {
package { $::icingaweb2::pkg_list:
ensure => $::icingaweb2::pkg_ensure,
}
}
}
if $::icingaweb2::install_method == 'git' {
if $::icingaweb2::pkg_deps {
package { $::icingaweb2::pkg_deps:
ensure => $::icingaweb2::pkg_ensure,
before => Vcsrepo['icingaweb2'],
}
}
ensure_packages(['git'])
vcsrepo { 'icingaweb2':
ensure => present,
path => $::icingaweb2::web_root,
provider => 'git',
revision => $::icingaweb2::git_revision,
source => $::icingaweb2::git_repo,
require => Package['git'],
}
}
}
|