Commit graph

125 commits

Author SHA1 Message Date
Wyatt Alt
2990f80ef1 (PDB-1913) manage vardir
This updates the module to manage vardir, and also makes room for general
management of the global ini section.
2015-09-16 15:26:50 -07:00
Russell Mull
28d23d5a9e (PDB-1415) Add jdbc_ssl_properties parameter 2015-09-01 14:27:51 -07:00
earsdown
0c8d0ea564 Pass database_port param to puppetdb::database::postgresql class 2015-08-05 22:40:54 +10:00
earsdown
2e0df3e328 Pass database_port parameter to postgresql class
Useful for when this module wants to install PGDG postgresql-9.4 on a CentOS 7 system with postgresql 9.2 already running (e.g. foreman)
2015-08-05 22:37:57 +10:00
Andrew Roetker
8eb9f67669 (PDB-1657) Manage Postgres repos by default
This commit moves to managing the Postgres repos by default. The
reason for this is so that the `puppetdb` class will "just work" by
default on most systems, because PostgreSQL 9.4 is not installed on 6/7
of the distros we support we need to manage the repos so we can install
the latest version.
2015-06-24 16:01:42 -07:00
Andrew Roetker
b95fc919b7 (maint) Add pathing for AIO, defaulting to non-AIO for older PDBs
This commit adds a globals class to PuppetDB which allows us to change
the param defaults for the module depending on what version of PuppetDB
they are using (similar to the PostgreSQL module).
This commit also changes the default PuppetDB 3.x configuration pathing
to assume AIO Puppet.
2015-06-24 14:55:09 +01:00
Andrew Roetker
2a70b8d33b (maint) Use smarter defaults when managing test_url
This commit updates the handling of the `test_url` parameter to be
smarter, using the PuppetDB `2.x` default for PuppetDB `2.x` and using
the `3.x` default for PuppetDB `3.x`.
2015-06-17 14:09:32 -07:00
Andrew Roetker
8e4c803f58 (maint) Add ability to manage old terminus style
This commit adds the ability to manage to legacy style of terminus for
`PuppetDB 2.x`.
2015-06-16 10:44:15 -07:00
Ken Barber
6cb77ff799 Merge branch 'stable'
* stable:
  (maint) Ignore ruby specific files when packaging module
  Release 4.3.0 of module
  (PDB-1455) Provide mechanism for modifying default HSQLDB path
2015-06-11 08:57:52 +01:00
Ken Barber
1b661fdf5b (PDB-1455) Provide mechanism for modifying default HSQLDB path
This provides an override mechanism for providing a custom path to HSQLDB.

This allows users to provide any path to their HSQLDB database. It is needed
specifically for managing the as-yet-unreleased version of PuppetDB as well.

Signed-off-by: Ken Barber <ken@bob.sh>
2015-06-10 19:04:20 +01:00
Ken Barber
454f01a304 Merge branch 'stable'
* stable:
  (maint) Allow database_validation to be false
2015-06-10 12:57:28 +01:00
Ken Barber
37f21d6c73 Merge pull request #181 from ajroetker/ticket/pdb-1485/master/add_pdb_root_context_for_query_api
(PDB-1035) Add default PuppetDB root context
2015-06-04 15:57:33 +01:00
Andrew Roetker
829626f6cb (PDB-1485) Add default PuppetDB root context
This commit changes the terminus configuration to use the new root
prefix for PuppetDB and changes the connection validator to do the same.

This commit also adds the terminus package name changes `terminus` to
`termini` and tries to be smart about the default, checking to see what
version of PuppetDB was passed in and defaulting off of that value.
2015-06-03 11:20:09 -07:00
Ken Barber
8820f05502 (maint) Change default ssl-host to 0.0.0.0
This was changes in the package, but never reflected in the module.

Signed-off-by: Ken Barber <ken@bob.sh>
2015-05-29 13:32:02 +01:00
Andrew Roetker
f39ba7e491 (maint) Allow database_validation to be false
This commit fixes a bug where if a user tried to turn off database
validation there would be a `before` statement requiring an absent
validation resource.
2015-05-28 13:48:24 -07:00
Ken Barber
ec13bc4553 (PDB-1467) Ordering problem with read_database_ini
This fixes the ordering for the read_database_ini class, and fixes a small
notification problem with config_ini as well.

Signed-off-by: Ken Barber <ken@bob.sh>
2015-05-06 13:58:44 +01:00
Sebastian Reitenbach
72e1924b11 Enable the module to manage entries in $confdir/config.ini, in the
command-processing section.

Added new class server/config_ini.pp to manage contents of the config.ini.
Three new parameters added:
  * command_threads
  * store_usage
  * temp_usage

All three default to 'undef'. This makes sure (potential) custom settings
done to that file with regard to above three variables are 'absent',
and let PuppetDB built-in defaults take care.

Documentation to the README.md added, as well as unit tests.

My use-case was, that I have on some nodes a too small /var partition,
so I had to lower the values of store-usage and temp-usage in the config.ini
manually.
2015-04-22 06:19:35 +02:00
John Duarte
4283af99bb (PDB-1353) Use settings::confdir for puppet_confdir
This commit adds conditionals to use `$settings::confdir` to introspect
the value for `$puppet_confdir` when available. This change is necessary
for compatibility with the path changes in Puppet 4.
2015-03-30 13:16:00 -07:00
Michael Moll
eba00b7ec7 add FreeBSD support 2015-03-25 22:16:47 +01:00
Ken Barber
b482ad8efa Merge pull request #163 from enovance/allow_masterless_configuration
Allow puppetdb to be configure for masterless conf
2015-02-05 11:37:11 +00:00
Yanis Guenane
a826d85735 Allow puppetdb to be configure for masterless conf
Currently the module only allows PuppetDB to be configured in a
agent/master setup configuration, by configuring the master section of
the puppet.conf and applying on the routes for such a configuration.
This commit allows one to use this module to configure the main section of
the puppet.conf and applying the proper routes so the module can configure
nodes to use PuppetDB in a masterless setup.

Doc about puppet.conf configure in masterless way available here
https://docs.puppetlabs.com/puppetdb/2.2/connect_puppet_apply.html#manage-puppetconf
2015-02-05 06:31:54 -05:00
Tim Meusel
55ee4389ab remove useless before attribute 2015-01-16 00:28:15 +01:00
Tim Meusel
1fe0a76032 add ability to manage postgres repo
the module triggers puppetlabs-postgresql which is able to handle yum/apt repos from the postgres devs. Usefull in cases that your operating system doesn't provide the newest release. this feature is disabled by default

fix typo
2015-01-14 14:02:49 +01:00
Robin Bowes
1a5a4efef5 Make database validation optional 2015-01-12 16:37:21 +00:00
Ken Barber
cb71baa1e9 Merge pull request #160 from bastelfreak/fix-manage-firewall
add missing param manage_firewall
2015-01-07 13:49:03 +00:00
Ken Barber
04a133c386 Merge pull request #158 from dalen/restart_on_cert_change
Restart the service if certificates change
2015-01-07 13:44:49 +00:00
Ewoud Kohl van Wijngaarden
1c6081082e Remove unused parameters 2015-01-06 19:03:42 +01:00
Tim Meusel
4031dc7883 add missing param manage_firewall
the param manage_firewall was added in an earlier release to puppetdb::server. The class isn't called directly but via the init.pp. the puppetdb class had already the param manage_firewall but this wasn't forwarded to puppetdb::server
2015-01-05 11:16:32 +01:00
Erik Dalén
1c6f37a4ee Restart the service if certificates change 2014-12-18 17:04:56 +01:00
Andrew Roetker
36148124b6 (maint) Prune dead PE code
This commit removes some dead PE code that is no longer used to make
params a little cleaner.
2014-12-05 14:05:50 -08:00
Tim Meusel
c3cdd86d55 Add ssl_protocol param to puppetdb & puppetdb::server classes
puppetdb::server calls puppetdb::server:jetty_ini,
jetty_ini is able to set ssl_protocols, but this param isn't
present in the puppetdb::server class nor in the puppetdb class
2014-11-28 18:15:16 +00:00
Ken Barber
fd6c2a2a60 (maint) Correct path for hsqldb storage
For some reasons we switched this to use /usr/share/puppetdb/db, which has a
softlink to /var/lib/puppetdb/db. This is not aligned with the PuppetDB core
nor is it following FHS.

Signed-off-by: Ken Barber <ken@bob.sh>
2014-11-06 14:15:06 +00:00
Garrett Honeycutt
af10eedfc6 Add ability to specify SSL protocols.
This is in response to CVE-2014-3566 - POODLE
2014-10-29 19:29:15 -04:00
Stefan Andres
ed5e57ca89 Remove invisible unicode character to prevent "invalid byte sequence in US-ASCII" 2014-10-16 13:36:23 +02:00
Philip Wigg
6d58b2286e Fix use_ssl behaviour for the validator and new puppetdb_disable_ssl parameter
Previously the defined check wasn't working as expected, this patches fixes
this by relying on the check for the `puppetdb` class instead.

Tests have been added, and the README has been updated to include the new
puppetdb_disable_ssl parameter for the `puppetdb::master::config` class.
2014-10-08 12:56:46 +01:00
Ken Barber
f6f6e55b33 Cleanups, missing doc items and new test_url capability
This provides a number of cleanups as the code has been unloved for a while.

I've added the ssl-* parameters the robinbowes added in his last patch to the
docs, and found some other cleanups as well where applicable.

I've added the ability to override the test_url also, so that in the future
if a user wishes to they can customize this.

Signed-off-by: Ken Barber <ken@bob.sh>
2014-10-07 15:06:54 +01:00
Robin Bowes
8c68fc1dd2 Add the ability to a) deploy ssl keys, b) set paths to ssl keys in jetty.ini
This also adds parameters for puppetdb user/group to support PE correctly.
2014-10-07 15:04:37 +01:00
Sean Millichamp
e4d26bdd85 Fix defined() call to correctly test is_pe
defined('$::is_pe') will never evaluate to true, even if
the is_pe fact is defined. defined('$is_pe') will return the
correct results.
2014-10-03 16:49:25 -04:00
Garrett Honeycutt
95812ed192 Update jetty_ini.pp 2014-09-24 17:43:40 -04:00
Ken Barber
8ce1856222 Use str2bool for backwards compatibility, and avoid changing puppetdb_service_status
is_pe being a fact, its smarter her to coerce the value of it too a boolean, in
case we still receive the value as a string. In the future structured facts
will become the norm.

I've also removed the patch against the values for puppetdb_service_status, matching
against a bareword boolean while it looks good, if the value is indeed a boolean the
in will fail in the current parser. This can be brought up again in the future.

Signed-off-by: Ken Barber <ken@bob.sh>
2014-09-15 22:59:38 +01:00
Matthias Baur
9d607f55f3 Fix some Puppet Lint errors
Fix wrong indention
2014-09-15 21:08:34 +01:00
Ken Barber
2c00c65061 Merge pull request #136 from buzzdeee/openbsd
OpenBSD support
2014-09-05 19:02:24 +01:00
Sebastian Reitenbach
f08fe90642 OpenBSD support 2014-08-31 22:41:39 +02:00
Sebastian Reitenbach
5ed5839d48 do not manage firewall for postgres, puppetlabs/postgres module from
git has dropped that silly firewall management support.

do not document removed manage_firewall parameter anymore
2014-08-31 22:36:11 +02:00
Taylan Develioglu
66b5cc087f Fixed read-database parameters in class puppetdb 2014-08-06 10:05:53 +02:00
Taylan Develioglu
27840d6959 Add read-database support 2014-08-04 13:54:38 +02:00
Matthias Baur
9ddef32eac Fixed typo 2014-07-11 11:18:11 +02:00
Matthias Baur
eac026c658 Allow to set the manage_server parameter in the init class 2014-07-11 11:14:40 +02:00
Ken Barber
cbcf042f54 Merge pull request #127 from dalen/flexible_routes
Allow more flexible routes configuration
2014-07-01 11:50:00 +01:00
Ken Barber
c706255bc0 Merge pull request #130 from stefanandres/jetty_max_threads
implement max_threads option for jetty
2014-07-01 11:49:06 +01:00