From d177017a75fb0599512705bb0b87f347b0dfe371 Mon Sep 17 00:00:00 2001
From: Andreas Hamacher <andreas.hamacher@monash.edu>
Date: Tue, 31 Mar 2020 15:28:46 +1100
Subject: [PATCH] Dgxdeploy

Former-commit-id: d5016752cb56dc31837884d0a8c88c99ffbdf62c
---
 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..a91acf86 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_77_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