Commit graph

69 commits

Author SHA1 Message Date
Kevin Paulisse
feebb0088e
Fix syntax error in tests 2016-05-28 23:57:48 -05:00
Kevin Paulisse
63ab89048d
Connection params off by default but settable via hiera 2016-05-28 23:16:56 -05:00
Kevin Paulisse
4f03c6cf6b
Merge remote-tracking branch 'upstream1/master' into kpaulisse-dbconnections 2016-05-28 23:13:25 -05:00
Andrew Roetker
867e9fe22e (PDB-2696) Remove the dependency cycle cause by typo
This commit removes the dependency cycle caused by a typo in the config
name for config.ini and properly threads through the vardir setting to
the puppetdb::server::global class.
2016-05-13 14:26:40 -07:00
Ken Barber
59100fd6bc (PDB-2571) Ensure all managed ini files have correct permissions
Much like read-database.ini, we need to ensure the permissions for puppetdb.ini and others are set explicitly
to ensure permissions are still correct after configuration. Without this users with different umask
settings may find their files are no longer accessible after the module runs.

This patch fixes the globally for all the ini files we currently manage (repl.ini is not managed fwiw).

This also fixes a bug whereby we were missing puppetdb::server::global from the main server class, it adds this
back and fixes the tests to ensure we don't lose it.

Signed-off-by: Ken Barber <ken@bob.sh>
2016-05-12 18:31:50 +01:00
Nathan Ward
46f1b03145 Manage the maximum-pool-size configuration parameter in database.ini 2016-05-02 16:41:53 +12:00
Ken Barber
298c44c67d (PDB-2637) Add static facts for selinux and iptables to fix rspec tests
The firewall module requires selinux and the iptables_persistent_version facts to be defined
up front for our tests to pass. This patch includes those static facts, so we pass.

Signed-off-by: Ken Barber <ken@bob.sh>
2016-04-20 14:55:26 +01:00
Andrew Roetker
16e50d74eb (maint) Pin rake gem version for ruby 1.8.7 2016-03-11 15:17:15 -08:00
Andrew Roetker
4985c82f1c (maint) Handle terminus to termini package upgrades
This commit adds an exec to allow users to upgrade to termini-3.x via
the module with no extra manual steps.
2016-03-11 12:09:53 -08:00
Wyatt Alt
6768ac3593 Revert "(maint) use 'puppetdb-terminus' on redhat with version 3+"
This reverts commit f246e95e17.
2016-02-09 14:52:43 -08:00
Wyatt Alt
f246e95e17 (maint) use 'puppetdb-terminus' on redhat with version 3+
This makes it possible to upgrade PDB from 2.x to 3+ on redhat without
explicitly specifying the terminus package name.
2016-02-09 11:29:58 -08:00
Ken Barber
ed371ce829 Merge pull request #215 from michaelweiser/qr2
Restrict access to the Puppet master by default
2015-10-15 15:16:16 +01:00
Michael Weiser
3889cc56a4 Add option to restrict access to PuppetDB
Add the option to set up a certificate whitelist file and configure it
in PuppetDB so that only specific hosts (i.e. the Puppet master(s)) have
access.
2015-10-15 09:33:52 +02:00
Michael Weiser
fea383feb1 Add option to disable cleartext HTTP port 2015-10-14 22:32:51 +02:00
Wyatt Alt
4a1f3245d0 (PDB-1430) overwritable java_args
this creates a new config setting, merge_default_java_args, that users may set
to false to override the default java_args.
2015-09-21 15:27:23 -07:00
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
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
Ken Barber
c182b4cec6 Merge branch 'stable'
* stable:
  Specify kernel in spec tests as the firewall module requires it
  Support Puppet v4
  Test against the latest version of Puppet 3.x and with future parser
2015-06-19 13:12:38 +01:00
Garrett Honeycutt
d82263f340 Specify kernel in spec tests as the firewall module requires it 2015-06-18 15:01:39 +01:00
Garrett Honeycutt
829bc1c1ec Test against the latest version of Puppet 3.x and with future parser 2015-06-18 15:01:39 +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
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
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
Ken Barber
332ec352f9 (maint) Add file_concat and fix rspec warnings
This fixes the file_concat dependency issue postgresql module has brought in,
plus removes some deprecation warnings from our rspec tests.

I've also bumped rspec-puppet as well, while I was at it.

Signed-off-by: Ken Barber <ken@bob.sh>
2015-04-21 14:35: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
Mathieu Parent
63fecabf96 Show scheme (http/https) in puppetdb connection errors 2014-12-03 11:45:04 +01: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
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
Sean Millichamp
b2e123180a Add spec test showing is_pe detection failure
Add a new spec test providing some initial coverage of
puppetdb::server demontrating the failure to correctly
detect a PE environment.
2014-10-03 16:48:07 -04:00
Travis Fields
40c76e3eae Remove puppet_module_install in favor of copy_module_to 2014-09-10 11:46:06 -07:00
Stefan Andres
3061b90127 implement max_threads option for jetty 2014-06-26 17:15:34 +02:00
Mickaël Canévet
ebac7adda7 Auto enable strict_variables for unit tests when puppet > 3.5 2014-06-19 11:51:00 +02:00
Mickaël Canévet
51fcc18aa8 Fix strict_variables issue 2014-04-10 15:37:20 +02:00
Mickaël Canévet
0c0464d2d3 Add STRICT_VARIABLES support in travis with puppet > 3.5 2014-04-08 16:24:19 +02:00
Mickaël Canévet
e97f9e38d1 Add unit tests for puppetdb::master::config 2014-04-08 16:23:58 +02:00
Ken Barber
1c831ebe5e Fix up unit tests after /v2 changes
Signed-off-by: Ken Barber <ken@bob.sh>
2014-02-11 20:56:48 +00:00
Ashley Penney
a344bfe83a Convert tests to beaker. 2014-02-03 16:43:01 +00:00
Garrett Honeycutt
02a9cf0da4 Support rspec-puppet v1.0.0
include_class has been replaced with contain_class.
http://bombasticmonkey.com/2013/12/05/rspec-puppet-1.0.0/
2013-12-27 17:34:14 -05:00
Ken Barber
684b24c668 Make sure the correct ntp packages are installed
Signed-off-by: Ken Barber <ken@bob.sh>
2013-10-27 13:56:45 +01:00
Ken Barber
3c71c5f8cf Update test fixtures and module dependencies to use postgresql 3.1.0
Signed-off-by: Ken Barber <ken@bob.sh>
2013-10-27 01:33:29 +02:00
Ken Barber
78a2530e03 Ensure ntpdate executes early
This is to avoid any time slew problems related to ntp shifting the time
later on in the background.

Signed-off-by: Ken Barber <ken@bob.sh>
2013-10-27 00:11:02 +01:00
Ken Barber
683bda3e3e Fix idempotency tests
Signed-off-by: Ken Barber <ken@bob.sh>
2013-10-22 13:22:05 +01:00