|
1 | 1 | { |
2 | | - "templates": [ |
3 | | - { |
4 | | - "templateId": "Template-1", |
5 | | - "maxNumber": "{{ rc_max_num }}", |
6 | | - "attributes": { |
7 | | - "type": ["String", "X86_64"], |
8 | | - "ncores": ["Numeric", "{{ rc_ncores }}"], |
9 | | - "ncpus": ["Numeric", "{{ rc_ncpus }}"], |
10 | | - "mem": ["Numeric", "{{ rc_mem_in_mb }}"], |
11 | | - "icgen2host": ["Boolean", "1"] |
12 | | - }, |
13 | | - "crn": "{{ boot_volume_encryption_key }}", |
14 | | - "imageId": "{{ image_id }}", |
15 | | - "subnetId": "{{ compute_subnet_crn }}", |
16 | | - "vpcId": "{{ vpc_id }}", |
17 | | - "vmType": "{{ rc_profile }}", |
18 | | - "securityGroupIds": ["{{ compute_security_group_id | first }}"], |
19 | | - "resourceGroupId": "{{ resource_group_id }}", |
20 | | - "sshkey_id": "{{ compute_ssh_keys_ids | first }}", |
21 | | - "region": "{{ region_name }}", |
22 | | - "zone": "{{ zone_name | first }}" |
23 | | - } |
24 | | - ] |
| 2 | + "templates": [ |
| 3 | + { |
| 4 | + "templateId": "Template-1", |
| 5 | + "maxNumber": "{{ rc_max_num }}", |
| 6 | + "attributes": { |
| 7 | + "type": ["String", "X86_64"], |
| 8 | + "ncores": ["Numeric", "{{ rc_ncores }}"], |
| 9 | + "ncpus": ["Numeric", "{{ rc_ncpus }}"], |
| 10 | + "mem": ["Numeric", "{{ rc_mem_in_mb }}"], |
| 11 | + "icgen2host": ["Boolean", "1"] |
| 12 | + }, |
| 13 | + "volumeProfile": "general-purpose", |
| 14 | + "encryptionKey": "{{ boot_volume_encryption_key }}", |
| 15 | +{% if lsf_pay_per_use %} |
| 16 | + "catalogOffering": { |
| 17 | + "version_crn": "{{ catalog_offering.version_crn }}", |
| 18 | + "plan_crn": "{{ catalog_offering.plan_crn }}" |
| 19 | + }, |
| 20 | +{% else %} |
| 21 | + "imageId": "{{ image_id }}", |
| 22 | +{% endif %} |
| 23 | + "subnetId": "{{ compute_subnet_crn }}", |
| 24 | + "vpcId": "{{ vpc_id }}", |
| 25 | + "vmType": "{{ rc_profile }}", |
| 26 | + "securityGroupIds": ["{{ compute_security_group_id | first }}"], |
| 27 | + "resourceGroupId": "{{ resource_group_id }}", |
| 28 | + "sshkeyIds": {{ compute_ssh_keys_ids | to_json }}, |
| 29 | + "region": "{{ region_name }}", |
| 30 | + "zone": "{{ zone_name | first }}" |
| 31 | + } |
| 32 | + ] |
25 | 33 | } |
0 commit comments