-
Notifications
You must be signed in to change notification settings - Fork 283
Makes postgres-reload-modules conditional #216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
984cf4e
4dd99d5
ed74e86
a9498ad
69fc654
5115e45
f6f4998
d2408a4
32f45e9
41033a2
42580d7
5c77a33
ef87358
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,6 +57,8 @@ postgres: | |
|
||
bake_image: False | ||
|
||
manage_force_reload_modules: True | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. New config setting defaults to |
||
|
||
fromrepo: | ||
|
||
users: {} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
{%- from tpldir + "/map.jinja" import postgres with context -%} | ||
{%- from tpldir + "/macros.jinja" import format_state with context -%} | ||
|
||
{%- if salt['postgres.user_create']|default(none) is not callable %} | ||
{%- set needs_client_binaries = salt['postgres.user_create']|default(none) is not callable -%} | ||
|
||
{%- if needs_client_binaries %} | ||
|
||
# Salt states for managing PostgreSQL is not available, | ||
# need to provision client binaries first | ||
|
@@ -15,12 +17,16 @@ include: | |
|
||
{%- endif %} | ||
|
||
{%- if needs_client_binaries or postgres.manage_force_reload_modules %} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was getting tired of NOTE: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm totally fine with setting |
||
|
||
# Ensure that Salt is able to use postgres modules | ||
|
||
postgres-reload-modules: | ||
test.succeed_with_changes: | ||
- reload_modules: True | ||
|
||
{%- endif %} | ||
|
||
# User states | ||
|
||
{%- for name, user in postgres.users|dictsort() %} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adds codename for Ubuntu 18.04 "bionic". This was all I needed to change to get Postgres 10 working for Ubuntu 18.04.