Merge pull request #70 from Divius/ironic-discoverd-packages
Package installation of ironic-discoverd
This commit is contained in:
commit
b51d5d46b6
@ -1,8 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eux
|
||||
|
||||
pip install ironic-discoverd
|
||||
os-svc-daemon -n openstack-ironic-discoverd -i /usr -u root -c ironic-discoverd /etc/ironic-discoverd/discoverd.conf
|
||||
install -d -m 0750 -o root -g root /etc/ironic-discoverd
|
||||
install -d -m 0755 -o ironic -g ironic /tftpboot/pxelinux.cfg
|
7
elements/ironic-discoverd/install.d/70-tftpboot-dir
Executable file
7
elements/ironic-discoverd/install.d/70-tftpboot-dir
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eux
|
||||
|
||||
# make sure tftpboot is labelled correctly
|
||||
install -d -m 0755 -o ironic -g ironic /tftpboot/pxelinux.cfg
|
||||
restorecon -R /tftpboot
|
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eux
|
||||
|
||||
# FIXME(dtantsur): temporary until update hits Juno RDO
|
||||
rpm -q openstack-ironic-discoverd || yum -y install https://kojipkgs.fedoraproject.org//packages/openstack-ironic-discoverd/0.2.1/2.fc22/noarch/openstack-ironic-discoverd-0.2.1-2.fc22.noarch.rpm
|
||||
# install-packages openstack-ironic-discoverd
|
@ -1,12 +1,12 @@
|
||||
#!/bin/bash
|
||||
# just starts the discovery dnsmasq process
|
||||
|
||||
set -eux
|
||||
|
||||
install-packages dnsmasq dnsmasq-utils
|
||||
install-packages dnsmasq
|
||||
|
||||
# make sure tftpboot is labelled correctly
|
||||
mkdir -p /tftpboot
|
||||
restorecon -R /tftpboot
|
||||
pip install ironic-discoverd
|
||||
os-svc-daemon -n openstack-ironic-discoverd -i /usr -u root -c ironic-discoverd /etc/ironic-discoverd/discoverd.conf
|
||||
install -d -m 0750 -o root -g root /etc/ironic-discoverd
|
||||
|
||||
cat > /lib/systemd/system/openstack-ironic-discoverd-dnsmasq.service << eof
|
||||
[Unit]
|
@ -40,3 +40,4 @@ export DIB_INSTALLTYPE_tripleo_heat_templates=${DIB_INSTALLTYPE_tripleo_heat_tem
|
||||
# Miscellaneous
|
||||
export DIB_INSTALLTYPE_get_pip_py=${DIB_INSTALLTYPE_get_pip_py:-package}
|
||||
export DIB_INSTALLTYPE_novnc=${DIB_INSTALLTYPE_novnc:-package}
|
||||
export DIB_INSTALLTYPE_ironic_discoverd=${DIB_INSTALLTYPE_ironic_discoverd:-package}
|
||||
|
Loading…
Reference in New Issue
Block a user