Skip to content

Commit

Permalink
[FEATURE] Make instance_profile hottype definible (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
dipiazzg authored Apr 26, 2022
1 parent d7343ec commit 2d3691c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ cluster_vars:
auto_volumes: [ ]
flavor: t4g.nano
# image: "ami-0c28049fa5618bca4" # eu-west-1 20.04 arm64 hvm-ssd 20210820. Ubuntu images can be located at https://cloud-images.ubuntu.com/locator/
instance_profile_name: "instance-profile-name" # instance_profile_namecan be specified either at cluster level or hosttype level
version: "{{sys_version | default('')}}"
vms_by_az: { a: 1, b: 0, c: 0 }

Expand Down
2 changes: 1 addition & 1 deletion create/tasks/create_aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
region: "{{cluster_vars.region}}"
key_name: "{{cluster_vars[buildenv].key_name}}"
instance_type: "{{item.flavor}}"
instance_profile_name: "{{cluster_vars.instance_profile_name | default(omit)}}"
instance_profile_name: "{{cluster_vars[buildenv].hosttype_vars[item.hosttype].instance_profile_name | default(cluster_vars.instance_profile_name | default(omit))}}"
instance_initiated_shutdown_behavior: "{{cluster_vars[buildenv].hosttype_vars[item.hosttype].instance_initiated_shutdown_behavior | default(omit)}}"
spot_price: "{{cluster_vars[buildenv].hosttype_vars[item.hosttype].spot.spot_price | default(omit)}}"
spot_wait_timeout: "{{cluster_vars[buildenv].hosttype_vars[item.hosttype].spot.spot_wait_timeout | default(10800)}}" #3 hours
Expand Down

0 comments on commit 2d3691c

Please sign in to comment.