Skip to content

Commit 247ee55

Browse files
committed
5G NF Infra example: using cloud init
Signed-off-by: junior <junior@users.noreply.github.com>
1 parent b80f75e commit 247ee55

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

examples/5G-NF-Infra/oke.tf

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# OKE Cluster
77
################################################################################
88
module "oke-quickstart" {
9-
source = "github.com/oracle-quickstart/terraform-oci-oke-quickstart?ref=0.8.10"
9+
source = "github.com/oracle-quickstart/terraform-oci-oke-quickstart?ref=0.8.11"
1010

1111
# Oracle Cloud Infrastructure Tenancy and Compartment OCID
1212
tenancy_ocid = var.tenancy_ocid
@@ -33,6 +33,20 @@ module "oke-quickstart" {
3333
node_pool_max_num_worker_nodes_1 = var.node_pool_max_num_worker_nodes_1 # Maximum number of nodes in the node pool
3434
node_pool_instance_shape_1 = var.node_pool_instance_shape_1
3535
extra_initial_node_labels_1 = [{ key = "cnf", value = "amf01" }] # Extra initial node labels for node pool 1. Example: "[{ key = "app.something/key1", value = "value1" }]"
36+
node_pool_cloud_init_parts_1 = [{
37+
content_type = "text/cloud-config"
38+
content = <<EOF
39+
#cloud-config
40+
runcmd:
41+
- echo "Running prep scripts..."
42+
- echo "Finished prep scripts."
43+
- echo "Starting App..."
44+
45+
final_message: "The system is finally up, after $UPTIME seconds"
46+
output: {all: '| tee -a /tmp/cloud-init-output.log'}
47+
EOF
48+
filename = "cloud-config.yaml"
49+
}]
3650

3751
# Extra Security Lists
3852
extra_security_list_name_for_nodes = "5g_for_pods_security_list" # ["5g_for_pods_security_list", "5g_sctp_security_list"]

0 commit comments

Comments
 (0)