Skip to content
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

feat: Support mssql-server 2022 preview on RHEL 9 #237

Merged
merged 6 commits into from
Nov 20, 2023

Conversation

spetrosi
Copy link
Collaborator

@spetrosi spetrosi commented Oct 10, 2023

Enhancement: Support mssql-server 2022 preview on RHEL 9

Reason: Microsoft added SQL Server 2022 preview for RHEL 9 at https://packages.microsoft.com/rhel/9/mssql-server-preview/

Result: You can install SQL Server 2022 on RHEL 9. The role adds two variables:

  • mssql_run_selinux_confined to control whether to run SQL Server as a confined application or not.

    • If set to true, the role installs the mssql-server-selinux package.
    • If set to false, the role removes the mssql-server-selinux package.

    Default: true for RHEL 9 managed nodes and false for not RHEL 9 managed nodes

  • mssql_manage_selinux to control whether to configure SELinux with the enforcing or permissive mode based on the value of the mssql_run_selinux_confined variable.

Issue Tracker Tickets (Jira or BZ if any): https://issues.redhat.com/browse/RHELBU-2407

@spetrosi spetrosi requested a review from richm as a code owner October 10, 2023 11:48
@spetrosi
Copy link
Collaborator Author

[citest]

@spetrosi
Copy link
Collaborator Author

[citest]

@richm
Copy link
Contributor

richm commented Oct 10, 2023

lgtm - should the rhel 9.4 tests be passing?

@spetrosi
Copy link
Collaborator Author

lgtm - should the rhel 9.4 tests be passing?

they must, there is some issue in cleanup. Also, Fedora tests are failing, due to /etc/yum.conf not present on Fedora, I'll fix support for Fedora in another PR to keep things clean.

@spetrosi
Copy link
Collaborator Author

[citest]

- Add --noprompt to suppress "This is a preview version" and other
messages when setting up mssql server
- vars/RedHat.yml  for RHEL 9 that only supports SQL Server 2022
- Use tests/tasks/assert_fail_on_unsupported_ver.yml for general version
  assert
@spetrosi
Copy link
Collaborator Author

[citest]

@spetrosi
Copy link
Collaborator Author

Setting up mssql on RHEL 9.3 and 9.4 works for me locally.
CI uses 9.4.0-20231010.15 from 10-Oct-2023 and I use the latest compose RHEL-9.4.0-20231011.18 from 11-Oct-2023
I'll test with what CI uses

@spetrosi
Copy link
Collaborator Author

[citest bad]

@spetrosi
Copy link
Collaborator Author

[citest]

@spetrosi
Copy link
Collaborator Author

[citest]

@spetrosi
Copy link
Collaborator Author

[citest]

* Add README entry
* Add tests_selinux_enforcing.yml to test enforcing
* In other tests, for RHEL 9 set mssql_run_selinux_confined and
mssql_manage_selinux to `true`
* Make the role fail with informative error message when the variables
are used on unsupported systems or used with incorrect SELinux mode
@spetrosi
Copy link
Collaborator Author

[citest]

1 similar comment
@spetrosi
Copy link
Collaborator Author

[citest]

@spetrosi
Copy link
Collaborator Author

[citest]

tasks/main.yml Show resolved Hide resolved
tasks/main.yml Show resolved Hide resolved
tasks/main.yml Outdated Show resolved Hide resolved
@spetrosi
Copy link
Collaborator Author

Let's wait with merging until reviews and comments in email thread are resolved.

@spetrosi
Copy link
Collaborator Author

[citest]

@spetrosi
Copy link
Collaborator Author

[citest bad]

1 similar comment
@spetrosi
Copy link
Collaborator Author

[citest bad]

@spetrosi spetrosi merged commit ea250ef into linux-system-roles:main Nov 20, 2023
22 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants