Commit graph

30 commits

Author SHA1 Message Date
Noel McLoughlin
0efd330346 Darwin support 2017-09-24 00:12:00 +01:00
Noel McLoughlin
9e81aec024 Darwin support 2017-09-23 23:46:16 +01:00
Noel McLoughlin
36851d4e83 Darwin support 2017-09-23 23:21:12 +01:00
Noel McLoughlin
772302211b Darwin support 2017-09-23 22:58:29 +01:00
Noel McLoughlin
a1cc6056ed Darwin support 2017-09-23 22:25:11 +01:00
Frederic Crozat
f7b321fbbf Fix pkg_libpq_dev package name for openSUSE / SLE 2017-02-21 22:18:53 +01:00
Denys Havrysh
d4ed4be16e Attempt to start and manage PostgreSQL service even if init system fails 2017-01-06 16:33:40 +02:00
Denys Havrysh
ab38a069fa Workaround a bug in saltstack/salt#37935 for release v2016.11.0 2016-12-01 16:11:37 +02:00
Denys Havrysh
9518737477 Move setting client_bins item to the osmap lookup dict 2016-10-03 14:04:26 +03:00
Denys Havrysh
d5dcac95a7 RedHat: make client binaries available in $PATH 2016-09-26 18:03:11 +03:00
Denys Havrysh
84713e8fea Set use_upstream_repo: True by default 2016-09-23 17:50:57 +03:00
Denys Havrysh
b4edec9f43 Ensure upstream repo is configured or absent depending on use_upstream_repo 2016-09-22 17:05:25 +03:00
Denys Havrysh
c79dfeb6ec Make setting use_upstream_repo install PostgreSQL 9.5 by default 2016-09-13 16:42:36 +03:00
Denys Havrysh
c285f1006c Introduce osmajorreleasemap for RedHat release specific commands 2016-09-05 13:49:33 +03:00
Denys Havrysh
8db04833c2 Set sane defaults when use_upstream_repo and version Pillars are set 2016-09-04 15:26:46 +03:00
Jon Nelson
7a7396fcb2 remove explicit LC_ALL environment variable setting that only works on some distros 2016-07-19 10:09:39 -05:00
Jon Nelson
0220b67a85 - re-arrange cluster initialization to a set of variables in a dictionary
which control three things:
    1. should we initialize?
    2. if so, how?
    3. what environment variables and user to use
  The approach taken is very similar to what the Apache formula uses, namely:
  a default dictionary which is over-ridden by:
     os-specific defaults,
     then os codename defaults,
     then os finger defaults,
     and finally user-specified pillar values
- this also adds support for grains['osfinger']
2016-07-11 15:29:11 -05:00
Gilles Dartiguelongue
c1ea789690 Switch version specific Debian pkg_dev to "virtual" package
This package depends on the proper version per release.
2016-06-07 12:07:32 +02:00
Gilles Dartiguelongue
749d2f2e12 Drop redundant -D datadir from Arch initdb command 2016-06-07 12:07:32 +02:00
Gilles Dartiguelongue
e0ed6b6e77 Kill create_cluster pillar switch, refs: #100
It is just a variant of init_db. A more correct solution would be to
support configuring a different initdb command while passing values from
the pillar by default like version. This would make it truly generic but
is probably not achievable given current pillar self-referencing
capabilities (ie. none).

Thus, I decided to make it OS family specific since Debian provides its
own tools to manage clusters, etc. Gentoo also has a specific way to
initialize a new cluster which does not fit with commands.initdb so
the current if/elif would be extended when support is added for Gentoo.
2016-06-07 12:00:50 +02:00
Niels Abspoel
d046fe9909 fix client package on archlinux 2016-05-25 23:06:12 +02:00
Niels Abspoel
f1a45675d0 add archlinux defaults 2016-05-25 22:16:59 +02:00
Tim Goodaire
e4bb5bf133 Improvements to initdb stuff 2016-05-24 11:02:30 -04:00
Tim Goodaire
8a4eb569f4 - Added initdb_user configuration, renamed postgres_user and postgres_group to user and group
- Corrected inadvertent changes to postgres_user
- Fixed postgres_user
- Explicitly list the grain that we're filtering by even though it's
  default
- Place *BSD user and runas into osmap instead of hardcoding
2016-05-23 15:02:26 -04:00
Tadas Barzdzius
ca34e0b79e Add postgresql overrides for CentOS 6/7 2016-02-17 12:57:42 +02:00
Roman Inflianskas
c54fcc7646 add Suse default values 2015-11-23 14:49:19 +03:00
Devon Stewart
e2b6eab753 On second thought, initdb command should be defined in defaults.yaml 2015-11-10 11:07:58 -08:00
Devon Stewart
40b3729341 Making initdb command overridable 2015-11-06 00:02:00 -08:00
Mads Sülau Jørgensen
851b62ce10 Fixed libpq-dev naming on debian 2015-07-10 16:35:06 +02:00
Brian Jackson
967fa6504b Switch to new style map.jinja
Move this formula to the new style map.jinja. Still need to sort out RedHat
handling, but it's not any worse than it was before (i.e. horribly broken)
2015-04-22 17:47:02 -05:00