Skip to content

SQL Server Automation#249

Merged
HarrisonWAffel merged 6 commits intorancher:mainfrom
HarrisonWAffel:sql-automation
May 16, 2025
Merged

SQL Server Automation#249
HarrisonWAffel merged 6 commits intorancher:mainfrom
HarrisonWAffel:sql-automation

Conversation

@HarrisonWAffel
Copy link
Copy Markdown
Contributor

@HarrisonWAffel HarrisonWAffel commented May 14, 2025

This PR adds terraform automation for automatically standing up a VM running MS SQL server 2022 development edition. In order for this automation to be used, an active directory instance must already be provisioned and the appropriate active directory environment variables must be provided to terraform apply. Specific changes include

  • Introduction of several new bootstrap scripts to automatically install and configure the SQL server, adding in testing tables and data as well as automatically creating SQL users associated with existing active directory users / logins
  • Introduction of a new vpc_only_ports field when creating servers in Azure. This field can be used to create NSG allow rules for specific ports that are accessible only by the other machines the VPC and any peer'ed networks
    • These ports will also need to be opened in the Windows file wall as well for proper exposure, which should be done in a bootstrap script
  • Fixes an intermittent issue with joining VMs to a domain, due to the content of the automatically generated user passwords.
  • Updates the default server version used when creating an active directory instance to windows 2022

@HarrisonWAffel HarrisonWAffel marked this pull request as ready for review May 14, 2025 18:05
@HarrisonWAffel HarrisonWAffel requested a review from a team as a code owner May 14, 2025 18:05
@HarrisonWAffel HarrisonWAffel merged commit 4f6c23b into rancher:main May 16, 2025
1 check 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.

2 participants