2015-02-20 10:40:45 +01:00
|
|
|
# Puppet icingaweb2
|
|
|
|
|
|
|
|
## Requirements
|
|
|
|
|
2015-05-07 10:48:27 +02:00
|
|
|
* [apache](https://github.com/puppetlabs/puppetlabs-apache)
|
|
|
|
* [inifile](https://github.com/puppetlabs/puppetlabs-inifile)
|
2015-02-20 10:40:45 +01:00
|
|
|
* [stdlib](https://github.com/puppetlabs/puppetlabs-stdlib)
|
2015-05-07 10:48:27 +02:00
|
|
|
* [vcsrepo](https://github.com/puppetlabs/puppetlabs-vcsrepo)
|
2015-02-20 10:40:45 +01:00
|
|
|
|
|
|
|
Debian and derivatives only:
|
|
|
|
|
|
|
|
* Puppetlabs [apt module](https://github.com/puppetlabs/puppetlabs-apt) or
|
|
|
|
* Camptocamp [apt module](https://github.com/camptocamp/puppet-apt)
|
|
|
|
|
|
|
|
## Example usage
|
|
|
|
|
|
|
|
### Install IcingaWeb2
|
|
|
|
|
|
|
|
node /box/ {
|
|
|
|
include icingaweb2
|
|
|
|
}
|
|
|
|
|
|
|
|
### Install method: packages
|
|
|
|
|
|
|
|
node /box/ {
|
|
|
|
class { 'icingaweb2':
|
|
|
|
install_method => 'package',
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
### Install method: Git
|
|
|
|
|
|
|
|
node /box/ {
|
|
|
|
class { 'icingaweb2':
|
|
|
|
install_method => 'git',
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
### Manage repository
|
|
|
|
|
|
|
|
node /box/ {
|
|
|
|
class { 'icingaweb2':
|
2015-02-23 16:36:17 +01:00
|
|
|
manage_repo => true,
|
|
|
|
install_method => 'package',
|
2015-02-20 10:40:45 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-05-07 10:35:04 +02:00
|
|
|
### Business process module
|
|
|
|
|
|
|
|
node /box/ {
|
|
|
|
class {
|
|
|
|
'icingaweb2':;
|
|
|
|
'icingaweb2::mod::businessprocess':;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
### Deployment module
|
|
|
|
|
|
|
|
node /box/ {
|
|
|
|
class {
|
|
|
|
'icingaweb2':;
|
|
|
|
'icingaweb2::mod::deployment':
|
|
|
|
auth_token => 'secret_token';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
### Graphite module
|
|
|
|
|
|
|
|
node /box/ {
|
|
|
|
class {
|
|
|
|
'icingaweb2':;
|
|
|
|
'icingaweb2::mod::graphite':
|
|
|
|
graphite_base_url => 'http://graphite.com/render?';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
### NagVis module
|
|
|
|
|
|
|
|
node /box/ {
|
|
|
|
class {
|
|
|
|
'icingaweb2':;
|
|
|
|
'icingaweb2::mod::nagvis':
|
|
|
|
nagvis_url => 'http://example.org/nagvis/';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-02-20 10:40:45 +01:00
|
|
|
## Contributing
|
|
|
|
|
|
|
|
* Fork it
|
|
|
|
* Create a feature branch (`git checkout -b my-new-feature`)
|
|
|
|
* Run rspec tests (`bundle exec rake spec`)
|
|
|
|
* Commit your changes (`git commit -am 'Added some feature'`)
|
|
|
|
* Push to the branch (`git push origin my-new-feature`)
|
|
|
|
* Create new Pull Request
|