SQL Server Cluster workflow / templates updated

Change-Id: I8993bd36929e4ae79ac1ea90f0fcaf844de50ed0
This commit is contained in:
Stan Lagun 2013-08-05 21:13:49 +04:00
parent 12d9f1cd0d
commit 58ba932355
8 changed files with 121 additions and 36 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -125,15 +125,6 @@
<mapping name="clusterIP">
<select path="::clusterIP"/>
</mapping>
<mapping name="sqlServiceAccountName">
<select path="::sqlServiceUserName"/>
</mapping>
<mapping name="sqlServiceAccountPassword">
<select path="::sqlServicePassword"/>
</mapping>
<mapping name="domainName">
<select path="state.domain"/>
</mapping>
</map>
</parameter>
<success>
@ -172,6 +163,9 @@
<mapping name="domainName">
<select path="state.domain"/>
</mapping>
<mapping name="primaryNode">
<select-single path=":$[?(@.isMaster)].state.hostname"/>
</mapping>
</map>
</parameter>
<success>
@ -216,8 +210,46 @@
</send-command>
</rule>
<rule match="$.services[?(@.type == 'msSqlClusterServer')].units[?(@.state.sqlServerInstalled and not @.state.primaryReplicaInitialized)]"
<rule match="$.services[?(@.type == 'msSqlClusterServer')].units[?(@.state.sqlServerInstalled and not @.state.alwaysOnInitialized)]"
desc="All units of SQL Server Cluster services that has SQL Server installed">
<send-command template="SqlServerCluster/InitializeAlwaysOn">
<parameter name="unit">
<select path="id"/>
</parameter>
<parameter name="service">
<select path="::id"/>
</parameter>
<parameter name="mappings">
<map>
<mapping name="domainAdminAccountName">
<select path="::domainAdminUserName"/>
</mapping>
<mapping name="domainAdminAccountPassword">
<select path="::domainAdminPassword"/>
</mapping>
<mapping name="nodeList">
<select-all path=":$[*].state.hostname"/>
</mapping>
<mapping name="primaryNode">
<select-single path=":$[?(@.isMaster)].state.hostname"/>
</mapping>
<mapping name="domainName">
<select path="state.domain"/>
</mapping>
</map>
</parameter>
<success>
<set path="state.alwaysOnInitialized"><true/></set>
<report entity="unit">
<parameter name="id"><select path="id"/></parameter>
<parameter name="text">AlwaysOn AG initialized for <select path="state.hostname"/> (<select path="name"/>)</parameter>
</report>
</success>
</send-command>
</rule>
<rule match="$.services[?(@.type == 'msSqlClusterServer')].units[?(@.state.alwaysOnInitialized and not @.state.primaryReplicaInitialized)]"
desc="All units of SQL Server Cluster services that has AlwaysOn initialized">
<send-command template="SqlServerCluster/InitializeAOAGPrimaryReplica">
<parameter name="unit">
<select path="id"/>
@ -227,6 +259,12 @@
</parameter>
<parameter name="mappings">
<map>
<mapping name="domainAdminAccountName">
<select path="::domainAdminUserName"/>
</mapping>
<mapping name="domainAdminAccountPassword">
<select path="::domainAdminPassword"/>
</mapping>
<mapping name="groupName">
<select path="::agGroupName"/>
</mapping>
@ -236,6 +274,9 @@
<mapping name="primaryNode">
<select-single path=":$[?(@.isMaster)].state.hostname"/>
</mapping>
<mapping name="domainName">
<select path="state.domain"/>
</mapping>
<mapping name="syncModeNodeList">
<select-all path=":$[?(@.isSync)].state.hostname"/>
</mapping>
@ -271,12 +312,21 @@
</parameter>
<parameter name="mappings">
<map>
<mapping name="domainAdminAccountName">
<select path="::domainAdminUserName"/>
</mapping>
<mapping name="domainAdminAccountPassword">
<select path="::domainAdminPassword"/>
</mapping>
<mapping name="nodeList">
<select-all path=":$[*].state.hostname"/>
</mapping>
<mapping name="primaryNode">
<select-single path=":$[?(@.isMaster)].state.hostname"/>
</mapping>
<mapping name="domainName">
<select path="state.domain"/>
</mapping>
</map>
</parameter>
<success>