Skip to content

Commit

Permalink
... found easier way to get cloud-init running.
Browse files Browse the repository at this point in the history
  • Loading branch information
guettli committed Mar 13, 2024
1 parent 664e364 commit 95bd125
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 19 deletions.
2 changes: 1 addition & 1 deletion pkg/services/baremetal/host/host.go
Expand Up @@ -993,7 +993,7 @@ func (s *Service) actionImageInstalling() actionResult {

// Some other error like connection timeout. Retry again later.
// This often during provisioning.
msg := fmt.Sprintf("DetectLinuxOnAnotherDisk failed (will retry): %s. StdErr: %s (%s)",
msg := fmt.Sprintf("will retry: %s. StdErr: %s (%s)",
out.StdOut, out.StdErr, out.Err.Error())
conditions.MarkFalse(
s.scope.HetznerBareMetalHost,
Expand Down
Expand Up @@ -23,12 +23,7 @@ spec:
mkdir -p /etc/cloud/cloud.cfg.d && touch /etc/cloud/cloud.cfg.d/99-custom-networking.cfg
echo "network: { config: disabled }" > /etc/cloud/cloud.cfg.d/99-custom-networking.cfg
apt-get update && apt-get install -y cloud-init apparmor apparmor-utils
cat << 'EOF' > /etc/cloud/cloud.cfg.d/99-nocloud.cfg
datasource_list: [ NoCloud ]
datasource:
NoCloud:
seedfrom: /var/lib/cloud/seed/nocloud-net/
EOF
cloud-init clean --logs
sshSpec:
portAfterInstallImage: 22
portAfterCloudInit: 22
Expand Down
Expand Up @@ -23,12 +23,7 @@ spec:
mkdir -p /etc/cloud/cloud.cfg.d && touch /etc/cloud/cloud.cfg.d/99-custom-networking.cfg
echo "network: { config: disabled }" > /etc/cloud/cloud.cfg.d/99-custom-networking.cfg
apt-get update && apt-get install -y cloud-init apparmor apparmor-utils
cat << 'EOF' > /etc/cloud/cloud.cfg.d/99-nocloud.cfg
datasource_list: [ NoCloud ]
datasource:
NoCloud:
seedfrom: /var/lib/cloud/seed/nocloud-net/
EOF
cloud-init clean --logs
sshSpec:
portAfterInstallImage: 22
portAfterCloudInit: 22
Expand Down
7 changes: 1 addition & 6 deletions templates/cluster-templates/cluster-class.yaml
Expand Up @@ -695,12 +695,7 @@ spec:
mkdir -p /etc/cloud/cloud.cfg.d && touch /etc/cloud/cloud.cfg.d/99-custom-networking.cfg
echo "network: { config: disabled }" > /etc/cloud/cloud.cfg.d/99-custom-networking.cfg
apt-get update && apt-get install -y cloud-init apparmor apparmor-utils
cat << 'EOF' > /etc/cloud/cloud.cfg.d/99-nocloud.cfg
datasource_list: [ NoCloud ]
datasource:
NoCloud:
seedfrom: /var/lib/cloud/seed/nocloud-net/
EOF
cloud-init clean --logs
sshSpec:
portAfterCloudInit: 22
portAfterInstallImage: 22
Expand Down

0 comments on commit 95bd125

Please sign in to comment.