Skip to content

Commit b65e6ba

Browse files
authored
Merge pull request #139 from bkhadars/template
Updated template script to resolve DHCP issue
2 parents 5d3bdf5 + ce8a926 commit b65e6ba

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

cmd/image/qcow2ova/prep/templates.go

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ subscription-manager register --force --auto-attach --username={{ .RHNUser }} --
3333
{{end}}
3434
yum update -y && yum install -y yum-utils
3535
yum install -y cloud-init
36-
ln -s /usr/lib/systemd/system/cloud-init-local.service /etc/systemd/system/multi-user.target.wants/cloud-init-local.service
37-
ln -s /usr/lib/systemd/system/cloud-init.service /etc/systemd/system/multi-user.target.wants/cloud-init.service
38-
ln -s /usr/lib/systemd/system/cloud-config.service /etc/systemd/system/multi-user.target.wants/cloud-config.service
39-
ln -s /usr/lib/systemd/system/cloud-final.service /etc/systemd/system/multi-user.target.wants/cloud-final.service
4036
rm -rf /etc/systemd/system/multi-user.target.wants/firewalld.service
4137
rpm -vih --nodeps http://public.dhe.ibm.com/software/server/POWER/Linux/yum/download/ibm-power-repo-latest.noarch.rpm
4238
sed -i 's/^more \/opt\/ibm\/lop\/notice/#more \/opt\/ibm\/lop\/notice/g' /opt/ibm/lop/configure
@@ -163,26 +159,6 @@ datasource:
163159
dsmode: local
164160
###############################################
165161
166-
######################################################################################################################
167-
### Change 4: Disable the network config in cloud-init post deployment, known issue when deployed with multipath disks
168-
write_files:
169-
- path: /usr/local/bin/disable_cloud_init_nw.sh
170-
permissions: 0755
171-
owner: root
172-
content: |
173-
#!/usr/bin/env bash
174-
set -e
175-
cat <<EOF > /etc/cloud/cloud.cfg.d/01_disable_cloud_nw.cfg
176-
#cloud-config
177-
network:
178-
config: disabled
179-
EOF
180-
181-
runcmd:
182-
- bash /usr/local/bin/disable_cloud_init_nw.sh
183-
184-
######################################################################################################################
185-
186162
# vim:syntax=yaml
187163
`
188164

0 commit comments

Comments
 (0)