Commit graph

74 commits

Author SHA1 Message Date
Nick Chappell
98c598ce16 Fixed whitespace alignment in the icinga2::server::install class. 2015-01-10 17:35:06 -08:00
Nick Chappell
8a8bf24400 Fixed whitespace alignment in the icinga2::server::config class. 2015-01-10 17:34:45 -08:00
Alexandre Beche
bb523a9dc6 Adding support for RedHat 2014-12-12 15:44:28 +01:00
Nick Chappell
bde5178ed1 Fixed a bug where features were not actually being enabled/disabled because the order of the words in the subcommands was wrong.
refs#7916 : https://dev.icinga.org/issues/7916
2014-12-01 19:48:55 -08:00
Nick Chappell
00cfa7abf8 Fix the exec resource commands so they use the new commands in 2.2 to enable/disable features instead of the old ones from 2.1 and before.
refs#7714 : https://dev.icinga.org/issues/7714
2014-11-25 21:27:00 -08:00
Nick Chappell
17d230eb2b Added a parameter that controls whether non-Puppet managed object files get purged. 2014-11-21 21:49:26 -08:00
Josh Holland
5f1e23e00d Escape backslash
Signed-off-by: Nick Chappell <nick@intronic.org>

Merged from: https://github.com/Icinga/puppet-icinga2/pull/40

refs#7675: https://dev.icinga.org/issues/7675
2014-11-13 21:34:49 -08:00
Josh Holland
f74aab291b Further fix the quoting of PostgreSQL password
Signed-off-by: Nick Chappell <nick@intronic.org>

Merged from: https://github.com/Icinga/puppet-icinga2/pull/40

refs#7675: https://dev.icinga.org/issues/7675
2014-11-13 21:34:44 -08:00
Josh Holland
27988d88dc Quote PostgreSQL database password properly
Signed-off-by: Nick Chappell <nick@intronic.org>

Merged from: https://github.com/Icinga/puppet-icinga2/pull/40

refs#7675: https://dev.icinga.org/issues/7675
2014-11-13 21:34:29 -08:00
Markus Frosch
cf3f80e3fe Use actual debmon.org repository key
29D662D2 is the actual debmon.org key
BC7D020A is Alexander Wirt's (formorer) old key
2014-10-15 10:34:06 +02:00
Markus Frosch
972b7abee8 Always include Class apt on Debian, needed by apt::source
In addition some indention fixes.
2014-10-15 10:30:26 +02:00
Steven Bambling
50a07737ab getting difference and not enabling services listed as disabled even if also listed as enabled
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-10-09 23:12:21 -07:00
Steven Bambling
4fdc002c90 fixing define name
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-10-09 23:12:21 -07:00
Steven Bambling
d20c8264c1 adding feature disable define
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-10-09 23:12:21 -07:00
Steven Bambling
6526467f42 calling disable define and adding new params
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-10-09 23:12:21 -07:00
Steven Bambling
a7caedcaa4 checking to make sure feature is available before enabling it
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-10-09 23:12:20 -07:00
Steven Bambling
66d9d95ee2 re pointing default param's
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-10-09 23:12:20 -07:00
Steven Bambling
fb55aca0d5 adding default features to the paras.pp
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-10-09 23:12:20 -07:00
Steven Bambling
664d918edf making the server watch for enabled features/modules
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-10-09 23:12:19 -07:00
Steven Bambling
7acbb29fad removing maillog
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-10-09 23:12:19 -07:00
Steven Bambling
e846110b8d wrong icinga ver
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-10-09 23:12:19 -07:00
Steven Bambling
aa72b8e1dd fixing typo
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-10-09 23:12:19 -07:00
Steven Bambling
a0fb8f8a09 updating parameter names and define call
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-10-09 23:12:19 -07:00
Steven Bambling
829c22d1cd adding default features and rename class
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-10-09 23:12:19 -07:00
Steven Bambling
f4ae2a4232 renaming files
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-10-09 23:12:19 -07:00
Steven Bambling
a087d65bba adding class and define to enable icinga features/modules with icinga2-enable-feature command to create symlinks
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-10-09 23:12:19 -07:00
Olivier FONTANNAUD
2826c0fa9f Refactor debmon support
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-10-09 22:26:07 -07:00
Olivier FONTANNAUD
e35c11aa21 Refactor debmon repository feature
rename use_debmon to use_debmon_repo, merge debmon_repo class to install class

Signed-off-by: Nick Chappell <nick@intronic.org>
2014-10-09 22:26:07 -07:00
ofontannaud
4dd15a17e7 Add debmon support
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-10-09 22:26:07 -07:00
Steven Bambling
811aee0280 syntax fixes
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-09-28 20:12:10 -07:00
Steven Bambling
6ad22d4f96 sytle guide fixes
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-09-28 20:12:10 -07:00
Nick Chappell
201ac76d69 Added a link to the Launchpad page for the Icinga PPA. 2014-09-22 21:59:38 -07:00
Nick Chappell
0598e74f56 Typo. 2014-09-22 21:50:16 -07:00
Alessandro Franceschi
abc978ce41 Added Debian 7 support
Signed-off-by: Nick Chappell <nick@intronic.org>

Taken from: https://github.com/Icinga/puppet-icinga2/pull/9

refs #7264, https://dev.icinga.org/issues/7264
2014-09-17 20:51:11 -07:00
Nick Chappell
e32a5806c3 Added support for installing packages on Icinga 2 servers that will make the mail command available. Without it, Icinga 2 can't send out notifications. Also added a parameter to controller whether the packages will get installed; added a note in the README about the parameter.
refs #7212: https://dev.icinga.org/issues/7212
2014-09-15 20:26:51 -07:00
Nick Chappell
cc57f33ac1 Whitespace cleanup. 2014-09-13 19:46:24 -07:00
Nick Chappell
b7c6046ec5 Removed mentions of Red Hat from comments since it's not officially supported. 2014-09-13 19:28:38 -07:00
Nick Chappell
3e2b330dd6 Add parameters for the server and client package installations to specify '--no-install-recommends' on Ubuntu 14.04 and 12.04 systems, then use the parameter in the server and client plugin package installs.
This will prevent Nagios 3 from being installed and started, as nagios3 and related packages frequently come along as recommended packages for many of the Nagios plugin packages on Debian/Ubuntu systems.
2014-09-13 15:32:30 -07:00
Nick Chappell
cf20a52ba0 Removed RedHat mentions, since it's not technically supported. 2014-09-12 20:25:32 -07:00
Nick Chappell
d4794afa95 For Ubuntu systems, switch to adding the Icinga PPA instead of the release snapshot apt repo. 2014-09-07 14:01:17 -07:00
Nick Chappell
bbb2ed10f4 Remove Debian from the regex since it's not a supported distro yet. 2014-09-07 13:41:57 -07:00
Nick Chappell
cb477311a9 Add a - between the su and postgres so that we inherit the Postgres user's environment and don't try to run the command with /root as the working directory. 2014-08-24 12:25:06 -07:00
Nick Chappell
f9f7cc5ad9 Use && in between the shell commands in the exects so that if any of the commands inside fail, the entire exec resource will fail.
With ; in between each shell command, the command chain would continue on even if one of the commands returned a non-0 exit status. Because this would make Puppet think the entire exec resource succeeded, Puppet would continue on configuring the rest of the resources in icinga2::server and all of its subclasses. With && in between each subcommand, the execs will fail if any of the subcommands fail and Puppet will skip the rest of the module's resources, not leaving things in a bad state.
2014-08-24 12:07:46 -07:00
Nick Chappell
eea0b20565 Remove language referring to Ubuntu Saucy and the snapshots repo since neither of those are being used or supported. 2014-08-22 10:52:06 -07:00
Adam Stephens
de61c1a14f make manage_repos parameter work 2014-08-18 09:31:31 -04:00
Nick Chappell
4d5c93d32a Wrapped the server plugin install in an if statement so that installing the plugins packages depends on the parameter being set to true. 2014-07-20 17:05:11 -07:00
Nick Chappell
33ff28b86d Add parameters for Nagios plugin pacakges and install them with a package resource in the icinga2::server::packages class so we can get the Nagios plugin packages Icinga 2 servers. 2014-07-05 22:00:20 -07:00
Nick Chappell
70e0f29dfc Added directories for template, constant and apply objects. 2014-07-05 18:10:37 -07:00
Nick Chappell
98022e2910 Add directory resources for /etc/icinga2/objects and subdirectories underneath it for each object type outlined on: http://docs.icinga.org/icinga2/latest/doc/module/icinga2/toc#icinga2#object-types. 2014-07-05 16:35:16 -07:00
Nick Chappell
995f4877a7 Added a subsection for server service parameters. 2014-07-05 15:56:55 -07:00