Commit graph

60 commits

Author SHA1 Message Date
c2e6690c3c Use absolute path for mysql executable 2016-08-19 11:11:14 +02:00
Tom De Vylder
b7a4de5138 Lintian fixes 2016-07-04 11:31:29 +02:00
Stefan Kleindl
5a786c6d49 Add possibility to set auth_backend to ldap
next to the already existing possibilities db and external. If auth_backend is set
to ldap an ldap ressource and an ldap authentication configuration is generated.

Also support for ldap encryption is added.
2016-05-12 16:10:51 +02:00
Khanh Ngo
475e0c9cfc Add extra clause for Debian/Ubuntu in db initialization step 2016-04-18 17:29:43 +02:00
Khanh Ngo
41c46bdf02 Switch initialize to true in icingaweb2 setup 2016-04-18 17:28:33 +02:00
CV
85fcd131ee Module graphite is not getting enabled
When usting the mod::graphite class the module is not getting enabled. As in mod::monitoring this should be done.
2016-03-15 17:38:35 +01:00
Tom De Vylder
037e355e38 Fix merge duplication issue 2016-02-23 10:06:44 +01:00
Eric Zounes
167a752af7 Add parameters to the monitoring module class for more flexibility. 2016-02-23 09:59:40 +01:00
Stefan Kleindl
eb61819522 add parameter manage_user
which defines if user and group should be managed by this module. This gives
you the possibility to manage the user and group with another module or
manually.

The default value is set to true so it doesn't change the existent behaviour
of this module.
2016-02-16 09:41:02 +01:00
Peter Souter
a6cb42215a Fixes permissions on config files
Before ini_file was used to create the files, but the permissions were incorrect and you'd get an error message: ![Error](https://cloud.githubusercontent.com/assets/1064715/13003982/91bfc7ea-d170-11e5-9eb4-4fc135140f83.png)
2016-02-12 10:11:23 +00:00
Peter Souter
96211d89d1 Change sql_schema_location if using git
The git clone does not create the docs folder, so this fails:

```
/Stage[main]/Icingaweb2::Initialize/Exec[create db scheme]/returns: sh: /usr/share/doc/icingaweb2/schema/mysql.schema.sql: No such file or directory
==> default: Error: mysql --defaults-file='/root/.my.cnf' icingaweb2 < /usr/share/doc/icingaweb2/schema/mysql.schema.sql returned 1 instead of one of [0]
```

This checks if the user is using the git installation method, then changes to the location of the correct schema.

Also adds spec to check this logic
2016-02-10 20:47:13 +00:00
Eric Zounes
4fa1812fbd Set template parameters to undef and don't create ini settings unless they're set. 2016-01-13 09:40:49 +01:00
Eric Zounes
84ece824e8 Update the Graphite module class.
- Add parameters to the icingaweb2 graphite module class to manage the
  template parameters.
- Set the metric_prefix parameter to undef by default since this option
  has been removed from newer version of the module.
2016-01-13 09:40:49 +01:00
Jan Collijs
01a885a027 Bugfix: removed unused parameter web_root 2016-01-05 16:18:48 +01:00
Jan Collijs
af33ea765f Feature: added monitoring module 2016-01-05 16:14:58 +01:00
Jan Collijs
0cc89ec9fd Bugfix: only create db scheme once when tables are not yet deployed 2016-01-04 15:05:38 +01:00
Jan Collijs
df99507221 Feature: initialize database if preferred so a working icingaweb2 instance can be started automatically 2015-12-14 16:40:11 +01:00
Sebastian Brückner
df2c66896a Update graphite module on each puppet run 2015-11-22 14:07:49 +01:00
Markus Frosch
7be6514c4a Document class for lint 2015-10-30 10:30:57 +01:00
Alexandre Beche
4a88d7325f Allowing to purge the confiruration directory 2015-10-26 22:43:45 +01:00
Eric Zounes
144be24450 Add ldap auth define type. 2015-10-20 09:41:18 +02:00
Tom De Vylder
83c934f003 Remove duplicate parameter 2015-07-29 11:33:25 +02:00
Josh Beard
236d009a43 Add support for Scientific Linux in Yum repo
This commit uses the $::operatingsystemmajrelease fact for managing the
Yum repository on Scientific Linux.  Yum's "$releasever" resolves to
"6.6" (major.minor) on Scientific Linux, where it resolves to "major" or
"major(.server)?" on RedHat.  That causes the repo to fail on Scientific
Linux.

The other solution would be to add symlinks for major.minor in the
upstream Yum repo.  E.g. 6.6 => 6
2015-06-12 14:10:20 -06:00
Tom De Vylder
4a292671d2 Lintian fixes 2015-06-10 12:19:02 +02:00
Markus Frosch
cad60a9899 Validate role_name in config::roles 2015-06-10 10:49:02 +02:00
Markus Frosch
60ef67d9da Avoid resource duplication in config::roles 2015-06-10 10:49:02 +02:00
Timo Goebel
2cb4e0f46d remove settings when value is not set 2015-06-10 10:48:59 +02:00
Tom De Vylder
2c2db8bd5c Add module deployment 2015-05-07 10:24:35 +02:00
Tom De Vylder
5aa065c999 Lintian fixes 2015-05-04 10:18:04 +02:00
jweakley
12ce6534ee Don't put blank host/service filters in roles.ini
refs #9211
2015-05-03 12:02:06 +10:00
Tom De Vylder
2b634be4a5 Add module nagvis 2015-04-27 10:52:44 +02:00
Tom De Vylder
d4eff6a815 Style fixes 2015-04-23 11:40:42 +02:00
Tom De Vylder
0ded568a44 Puppet 4.0.0 compatibility fixes 2015-04-23 11:26:23 +02:00
Tom De Vylder
b2817fc85f Add module graphite 2015-04-22 15:24:44 +02:00
Tom De Vylder
d56c51c3f7 Adjust businessprocess module git repo 2015-04-22 13:55:10 +02:00
Tom De Vylder
3274e9fc70 Add module businessprocess 2015-04-22 13:42:09 +02:00
Tom De Vylder
21d9633d5b Add modules directory 2015-04-22 13:02:05 +02:00
Markus Frosch
84f3bc4120 Fix usage of wrong parameter for auth backend 2015-04-07 14:22:33 +02:00
Markus Frosch
9a1fa485e4 Fix usage of resource_host in LDAP resource 2015-04-07 14:08:53 +02:00
Markus Frosch
45d457ca48 Fix typos in documentation 2015-04-07 14:01:04 +02:00
Markus Frosch
b5111c856e Fix PuppetLint warnings due to config rewrite 2015-04-07 13:59:48 +02:00
Markus Frosch
51012fc049 Fix authentication configuration
auth_method => external
  Was not handled at all, but provided as defined type.

admin_users => [ list ]
  Was written into the wrong ini value
2015-04-07 13:40:54 +02:00
Tom De Vylder
bd977c220d Add tests for d91ca349 2015-04-06 16:56:30 +02:00
Steven Bambling
d91ca34935 Moving away from templates to usign inifile from Puppetlabs/inifile 2015-04-02 08:45:16 -04:00
Markus Frosch
53cdcf82a6 Fix broken apache parameter reference
Broken by 1aefd726c8
2015-03-16 17:35:55 +01:00
Markus Frosch
c23af58657 Apply config_dir_mode to all directories 2015-03-16 17:08:06 +01:00
Vladimir Smirnov
1aefd726c8 Allow to redefine template files for configs 2015-03-16 17:06:21 +01:00
Benjamin Krein
4332ff8eaa fix for broken dependency when installing via git 2015-03-16 17:04:32 +01:00
Tom De Vylder
0d54db18cc Assert private classes 2015-03-06 10:00:33 +01:00
Tom De Vylder
4e1c7a6ef3 Add RHEL/CentOS package repository management 2015-02-23 17:27:33 +01:00