Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion v1/providers/nebius/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -1748,8 +1748,16 @@ func (c *NebiusClient) cleanupOrphanedBootDisks(ctx context.Context, testID stri
// generateCloudInitUserData generates a cloud-init user-data script for SSH key injection and firewall configuration
// This is inspired by Shadeform's LaunchConfiguration approach but uses cloud-init instead of base64 scripts
func generateCloudInitUserData(publicKey string, firewallRules v1.FirewallRules) string {
// Start with cloud-init header
// Make apt wait on the dpkg frontend lock (vendor bootstrap / parallel apt).
// apt: conf: {} is silently dropped on this cloud-init version (logs show "handling apt config: {}").
// write_files runs in the network stage before cc_package_update_upgrade_install, so the apt.conf.d
// file is in place before any apt-get call.
script := `#cloud-config
write_files:
- path: /etc/apt/apt.conf.d/99-lock-timeout
content: |
DPkg::Lock::Timeout "600";
permissions: '0644'
packages:
- ufw
`
Expand Down
Loading