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:
parent
b7abda5f54
commit
d87bc2309f
@ -9,6 +9,18 @@
|
|||||||
"IpProtocol": "tcp",
|
"IpProtocol": "tcp",
|
||||||
"FromPort": "3389",
|
"FromPort": "3389",
|
||||||
"CidrIp": "0.0.0.0/0"
|
"CidrIp": "0.0.0.0/0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ToPort": "5985",
|
||||||
|
"IpProtocol": "tcp",
|
||||||
|
"FromPort": "5985",
|
||||||
|
"CidrIp": "$cidr"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ToPort": "5986",
|
||||||
|
"IpProtocol": "tcp",
|
||||||
|
"FromPort": "5986",
|
||||||
|
"CidrIp": "$cidr"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -35,13 +35,13 @@ heat:
|
|||||||
|
|
||||||
agent:
|
agent:
|
||||||
- SetPassword.template
|
- SetPassword.template
|
||||||
- SqlServerCluster/FailoverClusterPrerequisites.template
|
- FailoverClusterPrerequisites.template
|
||||||
- SqlServerCluster/FailoverCluster.template
|
- FailoverCluster.template
|
||||||
- SqlServerCluster/ConfigureEnvironmentForAOAG.template
|
- ConfigureEnvironmentForAOAG.template
|
||||||
- SqlServerCluster/InstallSqlServerForAOAG.template
|
- InstallSqlServerForAOAG.template
|
||||||
- SqlServerCluster/InitializeAlwaysOn.template
|
- InitializeAlwaysOn.template
|
||||||
- SqlServerCluster/InitializeAOAGPrimaryReplica.template
|
- InitializeAOAGPrimaryReplica.template
|
||||||
- SqlServerCluster/InitializeAOAGSecondaryReplica.template
|
- InitializeAOAGSecondaryReplica.template
|
||||||
|
|
||||||
|
|
||||||
scripts:
|
scripts:
|
||||||
|
@ -128,7 +128,7 @@
|
|||||||
|
|
||||||
<rule match="$.services[?(@.type == 'msSqlClusterServer')].units[?(@.state.domain and not @.state.failoverClusterPrerequisitesInstalled)]"
|
<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">
|
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">
|
<parameter name="unit">
|
||||||
<select path="id"/>
|
<select path="id"/>
|
||||||
</parameter>
|
</parameter>
|
||||||
@ -167,7 +167,7 @@
|
|||||||
|
|
||||||
<rule match="$.services[?(@.type == 'msSqlClusterServer' and not @.state.failoverClusterCreated)].units[?(@.state.failoverClusterPrerequisitesInstalled)]" limit="1"
|
<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">
|
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">
|
<parameter name="unit">
|
||||||
<select path="id"/>
|
<select path="id"/>
|
||||||
</parameter>
|
</parameter>
|
||||||
@ -218,7 +218,7 @@
|
|||||||
|
|
||||||
<rule match="$.services[?(@.type == 'msSqlClusterServer' and @.state.failoverClusterCreated and not @.state.agEnvironmentConfigured)].units[*]"
|
<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">
|
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">
|
<parameter name="unit">
|
||||||
<select path="id"/>
|
<select path="id"/>
|
||||||
</parameter>
|
</parameter>
|
||||||
@ -251,7 +251,7 @@
|
|||||||
|
|
||||||
<rule match="$.services[?(@.type == 'msSqlClusterServer' and @.state.agEnvironmentConfigured)].units[?(@.state.failoverClusterPrerequisitesInstalled and not @.state.sqlServerInstalled)]"
|
<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">
|
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">
|
<parameter name="unit">
|
||||||
<select path="id"/>
|
<select path="id"/>
|
||||||
</parameter>
|
</parameter>
|
||||||
@ -296,7 +296,7 @@
|
|||||||
|
|
||||||
<rule match="$.services[?(@.type == 'msSqlClusterServer')].units[?(@.state.sqlServerInstalled and not @.state.alwaysOnInitialized)]"
|
<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">
|
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">
|
<parameter name="unit">
|
||||||
<select path="id"/>
|
<select path="id"/>
|
||||||
</parameter>
|
</parameter>
|
||||||
@ -341,7 +341,7 @@
|
|||||||
|
|
||||||
<rule match="$.services[?(@.type == 'msSqlClusterServer')].units[?(@.state.alwaysOnInitialized and not @.state.primaryReplicaInitialized)]"
|
<rule match="$.services[?(@.type == 'msSqlClusterServer')].units[?(@.state.alwaysOnInitialized and not @.state.primaryReplicaInitialized)]"
|
||||||
desc="All units of SQL Server Cluster services that has AlwaysOn initialized">
|
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">
|
<parameter name="unit">
|
||||||
<select path="id"/>
|
<select path="id"/>
|
||||||
</parameter>
|
</parameter>
|
||||||
@ -401,7 +401,7 @@
|
|||||||
|
|
||||||
<rule match="$.services[?(@.type == 'msSqlClusterServer')].units[?(@.state.primaryReplicaInitialized and not @.state.secondaryReplicaInitialized)]"
|
<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">
|
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">
|
<parameter name="unit">
|
||||||
<select path="id"/>
|
<select path="id"/>
|
||||||
</parameter>
|
</parameter>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user