Skip to content

This is the role to add a replica to an existing Always-On Read-Only Scaleout Group

License

Notifications You must be signed in to change notification settings

cnstechnicalgroup/role-sqlserver-ag-add-replica

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Role: cnstechnicalgroup.sqlserver-ag-add-replica

  • Ansible role that adds a replica to a SQL Server Always On Availability Group with ReadOnly Scale.
  • This role doesn't create the AG, it simply adds a replica to it.

Requirements

  • CentOS7
  • Ubuntu Xenial Xenus

Role Variables

In the current version, you can specify the following variables:

Name Default
sa_password --- system administrator password for SQL Server install .
availability_group --- The name that will be assigned to the Availability Group .
primary_host_name --- The name of the host that is being mirrored (principal) .
secondary_host_name --- The name of the host that is mirroring (replica) .

Dependencies

Depends upon

License

GPLv2

Author Information

Created by CNS Technical Group (https://www.cnstechgroup.com/)

Documentation

Install example (https://github.com/cnstechnicalgroup/ansible-sqlserver/blob/master/documents/sqlserver-ag-add-replica.md)

Examples

---
- hosts: replicas
  sudo: yes
  roles: 
  - sqlserver-ag-add-replica
  gather_facts: yes
  environment:
   SA_PASSWORD: "{{sa_password}}"
   ACCEPT_EULA: "Y"
   MSSQL_PID: "evaluation"

About

This is the role to add a replica to an existing Always-On Read-Only Scaleout Group

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published