murano-deployment/ExecutionPlan/SqlServerAlwaysOnAvailabili.../FailoverCluster.yaml

52 lines
2.0 KiB
YAML

# Workflow:
# - Create AD domain
# - Join all the VMs to that domain
# - Prepare nodes (execute on all nodes)
# - Install Failover Cluster prerequisites on all FC nodes
# - Create failover cluster and cluster quorum. Execute on any node.
# - Create new cluster
# - Add members
# - Create new folder that will be shared
# - Share that folder with appropriate permissions
# - Configure quorum mode
#
# Notes:
# - This script runs on one node only (Failover Cluster "master" node)
Scripts:
- ../../WindowsPowerShell/Functions/ImportCoreFunctions.ps1
- ../../WindowsPowerShell/Functions/New-SqlServerSystemAccount.ps1
- ../../WindowsPowerShell/Functions/Start-PowerShellProcess.ps1
- ../../WindowsPowerShell/Functions/Failover-Cluster.ps1
Commands:
- Name: New-FailoverCluster
Arguments:
# [String] $ClusterName - Cluster name
ClusterName: $clusterName
# [String] $ClusterIP - Static IP address that will be assigned to the cluster
StaticAddress: $clusterIP
# [String[]] $ClusterNodes - List of cluster nodes
ClusterNodes: $clusterNodes
# Domain name
DomainName: $domainName
# [String] $domainAdminAccountName - Name of the user who is member of Domain Admins group
UserName: $domainAdminAccountName
# [Password string] $domainAdminAccountPassword - Password for that user
UserPassword: $domainAdminAccountPassword
- Name: New-FailoverClusterSharedFolder
Arguments:
# Share server name - for example, one of domain controllers
ShareServer: $shareServer
# [String] $ClusterName - Cluster name
ClusterName: $clusterName
# Domain name
DomainName: $domainName
# [String] $domainAdminAccountName - Name of the user who is member of Domain Admins group
UserName: $domainAdminAccountName
# [Password string] $domainAdminAccountPassword - Password for that user
UserPassword: $domainAdminAccountPassword
RebootOnCompletion: 0