├── .github ├── FUNDING.yml ├── settings.yml ├── pull_request_template.md ├── workflows │ ├── galaxy.yml │ ├── todo.yml │ ├── requirements2png.yml │ └── molecule.yml └── ISSUE_TEMPLATE │ ├── feature_request.md │ └── bug_report.md ├── .gitignore ├── requirements.txt ├── molecule └── default │ ├── converge.yml │ ├── verify.yml │ ├── prepare.yml │ └── molecule.yml ├── requirements.yml ├── .yamllint ├── .ansible-lint ├── meta └── main.yml ├── .gitlab-ci.yml ├── tox.ini ├── .pre-commit-config.yaml ├── handlers └── main.yml ├── SECURITY.md ├── defaults └── main.yml ├── vars └── main.yml ├── tasks ├── assert.yml └── main.yml ├── CONTRIBUTING.md ├── CODE_OF_CONDUCT.md ├── README.md └── LICENSE /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | --- 2 | github: robertdebock 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .molecule 2 | *.log 3 | *.swp 4 | .tox 5 | .cache 6 | .DS_Store 7 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | ansible-compat == 4.* 2 | molecule == 6.* 3 | molecule-plugins[docker] == 23.* 4 | ansible-lint == 6.* 5 | paramiko == 3.* 6 | -------------------------------------------------------------------------------- /molecule/default/converge.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Converge 3 | hosts: all 4 | become: yes 5 | gather_facts: yes 6 | 7 | roles: 8 | - role: ansible-role-mssql 9 | -------------------------------------------------------------------------------- /molecule/default/verify.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Verify 3 | hosts: all 4 | become: yes 5 | gather_facts: no 6 | 7 | tasks: 8 | - name: Check if connection still works 9 | ansible.builtin.ping: 10 | -------------------------------------------------------------------------------- /requirements.yml: -------------------------------------------------------------------------------- 1 | --- 2 | roles: 3 | - name: robertdebock.bootstrap 4 | - name: robertdebock.ca_certificates 5 | - name: robertdebock.core_dependencies 6 | - name: robertdebock.microsoft_repository_keys 7 | collections: 8 | -------------------------------------------------------------------------------- /.github/settings.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # 3 | # Ansible managed 4 | # 5 | repository: 6 | description: Install and configure mssql on your system. 7 | homepage: https://robertdebock.nl/ 8 | topics: mssql, ansible, molecule, tox, playbook 9 | -------------------------------------------------------------------------------- /.yamllint: -------------------------------------------------------------------------------- 1 | --- 2 | extends: default 3 | 4 | rules: 5 | braces: 6 | max-spaces-inside: 1 7 | level: error 8 | brackets: 9 | max-spaces-inside: 1 10 | level: error 11 | line-length: disable 12 | truthy: disable 13 | 14 | ignore: | 15 | .tox/ 16 | .cache/ 17 | -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Pull request 3 | about: Describe the proposed change 4 | 5 | --- 6 | 7 | **Describe the change** 8 | A clear and concise description of what the pull request is. 9 | 10 | **Testing** 11 | In case a feature was added, how were tests performed? 12 | -------------------------------------------------------------------------------- /molecule/default/prepare.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: Prepare 3 | hosts: all 4 | become: yes 5 | gather_facts: no 6 | 7 | roles: 8 | - role: robertdebock.bootstrap 9 | - role: robertdebock.core_dependencies 10 | - role: robertdebock.ca_certificates 11 | - role: robertdebock.microsoft_repository_keys 12 | -------------------------------------------------------------------------------- /.ansible-lint: -------------------------------------------------------------------------------- 1 | --- 2 | # 3 | # Ansible managed 4 | # 5 | exclude_paths: 6 | - molecule/default/prepare.yml 7 | - molecule/default/converge.yml 8 | - molecule/default/verify.yml 9 | - molecule/default/collections.yml 10 | - .tox 11 | - .cache 12 | - .github 13 | - requirements.yml 14 | 15 | skip_list: 16 | - yaml[truthy] 17 | 18 | enable_list: 19 | - name[prefix] 20 | -------------------------------------------------------------------------------- /.github/workflows/galaxy.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # 3 | # Ansible managed 4 | # 5 | 6 | name: Release to Ansible Galaxy 7 | 8 | on: 9 | release: 10 | types: [created, edited, published, released] 11 | jobs: 12 | release: 13 | runs-on: ubuntu-20.04 14 | steps: 15 | - name: galaxy 16 | uses: robertdebock/galaxy-action@1.2.1 17 | with: 18 | galaxy_api_key: ${{ secrets.galaxy_api_key }} 19 | -------------------------------------------------------------------------------- /.github/workflows/todo.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # 3 | # Ansible managed 4 | # 5 | 6 | name: "TODO 2 Issue" 7 | 8 | on: 9 | push: 10 | 11 | jobs: 12 | build: 13 | runs-on: "ubuntu-20.04" 14 | steps: 15 | - uses: "actions/checkout@master" 16 | - name: "TODO to Issue" 17 | uses: "alstr/todo-to-issue-action@v2.3" 18 | id: "todo" 19 | with: 20 | TOKEN: ${{ secrets.GITHUB_TOKEN }} 21 | -------------------------------------------------------------------------------- /meta/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | galaxy_info: 3 | author: robertdebock 4 | role_name: mssql 5 | description: Install and configure mssql on your system. 6 | license: Apache-2.0 7 | company: none 8 | min_ansible_version: "2.12" 9 | 10 | platforms: 11 | - name: Amazon 12 | versions: 13 | - Candidate 14 | - name: EL 15 | versions: 16 | - "7" 17 | 18 | galaxy_tags: 19 | - mssql 20 | 21 | dependencies: [] 22 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | 5 | --- 6 | 7 | # Proposed feature 8 | 9 | A clear and concise description of what you want to happen. 10 | 11 | ## Rationale 12 | 13 | Why is this feature required? 14 | 15 | ## Additional context 16 | 17 | Add any other context about the feature request here. 18 | 19 | Please consider [sponsoring me](https://github.com/sponsors/robertdebock). 20 | -------------------------------------------------------------------------------- /.gitlab-ci.yml: -------------------------------------------------------------------------------- 1 | --- 2 | image: "robertdebock/github-action-molecule:6.0.1" 3 | 4 | variables: 5 | PY_COLORS: 1 6 | 7 | molecule: 8 | script: 9 | - if [ -f tox.ini ] ; then tox ; fi 10 | - if [ ! -f tox.ini ] ; then molecule test ; fi 11 | rules: 12 | - if: $CI_COMMIT_REF_NAME == "master" 13 | parallel: 14 | matrix: 15 | - image: "amazonlinux" 16 | tag: "latest" 17 | - image: "enterpriselinux" 18 | tag: "7" 19 | 20 | galaxy: 21 | script: 22 | - ansible-galaxy role import --api-key ${GALAXY_API_KEY} robertdebock ${CI_PROJECT_NAME} 23 | rules: 24 | - if: $CI_COMMIT_TAG != null 25 | -------------------------------------------------------------------------------- /molecule/default/molecule.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # 3 | # Ansible managed 4 | # 5 | dependency: 6 | name: galaxy 7 | options: 8 | role-file: requirements.yml 9 | requirements-file: requirements.yml 10 | lint: | 11 | set -e 12 | yamllint . 13 | ansible-lint 14 | driver: 15 | name: docker 16 | platforms: 17 | - name: "mssql-${image:-fedora}-${tag:-latest}${TOX_ENVNAME}" 18 | image: "${namespace:-robertdebock}/${image:-fedora}:${tag:-latest}" 19 | command: /sbin/init 20 | volumes: 21 | - /sys/fs/cgroup:/sys/fs/cgroup:ro 22 | privileged: yes 23 | pre_build_image: yes 24 | provisioner: 25 | name: ansible 26 | verifier: 27 | name: ansible 28 | -------------------------------------------------------------------------------- /tox.ini: -------------------------------------------------------------------------------- 1 | # 2 | # Ansible managed 3 | # 4 | [tox] 5 | minversion = 4.2.4 6 | # Ansible 7 is disabled, causing issues with Fedora: 7 | # https://github.com/ansible/ansible/issues/81199#event-9773321055 8 | # envlist = py3-ansible{7,8,9} 9 | envlist = py3-ansible{8,9} 10 | 11 | skipsdist = true 12 | 13 | [testenv] 14 | deps = 15 | -rrequirements.txt 16 | ansible7: ansible == 7.* 17 | ansible8: ansible == 8.* 18 | ansible9: ansible == 9.* 19 | commands = molecule test 20 | setenv = 21 | TOX_ENVNAME={envname} 22 | PY_COLORS=1 23 | ANSIBLE_FORCE_COLOR=1 24 | ANSIBLE_ROLES_PATH=../ 25 | 26 | passenv = 27 | namespace 28 | image 29 | tag 30 | DOCKER_HOST 31 | -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | repos: 3 | - repo: https://github.com/pre-commit/pre-commit-hooks 4 | rev: v4.4.0 5 | hooks: 6 | - id: trailing-whitespace 7 | - id: end-of-file-fixer 8 | - id: check-added-large-files 9 | 10 | - repo: https://github.com/adrienverge/yamllint 11 | rev: v1.32.0 12 | hooks: 13 | - id: yamllint 14 | args: 15 | - -c=.yamllint 16 | 17 | - repo: https://github.com/robertdebock/pre-commit 18 | rev: v1.5.2 19 | hooks: 20 | - id: ansible_role_find_unused_variable 21 | - id: ansible_role_find_empty_files 22 | - id: ansible_role_find_empty_directories 23 | - id: ansible_role_find_undefined_handlers 24 | - id: ansible_role_find_unquoted_values 25 | - id: ansible_role_find_horizontal_when 26 | -------------------------------------------------------------------------------- /handlers/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # handlers file for mssql 3 | 4 | - name: Stop mssql-server 5 | ansible.builtin.service: 6 | name: mssql-server 7 | state: stopped 8 | 9 | - name: Restart mssql-server 10 | ansible.builtin.service: 11 | name: mssql-server 12 | state: restarted 13 | 14 | - name: Configure mssql-server using mssql-conf 15 | ansible.builtin.command: 16 | cmd: /opt/mssql/bin/mssql-conf -n setup 17 | changed_when: yes 18 | environment: 19 | MSSQL_SA_PASSWORD: "{{ mssql_sa_password }}" 20 | MSSQL_PID: "{{ mssql_pid }}" 21 | ACCEPT_EULA: Y 22 | 23 | - name: Set network.ipaddress 24 | ansible.builtin.command: 25 | cmd: /opt/mssql/bin/mssql-conf set network.ipaddress {{ ansible_default_ipv4.address | default(ansible_all_ipv4_addresses[0]) }} 26 | changed_when: yes 27 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help me improve 4 | 5 | --- 6 | 7 | # Describe the bug 8 | 9 | A clear and concise description of what the bug is. 10 | 11 | ## Playbook 12 | 13 | Please paste the playbook you are using. (Consider `requirements.yml` and 14 | optionally the command you've invoked.) 15 | 16 | ```yaml 17 | --- 18 | YOUR PLAYBOOK HERE 19 | ``` 20 | 21 | ## Output 22 | 23 | Show at least the error, possible related output, maybe just all the output. 24 | 25 | ## Environment 26 | 27 | - Control node OS: [e.g. Debian 9] (`cat /etc/os-release`) 28 | - Control node Ansible version: [e.g. 2.9.1] (`ansible --version`) 29 | - Managed node OS: [e.g. CentOS 7] (`cat /etc/os-release`) 30 | 31 | Please consider [sponsoring me](https://github.com/sponsors/robertdebock). 32 | -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | # [Security Policy](#security-policy) 2 | 3 | This software implements other software, it's not very likely that this software introduces new vulnerabilities. 4 | 5 | ## [Supported Versions](#supported-versions) 6 | 7 | These version of [ansible](https://pypi.org/project/ansible/) are supported: 8 | 9 | | Version | Supported | 10 | | ------- | ------------------ | 11 | | 7 | :white_check_mark: | 12 | | 6 | :white_check_mark: | 13 | | 5 | :white_check_mark: | 14 | 15 | ## [Reporting a Vulnerability](#reporting-a-vulnarability) 16 | 17 | Please [open an issue](https://github.com/robertdebock/ansible-role-mssql/issues) describing the vulnerability. 18 | 19 | Tell them where to go, how often they can expect to get an update on a 20 | reported vulnerability, what to expect if the vulnerability is accepted or 21 | declined, etc. 22 | 23 | Please consider [sponsoring me](https://github.com/sponsors/robertdebock). 24 | -------------------------------------------------------------------------------- /.github/workflows/requirements2png.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # 3 | # Ansible managed 4 | # 5 | 6 | on: 7 | - push 8 | 9 | name: Ansible Graphviz 10 | 11 | jobs: 12 | build: 13 | runs-on: ubuntu-20.04 14 | permissions: 15 | contents: write 16 | steps: 17 | - name: checkout 18 | uses: actions/checkout@v3 19 | with: 20 | path: ${{ github.repository }} 21 | - name: create png 22 | uses: robertdebock/graphviz-action@1.0.7 23 | - name: Commit files 24 | run: | 25 | cd ${{ github.repository }} 26 | git config --local user.email "github-actions[bot]@users.noreply.github.com" 27 | git config --local user.name "github-actions[bot]" 28 | git add requirements.dot requirements.png 29 | git commit -m "Add generated files" 30 | - name: save to png branch 31 | uses: ad-m/github-push-action@master 32 | with: 33 | directory: ${{ github.repository }} 34 | force: true 35 | branch: png 36 | -------------------------------------------------------------------------------- /defaults/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # defaults file for mssql 3 | 4 | # mssql_add_repositories can be used to select if you want the repositories installed by this role. 5 | # See vars/main.yml for the location of the repositories. Can be: yes, true or 1. 6 | mssql_add_repositories: yes 7 | 8 | # What version to use, currently either 2017 or 2019. 9 | # `2017` is the only working version now, `2019` lacks the required 10 | # mssql-server-agent package. 11 | mssql_version: "2017" 12 | 13 | # Select the version of server and server_agent to install. 14 | mssql_server_version: "14.0.3294.2-27" 15 | mssql_server_agent_version: "14.0.3015.40-1" 16 | 17 | # mssql_sa_password contains the password for a system administrator. 18 | # The password must be at least 8 characters long and contain characters from 19 | # three of the following four sets: 20 | # - uppercase letters 21 | # - lowercase letters 22 | # - numbers 23 | # - and symbols 24 | mssql_sa_password: "StR0nGp4ss." 25 | 26 | # mssql_pid refers to the product key to use. Either: 27 | # - Evaluation 28 | # - Developer 29 | # - Express 30 | # - Web 31 | # - Standard 32 | # - Enterprise 33 | # - A product key (Format: #####-#####-#####-#####-#####) 34 | mssql_pid: Evaluation 35 | 36 | # To enable full text search, set this value to yes. 37 | mssql_fts: no 38 | -------------------------------------------------------------------------------- /.github/workflows/molecule.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # 3 | # Ansible managed 4 | # 5 | 6 | name: Ansible Molecule 7 | 8 | on: 9 | push: 10 | branches: 11 | - master 12 | pull_request: 13 | schedule: 14 | - cron: '25 13 13 * *' 15 | 16 | jobs: 17 | lint: 18 | runs-on: ubuntu-20.04 19 | steps: 20 | - name: checkout 21 | uses: actions/checkout@v3 22 | - name: ansible-lint 23 | uses: ansible-community/ansible-lint-action@main 24 | test: 25 | needs: 26 | - lint 27 | runs-on: ubuntu-20.04 28 | strategy: 29 | fail-fast: false 30 | matrix: 31 | config: 32 | - image: "amazonlinux" 33 | tag: "latest" 34 | - image: "enterpriselinux" 35 | tag: "7" 36 | steps: 37 | - name: checkout 38 | uses: actions/checkout@v3 39 | with: 40 | path: "${{ github.repository }}" 41 | # - name: disable apparmor for mysql 42 | # run: sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/ 43 | # - name: parse apparmor for mysql 44 | # run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld 45 | - name: molecule 46 | uses: robertdebock/molecule-action@6.0.1 47 | with: 48 | image: ${{ matrix.config.image }} 49 | tag: ${{ matrix.config.tag }} 50 | -------------------------------------------------------------------------------- /vars/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # vars file for mssql 3 | 4 | mssql_gpgkey: "https://packages.microsoft.com/keys/microsoft.asc" 5 | 6 | mssql_rhel_repositories: 7 | - name: packages-microsoft-com-mssql-server-{{ mssql_version }} 8 | description: Microsoft MSSQL server 9 | baseurl: "https://packages.microsoft.com/rhel/7/mssql-server-{{ mssql_version }}/" 10 | - name: packages-microsoft-com-prod 11 | description: Microsoft tools 12 | baseurl: "https://packages.microsoft.com/rhel/7/prod/" 13 | 14 | mssql_ubuntu_repositories: 15 | - repo: "https://packages.microsoft.com/ubuntu/16.04/prod" 16 | - repo: "https://packages.microsoft.com/ubuntu/16.04/mssql-server-2019" 17 | 18 | _mssql_server_package: 19 | Debian: mssql-server={{ mssql_server_version }} 20 | RedHat: &redhat_service_package mssql-server 21 | Amazon: *redhat_service_package 22 | Suse: mssql-server-{{ mssql_server_version }} 23 | 24 | mssql_server_package: "{{ _mssql_server_package[ansible_os_family] }}" 25 | 26 | _mssql_server_agent_package: 27 | Debian: mssql-server-agent={{ mssql_server_agent_version }} 28 | RedHat: &redhat_server_agent_package mssql-server-agent 29 | Amazon: *redhat_server_agent_package 30 | Suse: mssql-server-agent-{{ mssql_server_agent_version }} 31 | 32 | mssql_server_agent_package: "{{ _mssql_server_agent_package[ansible_os_family] }}" 33 | 34 | mssql_fts_package: mssql-server-fts 35 | -------------------------------------------------------------------------------- /tasks/assert.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | - name: assert | Test mssql_add_repositories 4 | ansible.builtin.assert: 5 | that: 6 | - mssql_add_repositories is defined 7 | - mssql_add_repositories is boolean 8 | quiet: yes 9 | 10 | - name: assert | Test mssql_version 11 | ansible.builtin.assert: 12 | that: 13 | - mssql_version is defined 14 | - mssql_version is string 15 | - mssql_version is not none 16 | quiet: yes 17 | 18 | - name: assert | Test mssql_server_version 19 | ansible.builtin.assert: 20 | that: 21 | - mssql_server_version is defined 22 | - mssql_server_version is string 23 | - mssql_server_version is not none 24 | quiet: yes 25 | 26 | - name: assert | Test mssql_server_agent_version 27 | ansible.builtin.assert: 28 | that: 29 | - mssql_server_agent_version is defined 30 | - mssql_server_agent_version is string 31 | - mssql_server_agent_version is not none 32 | quiet: yes 33 | 34 | - name: assert | Test mssql_sa_password 35 | ansible.builtin.assert: 36 | that: 37 | - mssql_sa_password is defined 38 | - mssql_sa_password is string 39 | - mssql_sa_password is not none 40 | quiet: yes 41 | 42 | - name: assert | Test mssql_pid 43 | ansible.builtin.assert: 44 | that: 45 | - mssql_pid is defined 46 | - mssql_pid is string 47 | - mssql_pid in [ "Evaluation", "Developer", "Express", "Web", "Standard", "Enterprise" ] or 48 | mssql_pid is regex("^.....-.....-.....-.....-......$") 49 | quiet: yes 50 | 51 | - name: assert | Test mssql_fts 52 | ansible.builtin.assert: 53 | that: 54 | - mssql_fts is defined 55 | - mssql_fts is boolean 56 | quiet: yes 57 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # [Please contribute](#please-contribute) 2 | 3 | You can really make a difference by: 4 | 5 | - [Making an issue](https://help.github.com/articles/creating-an-issue/). A well described issue helps a lot. (Have a look at the [known issues](https://github.com/search?q=user%3Arobertdebock+is%3Aissue+state%3Aopen).) 6 | - [Making a pull request](https://services.github.com/on-demand/github-cli/open-pull-request-github) when you see the error in code. 7 | 8 | I'll try to help and take every contribution seriously. 9 | 10 | It's a great opportunity for me to learn how you use the role and also an opportunity to get into the habit of contributing to open source software. 11 | 12 | ## [Step by step](#step-by-step) 13 | 14 | Here is how you can help, a lot of steps are related to GitHub, not specifically my roles. 15 | 16 | ### [1. Make an issue.](#1-make-an-issue) 17 | 18 | When you spot an issue, [create an issue](https://github.com/robertdebock/ansible-role-mssql/issues). 19 | 20 | Making the issue help me and others to find similar problems in the future. 21 | 22 | ### [2. Fork the project.](#2-fork-the-project) 23 | 24 | On the top right side of [the repository on GitHub](https://github.com/robertdebock/ansible-role-mssql), click `fork`. This copies everything to your GitHub namespace. 25 | 26 | ### [3. Make the changes](#3-make-the-changes) 27 | 28 | In you own GitHub namespace, make the required changes. 29 | 30 | I typically do that by cloning the repository (in your namespace) locally: 31 | 32 | ``` 33 | git clone git@github.com:YOURNAMESPACE/ansible-role-mssql.git 34 | ``` 35 | 36 | Now you can start to edit on your laptop. 37 | 38 | ### [4. Optionally: test your changes](#4-optionally-test-your-changes) 39 | 40 | Install [molecule](https://molecule.readthedocs.io/en/stable/) and [Tox](https://tox.readthedocs.io/): 41 | 42 | ``` 43 | pip install molecule tox ansible-lint docker 44 | ``` 45 | 46 | And run `molecule test`. If you want to test a specific distribution, set `image` and optionally `tag`: 47 | 48 | ``` 49 | image=centos tag=7 molecule test 50 | ``` 51 | 52 | Once it start to work, you can test multiple version of Ansible: 53 | 54 | ``` 55 | image=centos tag=7 tox 56 | ``` 57 | 58 | ### [5. Optionally: Regenerate all dynamic content](#5-optionally-regenerate-all-dynamic-content) 59 | 60 | You can use [Ansible Generator](https://github.com/robertdebock/ansible-generator) to regenerate all dynamic content. 61 | 62 | If you don't do it, I'll do it later for you. 63 | 64 | ### [6. Make a pull request](#6-make-a-pull-request) 65 | 66 | [GitHub](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request-from-a-fork) on pull requests. 67 | 68 | In the comment-box, you can [refer to the issue number](https://help.github.com/en/github/writing-on-github/autolinked-references-and-urls) by using #123, where 123 is the issue number. 69 | 70 | ### [7. Wait](#7-wait) 71 | 72 | Now I'll get a message that you've added some code. Thank you, really. 73 | 74 | CI starts to test your changes. You can follow the progress on Travis. 75 | 76 | Please consider [sponsoring me](https://github.com/sponsors/robertdebock). 77 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. 6 | 7 | ## Our Standards 8 | 9 | Examples of behaviour that contributes to creating a positive environment include: 10 | 11 | * Using welcoming and inclusive language 12 | * Being respectful of differing viewpoints and experiences 13 | * Gracefully accepting constructive criticism 14 | * Focusing on what is best for the community 15 | * Showing empathy towards other community members 16 | 17 | Examples of unacceptable behaviour by participants include: 18 | 19 | * The use of sexualized language or imagery and unwelcome sexual attention or advances 20 | * Trolling, insulting/derogatory comments, and personal or political attacks 21 | * Public or private harassment 22 | * Publishing others' private information, such as a physical or electronic address, without explicit permission 23 | * Other conduct which could reasonably be considered inappropriate in a professional setting 24 | 25 | ## Our Responsibilities 26 | 27 | Project maintainers are responsible for clarifying the standards of acceptable behaviour and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behaviour. 28 | 29 | Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviours that they deem inappropriate, threatening, offensive, or harmful. 30 | 31 | ## Scope 32 | 33 | This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. 34 | 35 | ## Enforcement 36 | 37 | Instances of abusive, harassing, or otherwise unacceptable behaviour may be reported by contacting the project team at robert@meinit.nl. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. 38 | 39 | Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. 40 | 41 | ## Attribution 42 | 43 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] 44 | 45 | [homepage]: http://contributor-covenant.org 46 | [version]: http://contributor-covenant.org/version/1/4/ 47 | -------------------------------------------------------------------------------- /tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # tasks file for mssql 3 | 4 | - name: Import assert.yml 5 | ansible.builtin.import_tasks: 6 | file: assert.yml 7 | run_once: yes 8 | delegate_to: localhost 9 | 10 | - name: Add yum repository packages-microsoft-com-mssql-server-2019 11 | ansible.builtin.yum_repository: 12 | name: "{{ item.name }}" 13 | state: present 14 | baseurl: "{{ item.baseurl }}" 15 | description: "{{ item.description }}" 16 | gpgkey: "{{ mssql_gpgkey }}" 17 | gpgcheck: yes 18 | when: 19 | - ansible_distribution in [ "CentOS", "Fedora", "RedHat", "Rocky", "Amazon" ] 20 | - mssql_add_repositories 21 | loop: "{{ mssql_rhel_repositories }}" 22 | loop_control: 23 | label: "{{ item.name }}" 24 | 25 | - name: Add apt repository 26 | ansible.builtin.apt_repository: 27 | repo: deb [arch=amd64,arm64,armhf] "{{ item.repo }}" {{ ansible_distribution_release }} main 28 | state: present 29 | when: 30 | - ansible_os_family == "Debian" 31 | - mssql_add_repositories 32 | loop: "{{ mssql_ubuntu_repositories }}" 33 | 34 | - name: Install software mssql-server (package) 35 | ansible.builtin.package: 36 | name: "{{ mssql_server_package }}" 37 | state: present 38 | environment: 39 | ACCEPT_EULA: Y 40 | when: 41 | - ansible_distribution != "Ubuntu" 42 | notify: 43 | - Stop mssql-server 44 | - Configure mssql-server using mssql-conf 45 | - Set network.ipaddress 46 | 47 | - name: Install software in mssql-server (apt) 48 | ansible.builtin.apt: 49 | name: "{{ mssql_server_package }}" 50 | state: present 51 | allow_unauthenticated: yes 52 | environment: 53 | ACCEPT_EULA: Y 54 | when: 55 | - ansible_distribution == "Ubuntu" 56 | notify: 57 | - Configure mssql-server using mssql-conf 58 | 59 | - name: Flush handlers 60 | ansible.builtin.meta: flush_handlers 61 | 62 | - name: Install software mssql-tools (package) 63 | ansible.builtin.package: 64 | name: mssql-tools 65 | state: present 66 | environment: 67 | ACCEPT_EULA: Y 68 | when: 69 | - ansible_distribution != "Ubuntu" 70 | 71 | - name: Install software in mssql-tools (apt) 72 | ansible.builtin.apt: 73 | name: mssql-tools 74 | state: present 75 | allow_unauthenticated: yes 76 | environment: 77 | ACCEPT_EULA: Y 78 | when: 79 | - ansible_distribution == "Ubuntu" 80 | 81 | - name: Install software mssql-server-agent (package) 82 | ansible.builtin.package: 83 | name: "{{ mssql_server_agent_package }}" 84 | state: present 85 | environment: 86 | ACCEPT_EULA: Y 87 | when: 88 | - ansible_distribution != "Ubuntu" and mssql_version == 2017 89 | notify: 90 | - Restart mssql-server 91 | 92 | - name: Install software in mssql-server-agent (apt) 93 | ansible.builtin.apt: 94 | name: "{{ mssql_server_agent_package }}" 95 | state: present 96 | allow_unauthenticated: yes 97 | environment: 98 | ACCEPT_EULA: Y 99 | when: 100 | - ansible_distribution == "Ubuntu" and mssql_version == 2017 101 | notify: 102 | - Restart mssql-server 103 | 104 | - name: Install mssql-server-fts 105 | ansible.builtin.package: 106 | name: "{{ mssql_fts_package }}" 107 | when: 108 | - mssql_fts 109 | notify: 110 | - Restart mssql-server 111 | 112 | - name: Flush handlers again 113 | ansible.builtin.meta: flush_handlers 114 | 115 | - name: Start and enable mssql-server 116 | ansible.builtin.service: 117 | name: mssql-server 118 | state: started 119 | enabled: yes 120 | environment: 121 | ACCEPT_EULA: Y 122 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # [Ansible role mssql](#mssql) 2 | 3 | > THIS ROLE HAS BEEN ARCHIVED AS OF DEC 2023. 4 | 5 | Install and configure mssql on your system. 6 | 7 | |GitHub|GitLab|Downloads|Version| 8 | |------|------|---------|-------| 9 | |[![github](https://github.com/robertdebock/ansible-role-mssql/workflows/Ansible%20Molecule/badge.svg)](https://github.com/robertdebock/ansible-role-mssql/actions)|[![gitlab](https://gitlab.com/robertdebock-iac/ansible-role-mssql/badges/master/pipeline.svg)](https://gitlab.com/robertdebock-iac/ansible-role-mssql)|[![downloads](https://img.shields.io/ansible/role/d/24545)](https://galaxy.ansible.com/robertdebock/mssql)|[![Version](https://img.shields.io/github/release/robertdebock/ansible-role-mssql.svg)](https://github.com/robertdebock/ansible-role-mssql/releases/)| 10 | 11 | ## [Example Playbook](#example-playbook) 12 | 13 | This example is taken from [`molecule/default/converge.yml`](https://github.com/robertdebock/ansible-role-mssql/blob/master/molecule/default/converge.yml) and is tested on each push, pull request and release. 14 | 15 | ```yaml 16 | --- 17 | - name: Converge 18 | hosts: all 19 | become: yes 20 | gather_facts: yes 21 | 22 | roles: 23 | - role: robertdebock.mssql 24 | ``` 25 | 26 | The machine needs to be prepared. In CI this is done using [`molecule/default/prepare.yml`](https://github.com/robertdebock/ansible-role-mssql/blob/master/molecule/default/prepare.yml): 27 | 28 | ```yaml 29 | --- 30 | - name: Prepare 31 | hosts: all 32 | become: yes 33 | gather_facts: no 34 | 35 | roles: 36 | - role: robertdebock.bootstrap 37 | - role: robertdebock.core_dependencies 38 | - role: robertdebock.ca_certificates 39 | - role: robertdebock.microsoft_repository_keys 40 | ``` 41 | 42 | Also see a [full explanation and example](https://robertdebock.nl/how-to-use-these-roles.html) on how to use these roles. 43 | 44 | ## [Role Variables](#role-variables) 45 | 46 | The default values for the variables are set in [`defaults/main.yml`](https://github.com/robertdebock/ansible-role-mssql/blob/master/defaults/main.yml): 47 | 48 | ```yaml 49 | --- 50 | # defaults file for mssql 51 | 52 | # mssql_add_repositories can be used to select if you want the repositories installed by this role. 53 | # See vars/main.yml for the location of the repositories. Can be: yes, true or 1. 54 | mssql_add_repositories: yes 55 | 56 | # What version to use, currently either 2017 or 2019. 57 | # `2017` is the only working version now, `2019` lacks the required 58 | # mssql-server-agent package. 59 | mssql_version: "2017" 60 | 61 | # Select the version of server and server_agent to install. 62 | mssql_server_version: "14.0.3294.2-27" 63 | mssql_server_agent_version: "14.0.3015.40-1" 64 | 65 | # mssql_sa_password contains the password for a system administrator. 66 | # The password must be at least 8 characters long and contain characters from 67 | # three of the following four sets: 68 | # - uppercase letters 69 | # - lowercase letters 70 | # - numbers 71 | # - and symbols 72 | mssql_sa_password: "StR0nGp4ss." 73 | 74 | # mssql_pid refers to the product key to use. Either: 75 | # - Evaluation 76 | # - Developer 77 | # - Express 78 | # - Web 79 | # - Standard 80 | # - Enterprise 81 | # - A product key (Format: #####-#####-#####-#####-#####) 82 | mssql_pid: Evaluation 83 | 84 | # To enable full text search, set this value to yes. 85 | mssql_fts: no 86 | ``` 87 | 88 | ## [Requirements](#requirements) 89 | 90 | - pip packages listed in [requirements.txt](https://github.com/robertdebock/ansible-role-mssql/blob/master/requirements.txt). 91 | 92 | ## [State of used roles](#state-of-used-roles) 93 | 94 | The following roles are used to prepare a system. You can prepare your system in another way. 95 | 96 | | Requirement | GitHub | GitLab | 97 | |-------------|--------|--------| 98 | |[robertdebock.bootstrap](https://galaxy.ansible.com/robertdebock/bootstrap)|[![Build Status GitHub](https://github.com/robertdebock/ansible-role-bootstrap/workflows/Ansible%20Molecule/badge.svg)](https://github.com/robertdebock/ansible-role-bootstrap/actions)|[![Build Status GitLab](https://gitlab.com/robertdebock-iac/ansible-role-bootstrap/badges/master/pipeline.svg)](https://gitlab.com/robertdebock-iac/ansible-role-bootstrap)| 99 | |[robertdebock.ca_certificates](https://galaxy.ansible.com/robertdebock/ca_certificates)|[![Build Status GitHub](https://github.com/robertdebock/ansible-role-ca_certificates/workflows/Ansible%20Molecule/badge.svg)](https://github.com/robertdebock/ansible-role-ca_certificates/actions)|[![Build Status GitLab](https://gitlab.com/robertdebock-iac/ansible-role-ca_certificates/badges/master/pipeline.svg)](https://gitlab.com/robertdebock-iac/ansible-role-ca_certificates)| 100 | |[robertdebock.core_dependencies](https://galaxy.ansible.com/robertdebock/core_dependencies)|[![Build Status GitHub](https://github.com/robertdebock/ansible-role-core_dependencies/workflows/Ansible%20Molecule/badge.svg)](https://github.com/robertdebock/ansible-role-core_dependencies/actions)|[![Build Status GitLab](https://gitlab.com/robertdebock-iac/ansible-role-core_dependencies/badges/master/pipeline.svg)](https://gitlab.com/robertdebock-iac/ansible-role-core_dependencies)| 101 | |[robertdebock.microsoft_repository_keys](https://galaxy.ansible.com/robertdebock/microsoft_repository_keys)|[![Build Status GitHub](https://github.com/robertdebock/ansible-role-microsoft_repository_keys/workflows/Ansible%20Molecule/badge.svg)](https://github.com/robertdebock/ansible-role-microsoft_repository_keys/actions)|[![Build Status GitLab](https://gitlab.com/robertdebock-iac/ansible-role-microsoft_repository_keys/badges/master/pipeline.svg)](https://gitlab.com/robertdebock-iac/ansible-role-microsoft_repository_keys)| 102 | 103 | ## [Context](#context) 104 | 105 | This role is a part of many compatible roles. Have a look at [the documentation of these roles](https://robertdebock.nl/) for further information. 106 | 107 | Here is an overview of related roles: 108 | ![dependencies](https://raw.githubusercontent.com/robertdebock/ansible-role-mssql/png/requirements.png "Dependencies") 109 | 110 | ## [Compatibility](#compatibility) 111 | 112 | This role has been tested on these [container images](https://hub.docker.com/u/robertdebock): 113 | 114 | |container|tags| 115 | |---------|----| 116 | |[Amazon](https://hub.docker.com/r/robertdebock/amazonlinux)|Candidate| 117 | |[EL](https://hub.docker.com/r/robertdebock/enterpriselinux)|7| 118 | 119 | The minimum version of Ansible required is 2.12, tests have been done to: 120 | 121 | - The previous version. 122 | - The current version. 123 | - The development version. 124 | 125 | If you find issues, please register them in [GitHub](https://github.com/robertdebock/ansible-role-mssql/issues). 126 | 127 | ## [License](#license) 128 | 129 | [Apache-2.0](https://github.com/robertdebock/ansible-role-mssql/blob/master/LICENSE). 130 | 131 | ## [Author Information](#author-information) 132 | 133 | [robertdebock](https://robertdebock.nl/) 134 | 135 | Please consider [sponsoring me](https://github.com/sponsors/robertdebock). 136 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | http://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, 34 | and conversions to other media types. 35 | 36 | "Work" shall mean the work of authorship, whether in Source or 37 | Object form, made available under the License, as indicated by a 38 | copyright notice that is included in or attached to the work 39 | (an example is provided in the Appendix below). 40 | 41 | "Derivative Works" shall mean any work, whether in Source or Object 42 | form, that is based on (or derived from) the Work and for which the 43 | editorial revisions, annotations, elaborations, or other modifications 44 | represent, as a whole, an original work of authorship. For the purposes 45 | of this License, Derivative Works shall not include works that remain 46 | separable from, or merely link (or bind by name) to the interfaces of, 47 | the Work and Derivative Works thereof. 48 | 49 | "Contribution" shall mean any work of authorship, including 50 | the original version of the Work and any modifications or additions 51 | to that Work or Derivative Works thereof, that is intentionally 52 | submitted to Licensor for inclusion in the Work by the copyright owner 53 | or by an individual or Legal Entity authorized to submit on behalf of 54 | the copyright owner. For the purposes of this definition, "submitted" 55 | means any form of electronic, verbal, or written communication sent 56 | to the Licensor or its representatives, including but not limited to 57 | communication on electronic mailing lists, source code control systems, 58 | and issue tracking systems that are managed by, or on behalf of, the 59 | Licensor for the purpose of discussing and improving the Work, but 60 | excluding communication that is conspicuously marked or otherwise 61 | designated in writing by the copyright owner as "Not a Contribution." 62 | 63 | "Contributor" shall mean Licensor and any individual or Legal Entity 64 | on behalf of whom a Contribution has been received by Licensor and 65 | subsequently incorporated within the Work. 66 | 67 | 2. Grant of Copyright License. Subject to the terms and conditions of 68 | this License, each Contributor hereby grants to You a perpetual, 69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 | copyright license to reproduce, prepare Derivative Works of, 71 | publicly display, publicly perform, sublicense, and distribute the 72 | Work and such Derivative Works in Source or Object form. 73 | 74 | 3. Grant of Patent License. Subject to the terms and conditions of 75 | this License, each Contributor hereby grants to You a perpetual, 76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 | (except as stated in this section) patent license to make, have made, 78 | use, offer to sell, sell, import, and otherwise transfer the Work, 79 | where such license applies only to those patent claims licensable 80 | by such Contributor that are necessarily infringed by their 81 | Contribution(s) alone or by combination of their Contribution(s) 82 | with the Work to which such Contribution(s) was submitted. If You 83 | institute patent litigation against any entity (including a 84 | cross-claim or counterclaim in a lawsuit) alleging that the Work 85 | or a Contribution incorporated within the Work constitutes direct 86 | or contributory patent infringement, then any patent licenses 87 | granted to You under this License for that Work shall terminate 88 | as of the date such litigation is filed. 89 | 90 | 4. Redistribution. You may reproduce and distribute copies of the 91 | Work or Derivative Works thereof in any medium, with or without 92 | modifications, and in Source or Object form, provided that You 93 | meet the following conditions: 94 | 95 | (a) You must give any other recipients of the Work or 96 | Derivative Works a copy of this License; and 97 | 98 | (b) You must cause any modified files to carry prominent notices 99 | stating that You changed the files; and 100 | 101 | (c) You must retain, in the Source form of any Derivative Works 102 | that You distribute, all copyright, patent, trademark, and 103 | attribution notices from the Source form of the Work, 104 | excluding those notices that do not pertain to any part of 105 | the Derivative Works; and 106 | 107 | (d) If the Work includes a "NOTICE" text file as part of its 108 | distribution, then any Derivative Works that You distribute must 109 | include a readable copy of the attribution notices contained 110 | within such NOTICE file, excluding those notices that do not 111 | pertain to any part of the Derivative Works, in at least one 112 | of the following places: within a NOTICE text file distributed 113 | as part of the Derivative Works; within the Source form or 114 | documentation, if provided along with the Derivative Works; or, 115 | within a display generated by the Derivative Works, if and 116 | wherever such third-party notices normally appear. The contents 117 | of the NOTICE file are for informational purposes only and 118 | do not modify the License. You may add Your own attribution 119 | notices within Derivative Works that You distribute, alongside 120 | or as an addendum to the NOTICE text from the Work, provided 121 | that such additional attribution notices cannot be construed 122 | as modifying the License. 123 | 124 | You may add Your own copyright statement to Your modifications and 125 | may provide additional or different license terms and conditions 126 | for use, reproduction, or distribution of Your modifications, or 127 | for any such Derivative Works as a whole, provided Your use, 128 | reproduction, and distribution of the Work otherwise complies with 129 | the conditions stated in this License. 130 | 131 | 5. Submission of Contributions. Unless You explicitly state otherwise, 132 | any Contribution intentionally submitted for inclusion in the Work 133 | by You to the Licensor shall be under the terms and conditions of 134 | this License, without any additional terms or conditions. 135 | Notwithstanding the above, nothing herein shall supersede or modify 136 | the terms of any separate license agreement you may have executed 137 | with Licensor regarding such Contributions. 138 | 139 | 6. Trademarks. This License does not grant permission to use the trade 140 | names, trademarks, service marks, or product names of the Licensor, 141 | except as required for reasonable and customary use in describing the 142 | origin of the Work and reproducing the content of the NOTICE file. 143 | 144 | 7. Disclaimer of Warranty. Unless required by applicable law or 145 | agreed to in writing, Licensor provides the Work (and each 146 | Contributor provides its Contributions) on an "AS IS" BASIS, 147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 | implied, including, without limitation, any warranties or conditions 149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 | PARTICULAR PURPOSE. You are solely responsible for determining the 151 | appropriateness of using or redistributing the Work and assume any 152 | risks associated with Your exercise of permissions under this License. 153 | 154 | 8. Limitation of Liability. In no event and under no legal theory, 155 | whether in tort (including negligence), contract, or otherwise, 156 | unless required by applicable law (such as deliberate and grossly 157 | negligent acts) or agreed to in writing, shall any Contributor be 158 | liable to You for damages, including any direct, indirect, special, 159 | incidental, or consequential damages of any character arising as a 160 | result of this License or out of the use or inability to use the 161 | Work (including but not limited to damages for loss of goodwill, 162 | work stoppage, computer failure or malfunction, or any and all 163 | other commercial damages or losses), even if such Contributor 164 | has been advised of the possibility of such damages. 165 | 166 | 9. Accepting Warranty or Additional Liability. While redistributing 167 | the Work or Derivative Works thereof, You may choose to offer, 168 | and charge a fee for, acceptance of support, warranty, indemnity, 169 | or other liability obligations and/or rights consistent with this 170 | License. However, in accepting such obligations, You may act only 171 | on Your own behalf and on Your sole responsibility, not on behalf 172 | of any other Contributor, and only if You agree to indemnify, 173 | defend, and hold each Contributor harmless for any liability 174 | incurred by, or claims asserted against, such Contributor by reason 175 | of your accepting any such warranty or additional liability. 176 | 177 | END OF TERMS AND CONDITIONS 178 | 179 | APPENDIX: How to apply the Apache License to your work. 180 | 181 | To apply the Apache License to your work, attach the following 182 | boilerplate notice, with the fields enclosed by brackets "[]" 183 | replaced with your own identifying information. (Don't include 184 | the brackets!) The text should be enclosed in the appropriate 185 | comment syntax for the file format. We also recommend that a 186 | file or class name and description of purpose be included on the 187 | same "printed page" as the copyright notice for easier 188 | identification within third-party archives. 189 | 190 | Copyright 2023 Robert de Bock (robert@meinit.nl) 191 | 192 | Licensed under the Apache License, Version 2.0 (the "License"); 193 | you may not use this file except in compliance with the License. 194 | You may obtain a copy of the License at 195 | 196 | http://www.apache.org/licenses/LICENSE-2.0 197 | 198 | Unless required by applicable law or agreed to in writing, software 199 | distributed under the License is distributed on an "AS IS" BASIS, 200 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 201 | See the License for the specific language governing permissions and 202 | limitations under the License. 203 | --------------------------------------------------------------------------------