Commit graph

152 commits

Author SHA1 Message Date
Andrew Roetker
27ce82b11b Merge pull request #232 from kpaulisse/kpaulisse-dbconnections
Manage the pool size configuration parameters in database.ini
2016-06-23 12:57:03 -07:00
Ryan Senior
5a7d46a38f Merge pull request #234 from ajroetker/ticket/master/pdb-2660/restart_puppet_master_after_enabling_reporting
(PDB-2660) Restart Puppet master after enabling reporting
2016-06-22 16:19:14 -05:00
Kevin Paulisse
84fefe9c0b
Support partition-conn-max back to 2.8 2016-06-22 15:01:13 -05:00
Andrew Roetker
8a92361a7e (PDB-2660) Restart Puppet master after enabling reporting 2016-06-21 13:11:33 -07:00
Sebastian Reitenbach
a19d30c2e8 Unbreak on OpenBSD, underprivileged users from packages start with
_underscore, as well as such groups, therefore on OpenBSD, the
user:group is _puppetdb:_puppetdb

Because of that, instead of the single default in params.pp,
move the definition of puppetdb_user and puppetdb_group into
one of the OS specific case statement.
2016-06-08 20:10:11 +02: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
PascalBourdier
51c1b217c2 create pg_trgm in database
add pg_trgm postgresql extension and contrib package for dependency
2016-05-10 09:45:41 +02:00
Nathan Ward
46f1b03145 Manage the maximum-pool-size configuration parameter in database.ini 2016-05-02 16:41:53 +12:00
PascalBourdier
68242bc570 Update postgresql.pp
postgresql contrib package is needed to avoid warn message about pg_trgm indexes
2016-04-02 16:39:19 +02: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
Andrew Roetker
4199f1e0a2 Merge pull request #220 from wkalt/maint/master/install-puppetdb-terminus-on-redhat
(maint) use 'puppetdb-terminus' on redhat with version 3+
2016-02-09 12:21:54 -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
Wyatt Alt
d69a051f3f Merge pull request #218 from holtwilkins/patch-1
lint fix in report_processor
2016-02-08 14:49:39 -08:00
Holt Wilkins
74ea94bc5c Un-embedding selectors from class declarations 2016-02-08 13:47:20 +11:00
holtwilkins
994794e725 lint fix in report_processor 2016-02-08 11:57:23 +11: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
Ken Barber
b3f685b5e1 (maint) Lint fixes
This patch fixes some of the lint warnings/errors we've been getting on the
forge.

In some cases I've fixed real bugs also, in particular double quotes/single
quotes in cases, which would have broken variable interpolation.

Signed-off-by: Ken Barber <ken@bob.sh>
2015-10-05 13:40:54 -07:00
Ken Barber
de82d15750 Merge pull request #205 from roman-mueller/fix_port_deprecation
MODULES-2488 Use dport instead of the now deprecated port parameter
2015-10-04 19:38:47 -07: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
Roman Mueller
9ef0caa0e2 Use dport instead of the new deprecated port parameter 2015-08-29 15:08:05 +02: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