Commit graph

65 commits

Author SHA1 Message Date
Jason Antman
2ae8754efe conditionally do not manage the postgres server itself, so users can separately declare postgresql::server and pass whatever options they want. 2014-02-20 15:35:16 -05:00
Spencer Krum
9e4e88ecf1 Adding option to disable management of the firewall
Some users will manage the firewall externally from this module.
2014-02-14 18:34:48 +00:00
Adrian Lopez
b86270b0f3 Define parameter in puppetdb class to define postgres listen address 2014-01-12 22:57:18 +01:00
Elliott Barrere 
05cf44b937 Enable soft_write_failure setting when $puppetdb::disablessl = true
The puppet agent will refuse to run if it can’t make a secure
connection to the puppetdb server.  This setting disables that in case
SSL is disabled.
2013-12-11 14:36:32 -08:00
Elliott Barrere 
51a08a85b4 Fix issue with validator when disable_ssl = true
https://github.com/puppetlabs/puppetlabs-puppetdb/issues/106
2013-12-11 14:34:52 -08:00
Scott Duckworth
d25044f6c7 fix validation regular expressions 2013-10-29 12:15:35 -04:00
Ken Barber
c29fb59a68 Adjust memory for PuppetDB tests to avoid OOM killer
The tests were failing on Ubuntu, and I noticed that the OOM killer
was killing java. This patch increases the memory size for each
image to avoid this.

Signed-off-by: Ken Barber <ken@bob.sh>
2013-10-27 00:52:18 +02:00
Ken Barber
603df7381d (GH-93) Switch to using puppetlabs-postgresql 3.x
This updates the module to be able to use puppetlabs-postgresql.

Since this change is a major change, it marks this patch as a breaking change.

I have prepared a suitable amount of upgrade notes for upgrading to this later
version of the module plus removed anything marked deprecated.

As cleanup, I've removed the troublesome 'tests' directory in favour of good
README.md documentation. I've also removed any puppet docs from each module
until such times as puppet docs become automated through the forge. This is
just to avoid contributors having to double their efforts - the README.md
is the authority now.

Signed-off-by: Ken Barber <ken@bob.sh>
2013-10-21 18:43:41 +01:00
Stefan Dietrich
d6202bdda2 Disable database validation, if SSL is enabled 2013-10-19 19:56:46 +02:00
Stefan Dietrich
84c5fa79ea Add switch to configure database SSL connection
PostgreSQL supports secure connections through SSL. For PuppetDB
to connect with SSL, "?ssl=true" has to be specified on the
connection string.

This patch adds such a switch, by default PuppetDB will not use SSL
to connect to the database.
2013-10-19 19:56:46 +02:00
Garrett Honeycutt
70c73c78ba Add params to support soft_write_failure option as per Ken Barber
I can rebase these commits once the code is debugged and to your
liking.
2013-10-18 12:00:14 -04:00
Garrett Honeycutt
d440f1b3ea Add soft_write_failure to puppetdb.conf
This supports a recently added feature to PuppetDB.
2013-10-17 11:49:47 -04:00
Akos Hencz
0868426c32 Added puppetdb service control 2013-09-02 11:30:31 +02:00
Niels Abspoel
96e12396a6 add archlinux support 2013-08-19 22:25:12 +02:00
Chris Price
dd57e38c48 Merge pull request #78 from nicklewis/optional-password
Make database_password an optional parameter
2013-08-12 16:25:43 -07:00
Nick Lewis
2f12a5d7c0 Make database_password an optional parameter
In some cases it may not be possible to securely specify a password for
PuppetDB. When that is true, it's impossible to use the module to manage
PuppetDB, because specifying undef for the password will cause database
validation to fail, or for the setting in database.ini to be overridden.

This change will simply check that database_password is set, and will
skip validation and changing database.ini in the case where it is not.
2013-08-12 14:53:02 -07:00
Ken Barber
9c41392312 Add missing parameters for 1.4.0 release
This patch adds all the missing parameters now defined in the 1.4.0 release.

This includes some new database parameters mainly, but also adds gc_interval
to the `puppetdb` and `puppetdb::server` classes, as previously this wasn't
configurable using this method.

To avoid documentation duplication the Puppet headers have been removed in
favour of documenting classes from the README.md. Until such times as the
forge can turn Puppet docs into HTML automatically, this is just duplicate
noise and prone to update slippage. The README.md is more authoritative in
this area and is pubicly displayed on the forge project page so it should be
used for now.

Signed-off-by: Ken Barber <ken@bob.sh>
2013-08-07 15:32:19 +01:00
Chris Price
4602da1e4a Minor tweaks to make the module support SUSE 2013-07-09 13:15:29 -07:00
Erik Dalén
02d0c48438 Style guideline fixes 2013-06-04 14:19:53 +02:00
Ken Barber
b45fca9689 Merge pull request #64 from cprice-puppet/feature/master/support-enabling-report-processor
Add support for enabling puppetdb report processor
2013-05-28 16:15:08 -07:00
Chris Price
148bddbf30 Add support for enabling puppetdb report processor 2013-05-23 14:54:49 -07:00
Ken Barber
a56e28a024 Merge pull request #61 from dalen/separate_db_class
Separate DB instance and DB user creation
2013-05-22 08:27:07 -07:00
Chris Price
b79214066a Use fqdn for ssl listen address instead of clientcert
Chris Barker reported that the default value of `$::clientcert`
was not the best choice for some things we were using it for
in the module; specifically, for the default value of
the jetty ssl listen address.  He suggested using `$::fqdn` instead.

This commit makes that change; rspec-system tests pass, but I'm
not 100% sure that there aren't edge cases that would be
affected by this.
2013-05-21 16:35:42 -07:00
Erik Dalén
8a30c5a11d Separate DB instance and DB user creation 2013-05-07 18:28:23 +02:00
Chris Price
7c2caf6a20 Increase default report-ttl to 14d 2013-05-02 15:00:00 -07:00
Ken Barber
15fb00c9f7 Add initial rspec-system tests and scaffolding
This adds a basic test to run the standard 1 node setup until it succeeds.

This also fixes a bug with the connection validation facilities. Before this
patch we would keep retrying the connection to PuppetDB until the timeout
expired, this patch fixes that bug making provisioning faster and well, more
reliable. I've also increased the timeout as some systems take longer than
15 seconds for PuppetDB to start.

Signed-off-by: Ken Barber <ken@bob.sh>
2013-04-19 23:26:15 +01:00
Karel Brezina
7a1557a79f Added support for Java VM options 2013-04-12 15:24:52 +02:00
fhrbek
5f5a00f3a1 Support for remote puppetdb 2013-04-12 15:03:54 +02:00
Christian Berg
f10f4a97fb Remove trailing whitespace 2013-04-09 23:40:48 +02:00
Christian Berg
0a9d936670 Merge branch 'master' into feature/master/option_to_disable_ssl 2013-04-09 23:38:40 +02:00
Ken Barber
64aa1fec15 Also fix gc_interval
Signed-off-by: Ken Barber <ken@bob.sh>
2013-04-09 13:40:12 +01:00
fsalum
46684c4ab6 the new settings report_ttl, node_ttl and node_purge_ttl were added but they are not working, this fixes it 2013-04-09 13:38:30 +01:00
Christian Berg
28e23581c7 (#51) Add option to disable SSL in Jetty
This patch introduces the optional parameter $disable_ssl, which
defaults to false. If set to true, the settings ssl-host and ssl-port
are completely removed from the Jetty section of the PuppetDB config
files.

This disables serving of HTTPS requests by PuppetDB, which can be useful
when SSL handling is offloaded to a reverse proxy server like Apache or
Nginx, as suggested in the PuppetDB documentation (see
http://docs.puppetlabs.com/puppetdb/1.2/connect_puppet_apply.html#option-a-set-up-an-ssl-proxy-for-puppetdb).
2013-04-09 00:39:04 +02:00
Garrett Honeycutt
fc3f8dc747 allows for 0 _ttl's without time signifier and enables tests 2013-04-08 23:49:18 +02:00
Dominic Cleal
eb66b99b72 Add unit suffix to TTL settings to avoid issue #20099 2013-04-07 10:56:01 +01:00
Ken Barber
04d5bf1b56 Merge pull request #35 from nicklewis/add-ttl-settings
Add params and ini_settings for node/report/purge ttls
2013-04-04 05:22:02 -07:00
Nick Lewis
735f18fba9 Document which versions of PuppetDB the ttl settings work in 2013-02-27 16:44:40 -08:00
Karel Brezina
1d83efbcec Database name, user name and password can be set to arbitrary values. 2013-02-13 12:14:53 +01:00
Nick Lewis
9efe80b95a Add params and ini_settings for node/report/purge ttls 2013-02-06 15:25:20 -08:00
Chris Price
03a17532d5 Update docs in init.pp 2013-01-17 10:46:16 -08:00
Chris Price
de20b44101 Fix backward compatibility of manage_redhat_firewall parameter
Prior to this commit, the deprecated `manage_redhat_firewall` param
was not actually backward compatible because there were several
cases where we couldn't tell the difference between the user
explicitly specifying `false` for that parameter as opposed to
not specifying it at all.  This commit is a bit ugly because it
sets some defaults to `undef` in order to allow us to tell the
difference between the two cases, but it should resolve backwards
compatibility issues.
2013-01-17 09:59:08 -08:00
Chris Price
448f8bc996 Fix deprecation warnings around manage_redhat_firewall 2013-01-16 17:52:11 -08:00
Drew Blessing
0cf963279a 17594 - Fixes suggested by cprice-puppet 2012-11-29 07:46:05 -06:00
Drew Blessing
57445ef70f 17594 - PuppetDB - Add ability to set standard host listen address and open firewall to standard port
Prior to this commit the module did not provide a way to set a bind address for the HTTP port.  This
commit allows users to not only bind to an address and port other than localhost and 8080, but it also
opens the firewall if explicitly requested.
2012-11-14 09:00:15 -06:00
Chris Price
a72cc7c9f0 Add missing inherit for puppetdb::params
Prior to this commit if you tried to use the classes
`puppetdb::master::routes` or `puppetdb::master::storeconfigs`
directly (rather than implicitly through
`puppetdb::master::config`), you would get a failure about
`puppetdb::params` not having been evaluated.  This is because
the classes were missing an `inherits` statement; this commit
fixes both of them.
2012-10-26 11:42:40 -07:00
Chris Price
ea9b379062 Add missing inherit for puppetdb::params
Prior to this commit if you tried to use the class
`puppetdb::master::puppetdb_conf` directly (rather than
implicitly through `puppetdb::master::config`), you would
get a failure about `puppetdb::params` not having been
evaluated.  This is because the class was missing an
`inherits` statement; this commit fixes the bug.
2012-10-26 10:20:03 -07:00
Reid Vandewiele
bf0ab45620 Fix embedded db setup in Puppet Enterprise
The subname value in database.ini when using an embedded database varies
between the Puppet Enterprise package and the FOSS Puppet package.
Previously, the PuppetDB module could not successfully manage an
embedded database on a PE master. This commit adds an additional
parameter and utilization to account for this.
2012-10-17 13:28:01 -07:00
Chris Price
b119a30af5 Update manifests/master/config.pp
This just incorporates some whitespace / compatibility issues that @hunner noticed in the last pull request.
2012-10-17 09:33:29 -07:00
Chris Price
783b595fc7 Make puppetdb startup timeout configurable
In some environments, puppetdb can take longer than 10 seconds
to start up.  Prior to this commit, that value was hard coded
and the module would sometimes fail when it wouldn't have failed
with a slightly larger timeout.  This commit makes the timeout
configurable, and also increases the default value to 15 seconds.
2012-10-16 17:42:02 -07:00
Hunter Haugen
63f1c52d8b Add condition to detect PE installations and provide different parameters 2012-10-01 11:05:25 -07:00