Skip to content

Commit 97f0bab

Browse files
committed
packer/outscale: use public_ip to connect to builder
The default setup does not allow to build images outside the target region. Switching to public_ip fixes it. To secure the connection to the builder, the allowed IP range is now configurable
1 parent ed85089 commit 97f0bab

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

images/capi/packer/outscale/packer.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88
"omi_account_ids": [
99
"{{ user `account_id` }}"
1010
],
11+
"omi_boot_modes": [
12+
"legacy",
13+
"uefi"
14+
],
1115
"omi_name": "{{user `omi_name`}}",
12-
"omi_boot_modes": ["legacy", "uefi"],
1316
"region": "{{ user `region` }}",
1417
"secret_key": "{{ user `secret_key` }}",
1518
"source_omi": "{{ user `source_image` }}",
@@ -21,6 +24,7 @@
2124
"{{ user `owner` }}"
2225
]
2326
},
27+
"ssh_interface": "public_ip",
2428
"ssh_username": "outscale",
2529
"tags": {
2630
"Base_OMI_Name": "{{ .SourceOMIName }}",
@@ -31,6 +35,7 @@
3135
"distribution_version": "{{user `distribution_version`}}",
3236
"kubernetes_version": "{{user `kubernetes_semver`}}"
3337
},
38+
"temporary_security_group_source_cidr": "{{user `ssh_source_cidr` }}",
3439
"type": "outscale-bsu",
3540
"vm_type": "{{user `vm_type`}}"
3641
}
@@ -130,6 +135,7 @@
130135
"runc_url": "https://github.com/opencontainers/runc/releases/download/v{{user `runc_version`}}/runc.amd64",
131136
"runc_version": null,
132137
"secret_key": "{{env `OSC_SECRET_KEY`}}",
138+
"ssh_source_cidr": "0.0.0.0/0",
133139
"vm_type": "tinav6.c2r4p2"
134140
}
135141
}

0 commit comments

Comments
 (0)