-
Notifications
You must be signed in to change notification settings - Fork 282
Fix dev package os dependencies #221
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
Conversation
1e78a4e
to
ddafa8c
Compare
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.
It would be better to set pkg_dev_deps
setting specifically fo RedHat OS family, wouldn't it? And leave the parameter as empty list for all other platforms.
That way we could omit so deep level of if
statements.
postgres/dev.sls
Outdated
@@ -3,12 +3,22 @@ | |||
{% if grains.os not in ('Windows', 'MacOS',) %} | |||
|
|||
{% if postgres.pkg_dev %} | |||
|
|||
{% if grains.os_family == 'RedHat' and postgres.version|int >= 10 %} |
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.
Is that really applicable for PG 10 only? I haven't looked for it myself, so just wondering.
postgres/dev.sls
Outdated
@@ -3,12 +3,22 @@ | |||
{% if grains.os not in ('Windows', 'MacOS',) %} | |||
|
|||
{% if postgres.pkg_dev %} |
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.
Also, by properly setting the scope of pkg_libpq_dev
for certain operating systems, we could avoid other checks within the state.
7ce3707
to
b8f6ffa
Compare
I've tidied up the jinja2 in |
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.
Thank you @noelmcloughlin , this is much better!
@vutny and @noelmcloughlin can we merge |
@aboe76 Yes, go for it! |
woot merged |
This PR resolves #195. Tested on Centos7
A separate
pkg.installed
state is needed becausefromrepo
does not apply to this state.