Skip to content
Snippets Groups Projects
Commit 939485ca authored by Andreas Hamacher's avatar Andreas Hamacher
Browse files

reverting heat changes

Former-commit-id: 58c8c193
parent 10c0007d
No related branches found
No related tags found
No related merge requests found
...@@ -85,7 +85,7 @@ build_cluster_cicd: ...@@ -85,7 +85,7 @@ build_cluster_cicd:
- echo "heat stage" - echo "heat stage"
- source ./$NECTAR_ALLOCATION-openrc.sh - source ./$NECTAR_ALLOCATION-openrc.sh
- openstack stack list - openstack stack list
- bash -x ./heat/heatcicdwrapper.sh create_or_update $STACKNAME ${CI_PROJECT_NAME} - bash -x ./heat/heatcicdwrapper.sh create_or_update $STACKNAME
- bash -x ./heat/server_rebuild.sh all - bash -x ./heat/server_rebuild.sh all
after_script: after_script:
- sleep 30 # artifically wait a bit to give the nodes time to boot - sleep 30 # artifically wait a bit to give the nodes time to boot
......
...@@ -117,9 +117,9 @@ resources: ...@@ -117,9 +117,9 @@ resources:
MgmtNodesCentos7: MgmtNodesCentos7:
type: "OS::Heat::ResourceGroup" type: "OS::Heat::ResourceGroup"
properties: properties:
count: 0 count: 2
resource_def: resource_def:
type: { get_param: MgmtNodeCountCentos7 } type: My::Server::MgmtNode
properties: properties:
#avz: { get_param: avz } #avz: { get_param: avz }
image: { get_param: centos_7_image_id } image: { get_param: centos_7_image_id }
...@@ -133,7 +133,7 @@ resources: ...@@ -133,7 +133,7 @@ resources:
MgmtNodesU: MgmtNodesU:
type: "OS::Heat::ResourceGroup" type: "OS::Heat::ResourceGroup"
properties: properties:
count: { get_param: MgmtNodeCountUbuntu } count: 0
resource_def: resource_def:
type: My::Server::MgmtNode type: My::Server::MgmtNode
properties: properties:
...@@ -149,7 +149,7 @@ resources: ...@@ -149,7 +149,7 @@ resources:
LoginNodesC: LoginNodesC:
type: "OS::Heat::ResourceGroup" type: "OS::Heat::ResourceGroup"
properties: properties:
count: { get_param: LoginNodeCountCentos7 } count: 1
resource_def: resource_def:
type: "OS::Nova::Server" type: "OS::Nova::Server"
properties: properties:
...@@ -170,7 +170,7 @@ resources: ...@@ -170,7 +170,7 @@ resources:
LoginNodesU: LoginNodesU:
type: "OS::Heat::ResourceGroup" type: "OS::Heat::ResourceGroup"
properties: properties:
count: { get_param: LoginNodeCountUbuntu } count: 0
resource_def: resource_def:
type: "OS::Nova::Server" type: "OS::Nova::Server"
properties: properties:
...@@ -212,7 +212,7 @@ resources: ...@@ -212,7 +212,7 @@ resources:
ComputeNodesU: ComputeNodesU:
type: "OS::Heat::ResourceGroup" type: "OS::Heat::ResourceGroup"
properties: properties:
count: { get_param: ComputeNodeCountUbutnu } count: 1
resource_def: resource_def:
type: "OS::Nova::Server" type: "OS::Nova::Server"
properties: properties:
...@@ -233,7 +233,7 @@ resources: ...@@ -233,7 +233,7 @@ resources:
ComputeNodesCentos7: ComputeNodesCentos7:
type: "OS::Heat::ResourceGroup" type: "OS::Heat::ResourceGroup"
properties: properties:
count: { get_param: ComputeNodeCountCentos7 } count: 1
resource_def: resource_def:
type: "OS::Nova::Server" type: "OS::Nova::Server"
properties: properties:
......
...@@ -4,12 +4,11 @@ ...@@ -4,12 +4,11 @@
function usage { function usage {
echo $"Usage: $0 {create|update|show|create_or_update,delete_if_exists} STACKNAME CI_PROJECT_NAME" echo $"Usage: $0 {create|update|show|create_or_update,delete_if_exists} STACKNAME"
exit 1 exit 1
} }
STACKNAME=$2 STACKNAME=$2
CI_PROJECT_NAME=${3:-DEFAULTVALUE}
if [[ "$STACKNAME" == "CICD"* ]]; then if [[ "$STACKNAME" == "CICD"* ]]; then
echo "CICD found in stackname. doing nothing" echo "CICD found in stackname. doing nothing"
...@@ -55,7 +54,7 @@ function create_stack { ...@@ -55,7 +54,7 @@ function create_stack {
echo "I will NOT create existing stack maybe use update" echo "I will NOT create existing stack maybe use update"
exit -44 exit -44
fi fi
openstack stack create --wait --template ./heat/gc_HOT.yaml --parameter "project_name=$STACKNAME" -e ./heat/resource_registry.yaml --parameter-file ./heat_parameters_${CI_PROJECT_NAME}.yaml $STACKNAME openstack stack create --wait --template ./heat/gc_HOT.yaml --parameter "project_name=$STACKNAME" -e ./heat/resource_registry.yaml $STACKNAME
createreturn=$? createreturn=$?
if [ $createreturn -ne "0" ] if [ $createreturn -ne "0" ]
then then
...@@ -78,14 +77,14 @@ case "$1" in ...@@ -78,14 +77,14 @@ case "$1" in
echo "I cannot update a stack which does not exist" echo "I cannot update a stack which does not exist"
exit -45 exit -45
fi fi
openstack stack update --wait --template ./heat/gc_HOT.yaml --parameter "project_name=$STACKNAME" -e ./heat/resource_registry.yaml --parameter-file ./heat_parameters_${CI_PROJECT_NAME}.yaml $STACKNAME openstack stack update --wait --template ./heat/gc_HOT.yaml --parameter "project_name=$STACKNAME" -e ./heat/resource_registry.yaml $STACKNAME
ret=$? ret=$?
exit $ret exit $ret
;; ;;
create_or_update) create_or_update)
if check_stack_exists if check_stack_exists
then then
openstack stack update --wait --template ./heat/gc_HOT.yaml --parameter "project_name=$STACKNAME" -e ./heat/resource_registry.yaml --parameter-file ./heat_parameters_${CI_PROJECT_NAME}.yaml $STACKNAME openstack stack update --wait --template ./heat/gc_HOT.yaml --parameter "project_name=$STACKNAME" -e ./heat/resource_registry.yaml $STACKNAME
ret=$? ret=$?
exit $ret exit $ret
fi fi
......
---
heat_template_version: 2013-05-23
parameters:
MgmtNodeCountUbuntu:
type: number
default: 1
MgmtNodeCountCentos7:
type: number
default: 1
LoginNodeCountCentos7:
type: number
default: 1
LoginNodeCountUbuntu:
type: number
default: 1
ComputeNodeCountUbuntu:
type: number
default: 1
ComputeNodeCountCentos7:
type: number
default: 1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment