From 0231000ccc8c705ae442944392a80a0981edb7f8 Mon Sep 17 00:00:00 2001
From: handreas <andreas.hamacher@monash.edu>
Date: Mon, 30 Mar 2020 03:20:37 +0000
Subject: [PATCH] adding rhel7 node

Former-commit-id: 452ffdb64b35a05ca111e883a6238592e12f962b
---
 CICD/heat/gc_HOT.yaml | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/CICD/heat/gc_HOT.yaml b/CICD/heat/gc_HOT.yaml
index e5be4b8d..8a362757 100644
--- a/CICD/heat/gc_HOT.yaml
+++ b/CICD/heat/gc_HOT.yaml
@@ -14,6 +14,11 @@ parameters:
     label: Image ID
     description: Centos Image
     default: c47c3acb-9657-4243-9e14-e6c676157e3b #with NetworkManager
+  rhel_7_image_id:
+    type: string
+    label: Image ID
+    description: Rhel Image
+    default: 19993115-ad60-4979-bdfb-67ae7a77e40c
   ssh_key:
     type: string
     default: gc_key
@@ -252,6 +257,27 @@ resources:
       networks:
        - network: { get_param: NetID }
 
+  ComputeNodeRHEL:
+   type: "OS::Heat::ResourceGroup"
+   properties:
+    count: 1
+    resource_def:
+     type: "OS::Nova::Server"
+     properties:
+      #availability_zone: { get_param: avz }
+      flavor: m3.xsmall
+      image: { get_param: rhel_77_image_id }
+      key_name: { get_param: ssh_key }
+      name:
+       list_join: [ '-', [ { get_param: "OS::stack_name" }, 'computerhel%index%' ]]
+      security_groups: [ default, { get_resource: SSHMonashSecGroup }, { get_resource: SlurmSecGroup }, { get_resource: NFSSecGroup } ]
+      metadata:
+       ansible_host_groups: [ DGXRHELNodes ]
+       ansible_ssh_user: cloud-user
+       project_name: { get_param: project_name }
+      networks:
+       - network: { get_param: NetID }
+
 #  PySSHauthz:
 #   type: "OS::Nova::Server"
 #   properties:
-- 
GitLab