Skip to content

Commit

Permalink
Merge pull request #139 from bkhadars/template
Browse files Browse the repository at this point in the history
Updated template script to resolve DHCP issue
  • Loading branch information
bpradipt authored Apr 23, 2021
2 parents 5d3bdf5 + ce8a926 commit b65e6ba
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions cmd/image/qcow2ova/prep/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ subscription-manager register --force --auto-attach --username={{ .RHNUser }} --
{{end}}
yum update -y && yum install -y yum-utils
yum install -y cloud-init
ln -s /usr/lib/systemd/system/cloud-init-local.service /etc/systemd/system/multi-user.target.wants/cloud-init-local.service
ln -s /usr/lib/systemd/system/cloud-init.service /etc/systemd/system/multi-user.target.wants/cloud-init.service
ln -s /usr/lib/systemd/system/cloud-config.service /etc/systemd/system/multi-user.target.wants/cloud-config.service
ln -s /usr/lib/systemd/system/cloud-final.service /etc/systemd/system/multi-user.target.wants/cloud-final.service
rm -rf /etc/systemd/system/multi-user.target.wants/firewalld.service
rpm -vih --nodeps http://public.dhe.ibm.com/software/server/POWER/Linux/yum/download/ibm-power-repo-latest.noarch.rpm
sed -i 's/^more \/opt\/ibm\/lop\/notice/#more \/opt\/ibm\/lop\/notice/g' /opt/ibm/lop/configure
Expand Down Expand Up @@ -163,26 +159,6 @@ datasource:
dsmode: local
###############################################
######################################################################################################################
### Change 4: Disable the network config in cloud-init post deployment, known issue when deployed with multipath disks
write_files:
- path: /usr/local/bin/disable_cloud_init_nw.sh
permissions: 0755
owner: root
content: |
#!/usr/bin/env bash
set -e
cat <<EOF > /etc/cloud/cloud.cfg.d/01_disable_cloud_nw.cfg
#cloud-config
network:
config: disabled
EOF
runcmd:
- bash /usr/local/bin/disable_cloud_init_nw.sh
######################################################################################################################
# vim:syntax=yaml
`

Expand Down

0 comments on commit b65e6ba

Please sign in to comment.