generated from linux-system-roles/template
-
Notifications
You must be signed in to change notification settings - Fork 12
feat: add SUSE/openSUSE support #172
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,5 +21,6 @@ galaxy_info: | |
| - el9 | ||
| - el10 | ||
| - fedora | ||
| - leap | ||
| - postgresql | ||
| dependencies: [] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,4 @@ | ||
| --- | ||
|
|
||
| - name: Test PostgreSQL server with ssl support using certificate role | ||
| hosts: all | ||
| tags: | ||
|
|
@@ -10,12 +9,18 @@ | |
| vars: | ||
| postgresql_password: redhat | ||
| block: | ||
| - name: Load postgresql role platform variables | ||
|
Contributor
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. The best way to get vars from the role into the test is to use include_role with - name: Load postgresql role platform variables
include_role:
name: linux-system-roles.postgresql
tasks_from: set_vars.yml
public: trueThis will also get |
||
| include_role: | ||
| name: linux-system-roles.postgresql | ||
| tasks_from: set_vars.yml | ||
| public: true | ||
|
|
||
| - name: Generate certificate using certificate role | ||
| include_role: | ||
| name: fedora.linux_system_roles.certificate | ||
| vars: | ||
| certificate_requests: | ||
| - name: /etc/pki/tls/certs/postgresql_test | ||
| - name: "{{ __postgresql_cert_directory }}/certs/postgresql_test" | ||
| dns: www.example.com | ||
| ca: self-sign | ||
|
|
||
|
|
@@ -24,14 +29,14 @@ | |
| vars: | ||
| __test_clean_instance: false | ||
| __test_check_unix_socket: false | ||
| postgresql_cert_name: /etc/pki/tls/certs/postgresql_test | ||
| postgresql_cert_name: "{{ __postgresql_cert_directory }}/certs/postgresql_test" | ||
| postgresql_ssl_enable: true | ||
| postgresql_pg_hba_conf: | ||
| - type: hostssl | ||
| database: all | ||
| user: all | ||
| auth_method: md5 | ||
| address: '127.0.0.1/32' | ||
| address: "127.0.0.1/32" | ||
|
|
||
| - name: Gather output of psql | ||
| environment: | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # SPDX-License-Identifier: MIT | ||
| --- | ||
| # SUSE-specific variables | ||
| # SUSE does not have postgresql-setup, initdb is called directly | ||
| __postgresql_packages: [postgresql-server] | ||
| __postgresql_has_setup_cmd: false | ||
| __postgresql_cert_directory: /etc/ssl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
then also here - https://github.com/linux-system-roles/.github/blob/main/inventory/host_vars/postgresql.yml - like this - https://github.com/linux-system-roles/.github/blob/main/inventory/host_vars/rhc.yml#L8