a33ddb89f1
If you don't want cloud-init, you may need to get a few things from config-drive because you may be operating on a cloud with no DHCP. In that case, simply reading some values from config-drive and writing out either DHCP or static network info, in addition to grabbing ssh keys is helpful. Both Infra and bifrost want this for their images. Co-Authored-By: Gregory Haynes <greg@greghaynes.net> Change-Id: I2746ed256b9783eab058b803130d3ccac484eaeb
16 lines
300 B
Desktop File
16 lines
300 B
Desktop File
[Unit]
|
|
Description=DHCP interface %I
|
|
After=network.service network.target
|
|
|
|
ConditionPathExists=!/etc/sysconfig/network-scripts/ifcfg-%I
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
User=root
|
|
ExecStartPre=/usr/local/sbin/simple-init.sh %I
|
|
ExecStart=/sbin/ifup %I
|
|
RemainAfterExit=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|