From d87bc2309fcc4cc71aaa3d2512e9bcdc6f39b8c0 Mon Sep 17 00:00:00 2001 From: Timur Sufiev Date: Thu, 12 Dec 2013 18:58:51 +0400 Subject: [PATCH] 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 --- .../ConfigureEnvironmentForAOAG.template | 0 .../FailoverCluster.template | 0 .../FailoverClusterPrerequisites.template | 0 .../InitializeAOAGPrimaryReplica.template | 0 .../InitializeAOAGSecondaryReplica.template | 0 .../InitializeAlwaysOn.template | 0 .../InstallSqlServerForAOAG.template | 0 .../heat_templates/WindowsSecurity.template | 12 ++++++++++++ .../Services/msSqlClusterServer-manifest.yaml | 14 +++++++------- .../Services/workflows/MsSqlCluster.xml | 14 +++++++------- 10 files changed, 26 insertions(+), 14 deletions(-) rename muranorepository/Services/agent_templates/{SqlServerCluster => }/ConfigureEnvironmentForAOAG.template (100%) rename muranorepository/Services/agent_templates/{SqlServerCluster => }/FailoverCluster.template (100%) rename muranorepository/Services/agent_templates/{SqlServerCluster => }/FailoverClusterPrerequisites.template (100%) rename muranorepository/Services/agent_templates/{SqlServerCluster => }/InitializeAOAGPrimaryReplica.template (100%) rename muranorepository/Services/agent_templates/{SqlServerCluster => }/InitializeAOAGSecondaryReplica.template (100%) rename muranorepository/Services/agent_templates/{SqlServerCluster => }/InitializeAlwaysOn.template (100%) rename muranorepository/Services/agent_templates/{SqlServerCluster => }/InstallSqlServerForAOAG.template (100%) diff --git a/muranorepository/Services/agent_templates/SqlServerCluster/ConfigureEnvironmentForAOAG.template b/muranorepository/Services/agent_templates/ConfigureEnvironmentForAOAG.template similarity index 100% rename from muranorepository/Services/agent_templates/SqlServerCluster/ConfigureEnvironmentForAOAG.template rename to muranorepository/Services/agent_templates/ConfigureEnvironmentForAOAG.template diff --git a/muranorepository/Services/agent_templates/SqlServerCluster/FailoverCluster.template b/muranorepository/Services/agent_templates/FailoverCluster.template similarity index 100% rename from muranorepository/Services/agent_templates/SqlServerCluster/FailoverCluster.template rename to muranorepository/Services/agent_templates/FailoverCluster.template diff --git a/muranorepository/Services/agent_templates/SqlServerCluster/FailoverClusterPrerequisites.template b/muranorepository/Services/agent_templates/FailoverClusterPrerequisites.template similarity index 100% rename from muranorepository/Services/agent_templates/SqlServerCluster/FailoverClusterPrerequisites.template rename to muranorepository/Services/agent_templates/FailoverClusterPrerequisites.template diff --git a/muranorepository/Services/agent_templates/SqlServerCluster/InitializeAOAGPrimaryReplica.template b/muranorepository/Services/agent_templates/InitializeAOAGPrimaryReplica.template similarity index 100% rename from muranorepository/Services/agent_templates/SqlServerCluster/InitializeAOAGPrimaryReplica.template rename to muranorepository/Services/agent_templates/InitializeAOAGPrimaryReplica.template diff --git a/muranorepository/Services/agent_templates/SqlServerCluster/InitializeAOAGSecondaryReplica.template b/muranorepository/Services/agent_templates/InitializeAOAGSecondaryReplica.template similarity index 100% rename from muranorepository/Services/agent_templates/SqlServerCluster/InitializeAOAGSecondaryReplica.template rename to muranorepository/Services/agent_templates/InitializeAOAGSecondaryReplica.template diff --git a/muranorepository/Services/agent_templates/SqlServerCluster/InitializeAlwaysOn.template b/muranorepository/Services/agent_templates/InitializeAlwaysOn.template similarity index 100% rename from muranorepository/Services/agent_templates/SqlServerCluster/InitializeAlwaysOn.template rename to muranorepository/Services/agent_templates/InitializeAlwaysOn.template diff --git a/muranorepository/Services/agent_templates/SqlServerCluster/InstallSqlServerForAOAG.template b/muranorepository/Services/agent_templates/InstallSqlServerForAOAG.template similarity index 100% rename from muranorepository/Services/agent_templates/SqlServerCluster/InstallSqlServerForAOAG.template rename to muranorepository/Services/agent_templates/InstallSqlServerForAOAG.template diff --git a/muranorepository/Services/heat_templates/WindowsSecurity.template b/muranorepository/Services/heat_templates/WindowsSecurity.template index a8d4c5c..00f1055 100644 --- a/muranorepository/Services/heat_templates/WindowsSecurity.template +++ b/muranorepository/Services/heat_templates/WindowsSecurity.template @@ -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" } ] } diff --git a/muranorepository/Services/msSqlClusterServer-manifest.yaml b/muranorepository/Services/msSqlClusterServer-manifest.yaml index 41547f6..62fb4be 100644 --- a/muranorepository/Services/msSqlClusterServer-manifest.yaml +++ b/muranorepository/Services/msSqlClusterServer-manifest.yaml @@ -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: diff --git a/muranorepository/Services/workflows/MsSqlCluster.xml b/muranorepository/Services/workflows/MsSqlCluster.xml index 2e3b86b..bdd52f3 100644 --- a/muranorepository/Services/workflows/MsSqlCluster.xml +++ b/muranorepository/Services/workflows/MsSqlCluster.xml @@ -128,7 +128,7 @@ - + @@ -218,7 +218,7 @@ - + @@ -296,7 +296,7 @@ - + @@ -401,7 +401,7 @@ - +