|
4 | 4 | # you may not use this file except in compliance with the License. |
5 | 5 | # You may obtain a copy of the License at |
6 | 6 | # |
7 | | -# http://www.apache.org/licenses/LICENSE-2.0 |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
8 | 8 | # |
9 | 9 | # Unless required by applicable law or agreed to in writing, software |
10 | 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
|
15 | 15 | apiVersion: blueprints.cloud.google.com/v1alpha1 |
16 | 16 | kind: BlueprintMetadata |
17 | 17 | metadata: |
18 | | - name: abfs_deploy_cos |
| 18 | + name: terraform-google-abfs |
19 | 19 | annotations: |
20 | 20 | config.kubernetes.io/local-config: "true" |
21 | 21 | spec: |
22 | 22 | info: |
23 | 23 | title: Deploy ABFS in containers on GCE VMs |
24 | 24 | source: |
25 | | - repo: https://android-keystone-os.googlesource.com/abfs_deploy_cos |
| 25 | + repo: https://github.com/terraform-google-modules/terraform-google-abfs |
26 | 26 | sourceType: git |
27 | | - dir: /server |
28 | 27 | description: {} |
29 | | - content: {} |
30 | | - interfaces: |
31 | | - variables: |
32 | | - - name: project_id |
33 | | - description: Google Cloud project ID |
34 | | - varType: string |
35 | | - required: true |
36 | | - - name: zone |
37 | | - description: Zone for ABFS servers |
38 | | - varType: string |
39 | | - required: true |
40 | | - defaultValue: us-central1-a |
41 | | - - name: subnetwork |
42 | | - description: Subnetwork for the servers |
43 | | - varType: string |
44 | | - required: true |
45 | | - defaultValue: projects/jbrook-abfs-playground/regions/us-central1/subnetworks/network #FIXME |
46 | | - - name: service_account_email |
47 | | - description: Email of service account to attach to the servers |
48 | | - varType: string |
49 | | - required: true |
50 | | - - name: abfs_server_machine_type |
51 | | - description: Machine type for ABFS servers |
52 | | - varType: string |
53 | | - defaultValue: n2-highmem-128 |
54 | | - - name: abfs_server_name |
55 | | - description: Name for the ABFS server |
56 | | - varType: string |
57 | | - defaultValue: abfs-server |
58 | | - - name: abfs_server_cos_image_ref |
59 | | - description: Reference to the COS boot image to use for the ABFS server |
60 | | - varType: string |
61 | | - defaultValue: projects/jbrook-abfs-playground/global/images/abfs-vmcos109-image-x8664-20250204 |
62 | | - - name: abfs_datadisk_type |
63 | | - description: The PD regional disk type to use for the ABFS datadisk |
64 | | - varType: string |
65 | | - defaultValue: pd-ssd |
66 | | - - name: abfs_datadisk_name |
67 | | - description: A name for the ABFS datadisk that will be attached to the VM. Note, this does not affect the mounting of the disk - the device name is always set to "abfs-server-storage" |
68 | | - varType: string |
69 | | - defaultValue: abfs-datadisk |
70 | | - - name: abfs_datadisk_size_gb |
71 | | - description: Size in GB for the ABFS datadisk that will be attached to the VM |
72 | | - varType: number |
73 | | - defaultValue: 10000 |
74 | | - - name: abfs_docker_image_uri |
75 | | - description: Docker image URI for main ABFS server |
76 | | - varType: string |
77 | | - required: true |
78 | | - defaultValue: us-docker.pkg.dev/jbrook-abfs-playground/abfs-docker-repo/abfs:latest # FIXME |
79 | | - - name: abfs_server_command |
80 | | - description: The ABFS command to run on ABFS servers. The command should not include 'abfs', only what follows |
81 | | - varType: string |
82 | | - defaultValue: server -d /abfs-storage |
83 | | - - name: abfs_datadisk_mountpoint |
84 | | - description: Location for mounting the ABFS datadisk on the host VM |
85 | | - varType: string |
86 | | - defaultValue: /mnt/disks/abfs-data |
87 | | - - name: abfs_gerrit_uploader_count |
88 | | - description: The number of gerrit uploader instances to create |
89 | | - varType: number |
90 | | - defaultValue: 3 |
91 | | - - name: abfs_gerrit_uploader_machine_type |
92 | | - description: Machine type for ABFS gerrit uploaders |
93 | | - varType: string |
94 | | - defaultValue: n2d-standard-48 |
95 | | - - name: abfs_gerrit_uploader_name_prefix |
96 | | - description: Name prefix for the ABFS gerrit uploader VM(s) |
97 | | - varType: string |
98 | | - defaultValue: abfs-gerrit-uploader |
99 | | - - name: abfs_gerrit_uploader_datadisk_name_prefix |
100 | | - description: A name prefix for the ABFS gerrit uploader datadisk(s) that will be attached to VM(s). Note, this does not affect the mounting of the disk - the device name is always set to "abfs-server-storage" |
101 | | - varType: string |
102 | | - defaultValue: abfs-gerrit-uploader-datadisk |
103 | | - - name: abfs_gerrit_uploader_datadisk_size_gb |
104 | | - description: Size in GB for the ABFS gerrit uploader datadisk(s) that will be attached to the VM(s) |
105 | | - varType: number |
106 | | - defaultValue: 4096 |
107 | | - - name: abfs_gerrit_uploader_datadisk_type |
108 | | - description: The PD regional disk type to use for the ABFS gerrit uploader datadisk(s) |
109 | | - varType: string |
110 | | - defaultValue: pd-ssd |
111 | | - - name: abfs_gerrit_uploader_manifest_server |
112 | | - description: The manifest server to assume |
113 | | - varType: string |
114 | | - required: true |
115 | | - defaultValue: "android.googlesource.com" |
116 | | - - name: abfs_gerrit_uploader_git_branch |
117 | | - description: Git branch to upload to the ABFS server (e.g.main) |
118 | | - varType: string |
119 | | - defaultValue: main |
120 | | - - name: goog_cm_deployment_name |
121 | | - description: The name of the deployment and VM instance. |
122 | | - varType: string |
123 | | - required: true |
| 28 | + content: |
| 29 | + subBlueprints: |
| 30 | + - name: server |
| 31 | + location: modules/server |
| 32 | + - name: uploaders |
| 33 | + location: modules/uploaders |
| 34 | + examples: |
| 35 | + - name: simple |
| 36 | + location: examples/simple |
| 37 | + interfaces: {} |
0 commit comments