@@ -48,7 +48,7 @@ terraform_gce_scatch_disk_type: "invalid"
terraform_gce_image_name: "invalid"
terraform_gce_credentials: "invalid"
-terraform_oci_assign_public_ip: "false"
+terraform_oci_assign_public_ip: false
terraform_openstack_cloud_name: "invalid"
terraform_openstack_instance_prefix: "invalid"
@@ -13,7 +13,7 @@ oci_instance_flex_ocpus = {{ terraform_oci_instance_flex_ocpus }}
oci_instance_flex_memory_in_gbs = {{ terraform_oci_instance_flex_memory_in_gbs }}
{% endif %}
oci_os_image_ocid = "{{ terraform_oci_os_image_ocid }}"
-oci_assign_public_ip = "{{ terraform_oci_assign_public_ip | lower }}"
+oci_assign_public_ip = {{ terraform_oci_assign_public_ip | lower }}
oci_subnet_ocid = "{{ terraform_oci_subnet_ocid }}"
oci_volumes_per_instance = {{ terraform_oci_volumes_per_instance }}
oci_volumes_size = {{ terraform_oci_volumes_size }}
@@ -95,11 +95,6 @@ TERRAFORM_EXTRA_VARS += terraform_gce_credentials=$(subst ",,$(CONFIG_TERRAFORM_
endif
ifeq (y,$(CONFIG_TERRAFORM_OCI))
-ifeq (y, $(CONFIG_TERRAFORM_OCI_ASSIGN_PUBLIC_IP))
-TERRAFORM_EXTRA_VARS += terraform_oci_assign_public_ip=true
-else
-TERRAFORM_EXTRA_VARS += terraform_oci_assign_public_ip=false
-endif
TERRAFORM_EXTRA_VARS += terraform_oci_subnet_ocid=$(subst ",,$(CONFIG_TERRAFORM_OCI_SUBNET_OCID))
endif
@@ -1,10 +1,11 @@
config TERRAFORM_OCI_ASSIGN_PUBLIC_IP
- bool "Assign public IP address to the cloud instance"
+ bool "Assign public IP address to each instance"
+ output yaml
default y
help
- Select this field if public IP address has to be assigned to
- the cloud instance. Otherwise a public IP address is
- assigned.
+ Enable this setting if a public IP address should be
+ assigned to each instance. Leave it unset to prevent your
+ instances from being accessible on the public internet.
config TERRAFORM_OCI_SUBNET_OCID
string "OCI Subnet OCID"