Flatten paths to MS SQL Cluster agent templates.

This allows to avoid many difficulties with scripts referencing.
Though this is an ad-hoc fix, it allows to avoid fixing paths
calculation in conductor which might produce other bugs.

Also, open ports for WinRM 2.0 - another thing to make MS SQL Cluster
Server deploy.

Change-Id: I1f2f7ea9532a91b115fd7c1756b346443835e3a8
This commit is contained in:
Timur Sufiev 2013-12-12 18:58:51 +04:00
parent b7abda5f54
commit d87bc2309f
10 changed files with 26 additions and 14 deletions

View File

@ -9,6 +9,18 @@
"IpProtocol": "tcp",
"FromPort": "3389",
"CidrIp": "0.0.0.0/0"
},
{
"ToPort": "5985",
"IpProtocol": "tcp",
"FromPort": "5985",
"CidrIp": "$cidr"
},
{
"ToPort": "5986",
"IpProtocol": "tcp",
"FromPort": "5986",
"CidrIp": "$cidr"
}
]
}

View File

@ -35,13 +35,13 @@ heat:
agent:
- SetPassword.template
- SqlServerCluster/FailoverClusterPrerequisites.template
- SqlServerCluster/FailoverCluster.template
- SqlServerCluster/ConfigureEnvironmentForAOAG.template
- SqlServerCluster/InstallSqlServerForAOAG.template
- SqlServerCluster/InitializeAlwaysOn.template
- SqlServerCluster/InitializeAOAGPrimaryReplica.template
- SqlServerCluster/InitializeAOAGSecondaryReplica.template
- FailoverClusterPrerequisites.template
- FailoverCluster.template
- ConfigureEnvironmentForAOAG.template
- InstallSqlServerForAOAG.template
- InitializeAlwaysOn.template
- InitializeAOAGPrimaryReplica.template
- InitializeAOAGSecondaryReplica.template
scripts:

View File

@ -128,7 +128,7 @@
<rule match="$.services[?(@.type == 'msSqlClusterServer')].units[?(@.state.domain and not @.state.failoverClusterPrerequisitesInstalled)]"
desc="Units of SQL Server Cluster services that are already joined AD domain">
<send-command template="SqlServerCluster/FailoverClusterPrerequisites" error="exception">
<send-command template="FailoverClusterPrerequisites" error="exception">
<parameter name="unit">
<select path="id"/>
</parameter>
@ -167,7 +167,7 @@
<rule match="$.services[?(@.type == 'msSqlClusterServer' and not @.state.failoverClusterCreated)].units[?(@.state.failoverClusterPrerequisitesInstalled)]" limit="1"
desc="First unit of SQL Server Cluster services that is already has failover cluster prerequisites installed">
<send-command template="SqlServerCluster/FailoverCluster" error="exception">
<send-command template="FailoverCluster" error="exception">
<parameter name="unit">
<select path="id"/>
</parameter>
@ -218,7 +218,7 @@
<rule match="$.services[?(@.type == 'msSqlClusterServer' and @.state.failoverClusterCreated and not @.state.agEnvironmentConfigured)].units[*]"
desc="First unit of SQL Server Cluster services that is already has failover cluster created">
<send-command template="SqlServerCluster/ConfigureEnvironmentForAOAG" error="exception">
<send-command template="ConfigureEnvironmentForAOAG" error="exception">
<parameter name="unit">
<select path="id"/>
</parameter>
@ -251,7 +251,7 @@
<rule match="$.services[?(@.type == 'msSqlClusterServer' and @.state.agEnvironmentConfigured)].units[?(@.state.failoverClusterPrerequisitesInstalled and not @.state.sqlServerInstalled)]"
desc="All units of SQL Server Cluster services that is already has environment configured">
<send-command template="SqlServerCluster/InstallSqlServerForAOAG" error="exception">
<send-command template="InstallSqlServerForAOAG" error="exception">
<parameter name="unit">
<select path="id"/>
</parameter>
@ -296,7 +296,7 @@
<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" error="exception">
<send-command template="InitializeAlwaysOn" error="exception">
<parameter name="unit">
<select path="id"/>
</parameter>
@ -341,7 +341,7 @@
<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" error="exception">
<send-command template="InitializeAOAGPrimaryReplica" error="exception">
<parameter name="unit">
<select path="id"/>
</parameter>
@ -401,7 +401,7 @@
<rule match="$.services[?(@.type == 'msSqlClusterServer')].units[?(@.state.primaryReplicaInitialized and not @.state.secondaryReplicaInitialized)]"
desc="All units of SQL Server Cluster services that has primary replica initialized">
<send-command template="SqlServerCluster/InitializeAOAGSecondaryReplica" error="exception">
<send-command template="InitializeAOAGSecondaryReplica" error="exception">
<parameter name="unit">
<select path="id"/>
</parameter>