Steven Bambling
f437b8406f
allow either source or content to be used as the file distribution method
...
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-10-09 23:30:49 -07:00
Steven Bambling
5e82839bb1
moving to using templates as the content source
...
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-10-09 23:30:49 -07:00
Steven Bambling
556aab7259
updating checkplugin_libdir for centos machies
...
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-10-09 23:30:49 -07:00
Steven Bambling
075ca2a4bf
adding new parameter for checkplugin_libdir to keep backwards compatibility
...
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-10-09 23:30:49 -07:00
Steven Bambling
cf99137e21
adding defined type independent of nrpe to manage check plugin (scripts)
...
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-10-09 23:30:49 -07: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
01e3430242
fixing missing , after parameters
...
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
715a5d1a88
adding parameters for disabled features
...
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-10-09 23:12:20 -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
b5513163cb
fixig missing ,
...
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-10-09 23:12:20 -07:00
Steven Bambling
bc3aac5270
updating template name
...
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-10-09 23:12:20 -07:00
Steven Bambling
7db98fd8f5
adding graphitewrite object and template
...
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
16251badad
running server::features from server class and passing parameterized array of features
...
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
2e8770f9cb
feature to create/add graphitewriter configurtion
...
Signed-off-by: Nick Chappell <nick@intronic.org>
Taken from: https://github.com/Icinga/puppet-icinga2/pull/24
2014-10-02 21:02:01 -07:00
Steven Bambling
8671d25f98
fixing typo with Determines
...
Signed-off-by: Nick Chappell <nick@intronic.org>
Taken from: https://github.com/Icinga/puppet-icinga2/pull/22
2014-10-02 20:36:17 -07:00
Steven Bambling
c410696090
adding ability to enable command argument processing via nrpe client
...
Signed-off-by: Nick Chappell <nick@intronic.org>
Taken from: https://github.com/Icinga/puppet-icinga2/pull/22
2014-10-02 20:35:13 -07:00
Steven Bambling
462c965229
setting consistant server_db_type failure message
...
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-09-28 20:12:10 -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
Steven Bambling
eba945d237
style guide fixes
...
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-09-28 20:12:10 -07:00
Steven Bambling
d76a47706a
setting 4 digit octal
...
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-09-28 20:12:09 -07:00
Steven Bambling
9bc44f6b26
setting 4 digit octal
...
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-09-28 20:12:09 -07:00
Steven Bambling
447a27a6ea
style guide fixes
...
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-09-28 20:12:09 -07:00
Steven Bambling
fb75630a5c
style guide fixes
...
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-09-28 20:12:09 -07:00
Steven Bambling
1154197843
style guide fixes
...
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-09-28 20:12:09 -07:00
Steven Bambling
bf683d719e
style guide fixes
...
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-09-28 20:12:09 -07:00
Steven Bambling
5896e2b72a
style guide fixes
...
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-09-28 20:12:08 -07:00
Steven Bambling
8e5b816eae
style guide fixes
...
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-09-28 20:12:08 -07:00
Steven Bambling
670a0f7b46
style guide fixes
...
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-09-28 20:12:08 -07:00
Steven Bambling
eefd533fb6
style guide fixes
...
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-09-28 20:12:08 -07:00
Steven Bambling
fba84ed798
style guide fixes
...
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-09-28 20:12:08 -07:00
Steven Bambling
960be1d867
style guide fixes
...
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-09-28 20:12:07 -07:00
Steven Bambling
3009c0be8d
sytle guide fixes
...
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-09-28 20:12:07 -07:00
Steven Bambling
2ea74bddf0
style guide fixs
...
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-09-28 20:12:07 -07:00
Steven Bambling
8f7ed4d64a
making mode 4 digit octal
...
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-09-28 20:12:07 -07:00
Steven Bambling
05cae20306
style guide fixes
...
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-09-28 20:12:07 -07:00
Steven Bambling
3826f0419a
sytle guide fixes
...
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-09-28 20:12:07 -07:00
Steven Bambling
a77203195a
adding defaults to case statements, failing if not supported DB is given
...
Signed-off-by: Nick Chappell <nick@intronic.org>
2014-09-28 20:12:06 -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
8f5a201bc1
Added generic icinga2::conf define @7273
...
Signed-off-by: Nick Chappell <nick@intronic.org>
Merged in from: https://github.com/Icinga/puppet-icinga2/pull/12
Refs #7273 : https://dev.icinga.org/issues/7273
2014-09-18 19:47:54 -07:00
Alessandro Franceschi
529cbb380a
Fix for wrong package name in Debian 7
...
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:52:53 -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
6d0b759fa6
Added a SyslogLogger object, accompanying ERB template and README additions.
...
refs#7234: https://dev.icinga.org/issues/7234
2014-09-15 21:07:42 -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
be65a35280
Use the operatingsystemmajrelease fact instead of operatingsystemelease for the sub-case statements in params.pp.
2014-09-13 21:54:46 -07:00
Nick Chappell
e6bb09d79b
Make support for CentOS 7 explicit; add sub-case statements for CentOS 6 and 7 and Ubuntu 12.04 and 14.04; fail if we're on any CentOS release other than 6 or 7 or Ubuntu 12.04 or 14.04.
2014-09-13 20:10:11 -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
e8d39f7085
Remove the commented out server_db_schema_path parameter from the parameter list, since it's being used internally inside of the icinga2::server class now.
2014-09-13 19:05:48 -07:00
Nick Chappell
c33c71b64a
Removed Debian references from the comments.
2014-09-13 16:50:41 -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
e88c4014ec
Replaced the Debian/Ubuntu regex with just 'Ubuntu' as a string, since Debian isn't officially supported yet.
2014-09-12 20:32:49 -07:00
Nick Chappell
cf20a52ba0
Removed RedHat mentions, since it's not technically supported.
2014-09-12 20:25:32 -07:00
Thomas Weißschuh
13f0031b30
fully qualify facts
...
Signed-off-by: Nick Chappell <nick@intronic.org>
Fully quality instances of the $operatingsystem Facter fact.
Originally from: https://github.com/Icinga/puppet-icinga2/pull/6
refs #7190 , https://dev.icinga.org/issues/7190
2014-09-11 22:49:55 -07:00
Thomas Weißschuh
56618bee69
liddir -> libdir
...
Signed-off-by: Nick Chappell <nick@intronic.org>
Fixes a typo by changing instances of 'liddir' to 'libdir'.
Originally from https://github.com/Icinga/puppet-icinga2/pull/6
refs #7189 , https://dev.icinga.org/issues/7189
2014-09-11 22:48:40 -07:00
Nick Chappell
52da440fa5
Added a servicegroup object defined type.
2014-09-07 16:31:03 -07:00
Nick Chappell
2e44972f70
Changed the DB schema file paths for RHEL/CentOS.
2014-09-07 14:29:34 -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
200645b4cc
Added validation to the icinga2::object::usergroup class' parameters.
2014-09-06 18:50:27 -07:00
Nick Chappell
b83450af91
Added validation to the icinga2::object::user class' parameters.
2014-09-06 18:50:21 -07:00
Nick Chappell
c8230124ef
Added validation to the icinga2::object::service class' parameters.
2014-09-06 18:50:13 -07:00
Nick Chappell
1af2287ea7
Added validation to the icinga2::object::idopgsqlconnection class' parameters.
2014-09-06 18:44:34 -07:00
Nick Chappell
db735934b5
Added validation to the icinga2::object::idomysqlconnection class' parameters.
2014-09-06 18:44:26 -07:00
Nick Chappell
ddc3395113
Added validation to the icinga2::object::hostgroup class' parameters.
2014-09-06 18:44:12 -07:00
Nick Chappell
ee68d95053
Added validation to the icinga2::object::host class' parameters.
2014-09-06 18:44:05 -07:00
Nick Chappell
4e1cec7439
Added validation to the icinga2::object::apply_service_to_host class' parameters.
2014-09-06 18:43:50 -07:00
Nick Chappell
c95e81d2c3
Added validation to the icinga2::nrpe::plugin class' parameters.
2014-09-06 18:04:50 -07:00
Nick Chappell
2a150f33e9
Added validation to the icinga2::nrpe::command class' parameters.
2014-09-06 18:04:42 -07:00
Nick Chappell
3f37faa3b6
Added validation to nrpe.pp's parameters.
2014-09-06 18:04:15 -07:00
Nick Chappell
a12585bc7c
Make the default value of the server_install_nagios_plugins value a boolean version true instead of a string version 'true'.
2014-09-06 17:51:40 -07:00
Nick Chappell
8ce71724ad
Add some more validation of parameters to the icinga2::server's parameters.
2014-09-06 17:51:04 -07:00
Nick Chappell
fe21de08f0
Remove duplicate enable_notifications parameter that was added.
2014-08-24 18:14:50 -07:00
Nick Chappell
9ec7f5ca9c
Name user object files after the defined type instance's name instead of the FQDN of the machine.
2014-08-24 17:59:58 -07:00
Nick Chappell
2c6d82895c
Added an enable_notifications parameter to the user object defined type.
2014-08-24 17:48:28 -07:00
Nick Chappell
7a21694ab2
Added a usergroup defined type and accompanying ERB tempalte.
2014-08-24 17:25:42 -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
3596f236ce
Whitespace cleanup.
2014-08-23 17:39:36 -07:00
Nick Chappell
552072ec3b
Added a defined type for Postgres IDO connection object definitions.
2014-08-22 22:26:42 -07:00
Nick Chappell
15e9555f64
Added a defined type for MySQL IDO connection object definitions.
2014-08-22 18:29: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
Nick Chappell
3b6e1a38bc
Added nagios-nrpe-plugin to the client plugin package list for Ubuntu 12.04.
2014-08-21 22:12:30 -07:00