{"id":17601251,"url":"https://github.com/sam-martin/test_kitchen_mssql_helpers","last_synced_at":"2025-03-29T21:41:35.515Z","repository":{"id":80868824,"uuid":"51673307","full_name":"Sam-Martin/test_kitchen_mssql_helpers","owner":"Sam-Martin","description":"Facilitates the setup of a multi-node test setup using MSSQL in Test Kitchen","archived":false,"fork":false,"pushed_at":"2016-03-20T16:17:13.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-04T22:25:33.126Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Sam-Martin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-02-14T00:56:04.000Z","updated_at":"2017-11-20T21:09:08.000Z","dependencies_parsed_at":"2023-04-15T13:31:37.082Z","dependency_job_id":null,"html_url":"https://github.com/Sam-Martin/test_kitchen_mssql_helpers","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sam-Martin%2Ftest_kitchen_mssql_helpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sam-Martin%2Ftest_kitchen_mssql_helpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sam-Martin%2Ftest_kitchen_mssql_helpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sam-Martin%2Ftest_kitchen_mssql_helpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sam-Martin","download_url":"https://codeload.github.com/Sam-Martin/test_kitchen_mssql_helpers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246249222,"owners_count":20747167,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-22T12:09:17.368Z","updated_at":"2025-03-29T21:41:35.495Z","avatar_url":"https://github.com/Sam-Martin.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# test_kitchen_mssql_helpers [![Build Status](https://travis-ci.org/Sam-Martin/test_kitchen_mssql_helpers.svg?branch=master)](https://travis-ci.org/Sam-Martin/test_kitchen_mssql_helpers)\nCookbook which performs a very basic installation of MSSQL Server 2014 Express using the [BoxStarter Cookbook](https://github.com/mwrock/boxstarter-cookbook) and [MsSqlServer2014Express](https://chocolatey.org/packages/MsSqlServer2014Express) Chocolatey package.  \nThis cookbook is useful as an example of how to install and configure MSSQL in a test-kitchen compatible manner and is also used by the [test_kitchen_mssql_template](https://github.com/Sam-Martin/test_kitchen_mssql_template).\n\n# Attributes\n* `['test_kitchen_mssql_helpers']['chef_client_user_password']` (Must contain the password of the user executing chef-client)  \n* `['test_kitchen_mssql_helpers']['sa_password']` (Declares the SA password for MSSQL)\n\n# Usage\nCopy the files from this repository into your cookbook's repo (merging files as necessary), then use the platform named 'windows-2012r2' in .kitchen.yml as your test bed. Replace the existing tests in default with the tests you wish to run and add a run_list that specifies your cookbook or other kitchen provisioners as you desire!\n\n## Connectivity\nYou will presumably need to populate the MSSQL server's IP in your cookbook/script somewhere. You can do this in Chef like so\n```\nsearch_query = 'run_list:*test_kitchen_mssql_helpers??server*'\nsql_server_ip = search('node', search_query)[0]['ipaddress']\n```\n\nOr in any other scripting scenario by parsing the JSON file you can find in `%temp%\\kitchen\\nodes\\default-windows-mssqlserver.json`.\n\nMSSQL is configured to listen to all IPs (i.e. NAT and Private) on TCP 1433.\n\n## Authentication\nThe default username and password are `sa` and `Vagrant!`, you can change the default password using the attributes in the [test_kitchen_mssql_helpers cookbook](https://github.com/Sam-Martin/test_kitchen_mssql_template)\n\n# Dependencies\n## BoxStarter\nMatt Wrock's [Boxstarter.org](http://boxstarter.org) is used by this cookbook to automatically create a scheduled task to install the [MsSqlServer2014Express](https://chocolatey.org/packages/MsSqlServer2014Express) Chocolatey package.  \nWithout BoxStarter (i.e. installing the package in the context of a WinRM session) the MSSQL package [would](http://www.hurryupandwait.io/blog/safely-running-windows-automation-operations-that-typically-fail-over-winrm-or-powershell-remoting\n) [not](https://learn.chef.io/manage-a-web-app/windows/configure-sql-server/) [install](http://stackoverflow.com/questions/26523301/powershell-remoting-executing-sql-server-installation-msi-fails).\n## Chocolatey\n[Chocolatey.org](https://chocolatey.org/) is a package management system for Windows which this cookbook uses to install MSSQL 2014.\n\n# Author\n\nAuthor:: Sam Martin (\u003csamjackmartin@gmail.com\u003e)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsam-martin%2Ftest_kitchen_mssql_helpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsam-martin%2Ftest_kitchen_mssql_helpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsam-martin%2Ftest_kitchen_mssql_helpers/lists"}