Skip to content

Commit

Permalink
If compute_username is not opc,force bastion image
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudfroidmont committed Sep 16, 2023
1 parent b5b8a67 commit 3c2978a
Showing 1 changed file with 36 additions and 12 deletions.
48 changes: 36 additions & 12 deletions schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,13 @@ variables:
type: boolean
default: false
visible:
not:
- ${use_standard_image}
or:
- not:
- ${use_standard_image}
- not:
- eq:
- ${compute_username}
- "opc"

bastion_username:
title: "Default username for bastion"
Expand All @@ -397,8 +402,13 @@ variables:
default: "opc"
required: true
visible:
not:
- ${use_standard_image}
or:
- not:
- ${use_standard_image}
- not:
- eq:
- ${compute_username}
- "opc"

unsupported_bastion_image:
title: "Image OCID"
Expand All @@ -407,9 +417,13 @@ variables:
required: true
visible:
and:
- ${unsupported_bastion}
- not:
- or:
- not:
- ${use_standard_image}
- not:
- eq:
- ${compute_username}
- "opc"
default: "image.ocid"

bastion_image_compartment:
Expand All @@ -418,10 +432,15 @@ variables:
default: ${targetCompartment}
visible:
and:
- or:
- not:
- ${use_standard_image}
- not:
- ${unsupported_bastion}
- ${use_standard_image}
- not:
- eq:
- ${compute_username}
- "opc"
- not:
- ${unsupported_bastion}
required: true

custom_bastion_image:
Expand All @@ -432,10 +451,15 @@ variables:
compartmentId: ${bastion_image_compartment}
visible:
and:
- or:
- not:
- ${use_standard_image}
- not:
- ${unsupported_bastion}
- ${use_standard_image}
- not:
- eq:
- ${compute_username}
- "opc"
- not:
- ${unsupported_bastion}
required: true

bastion_boot_volume_size:
Expand Down

0 comments on commit 3c2978a

Please sign in to comment.