parent
2c5f9e7c14
commit
43c1efb7f4
|
@ -312,3 +312,17 @@ exec { 'install ZendFramework':
|
|||
unless => 'rpm -qa | grep php-ZendFramework',
|
||||
require => Class['epel']
|
||||
}
|
||||
|
||||
package { 'boost-devel':
|
||||
ensure => installed
|
||||
}
|
||||
|
||||
cmmi { 'icinga2':
|
||||
url => 'http://sourceforge.net/projects/icinga/files/icinga2/0.0.1/icinga2-0.0.1.tar.gz/download',
|
||||
output => 'icinga2-0.0.1.tar.gz',
|
||||
flags => '--prefix=/usr/local/icinga2',
|
||||
creates => '/usr/local/icinga2',
|
||||
make => 'make && make install',
|
||||
require => Package['boost-devel'],
|
||||
timeout => 600
|
||||
}
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
# [*flags*] - configure options.
|
||||
# [*creates*] - target directory the software will install to.
|
||||
# [*make* ] - command to make and make install the software.
|
||||
# [*timeout* ] - timeout for the make command.
|
||||
#
|
||||
# Actions:
|
||||
#
|
||||
|
@ -32,6 +33,7 @@ define cmmi(
|
|||
$flags,
|
||||
$creates,
|
||||
$make,
|
||||
$timeout=300
|
||||
) {
|
||||
|
||||
Exec { path => '/bin:/usr/bin' }
|
||||
|
@ -70,6 +72,7 @@ define cmmi(
|
|||
cwd => $src,
|
||||
command => $make,
|
||||
creates => $creates,
|
||||
require => Exec["configure-${name}"]
|
||||
require => Exec["configure-${name}"],
|
||||
timeout => $timeout
|
||||
}
|
||||
}
|
||||
|
|
10
README.md
10
README.md
|
@ -59,6 +59,7 @@ After you should be able to browse [localhost:8080/icinga2-web](http://localhost
|
|||
|
||||
* Icinga 1.9.1 with IDOUtils using a MySQL database
|
||||
* Icinga 1.9.1 with IDOUtils using a PostgreSQL database
|
||||
* Icinga 2 version 0.0.1
|
||||
|
||||
**Installed files**:
|
||||
|
||||
|
@ -176,3 +177,12 @@ In order to run all tests you have to execute the following commands:
|
|||
|
||||
`runtests` will execute unit and regression tests and `checkswag` will report
|
||||
code style issues.
|
||||
|
||||
#### Icinga 2
|
||||
|
||||
**Installation path**: `/usr/local/icinga2`
|
||||
|
||||
**Example usage**:
|
||||
|
||||
cd /usr/local/icinga2
|
||||
./sbin/icinga2 -c etc/icinga2/icinga2.conf.dist
|
||||
|
|
Loading…
Reference in New Issue