forked from GoogleCloudPlatform/cluster-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pfs-daos.yaml
109 lines (100 loc) · 3.79 KB
/
pfs-daos.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
blueprint_name: pfs-daos
vars:
project_id: ## Set GCP Project ID Here ##
deployment_name: pfs-daos
region: us-central1
zone: us-central1-c
daos_server_image_family: daos-server-hpc-rocky-8
daos_client_image_family: daos-client-hpc-rocky-8
daos_version: "2.4"
tags: []
# Note: this blueprint assumes the existence of a default global network and
# subnetwork in the region chosen above
deployment_groups:
- group: primary
modules:
- id: network1
source: modules/network/pre-existing-vpc
- group: daos-server-image
modules:
# more info: https://github.com/daos-stack/google-cloud-daos/tree/main/images
- id: daos-server-image
source: "github.com/daos-stack/google-cloud-daos//images?ref=v0.5.0&depth=1"
kind: packer
settings:
daos_version: $(vars.daos_version)
daos_repo_base_url: https://packages.daos.io
daos_packages_repo_file: EL8/packages/x86_64/daos_packages.repo
use_iap: true
enable_oslogin: false
machine_type: n2-standard-32
source_image_family: hpc-rocky-linux-8
source_image_project_id: cloud-hpc-image-public
image_guest_os_features: ["GVNIC"]
disk_size: "20"
state_timeout: "10m"
scopes: ["https://www.googleapis.com/auth/cloud-platform"]
use_internal_ip: true
omit_external_ip: false
daos_install_type: server
image_family: $(vars.daos_server_image_family)
- group: daos-client-image
modules:
# more info: https://github.com/daos-stack/google-cloud-daos/tree/v0.5.0/images
- id: daos-client-image
source: "github.com/daos-stack/google-cloud-daos//images?ref=v0.5.0&depth=1"
kind: packer
settings:
daos_version: $(vars.daos_version)
daos_repo_base_url: https://packages.daos.io
daos_packages_repo_file: EL8/packages/x86_64/daos_packages.repo
use_iap: true
enable_oslogin: false
machine_type: n2-standard-32
source_image_family: hpc-rocky-linux-8
source_image_project_id: cloud-hpc-image-public
image_guest_os_features: ["GVNIC"]
disk_size: "20"
state_timeout: "10m"
scopes: ["https://www.googleapis.com/auth/cloud-platform"]
use_internal_ip: true
omit_external_ip: false
daos_install_type: client
image_family: $(vars.daos_client_image_family)
- group: daos-cluster
modules:
# more info: https://github.com/daos-stack/google-cloud-daos/tree/develop/terraform/modules/daos_server
- id: daos-server
# source: $(vars.daos_server_module_source_url)
source: "github.com/daos-stack/google-cloud-daos//terraform/modules/daos_server?ref=v0.5.0&depth=1"
use: [network1]
settings:
number_of_instances: 2
labels: {ghpc_role: file-system}
os_family: $(vars.daos_server_image_family)
daos_scm_size: "172"
tags: $(vars.tags)
# more info: https://github.com/daos-stack/google-cloud-daos/tree/develop/terraform/modules/daos_client
- id: daos-client
# source: $(vars.daos_client_module_source_url)
source: "github.com/daos-stack/google-cloud-daos//terraform/modules/daos_client?ref=v0.5.0&depth=1"
use: [network1, daos-server]
settings:
number_of_instances: 2
labels: {ghpc_role: compute}
os_family: $(vars.daos_client_image_family)
tags: $(vars.tags)