diff options
author | Harry Huang <huangxiangyu5@huawei.com> | 2018-10-30 11:07:30 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-10-30 11:07:30 +0000 |
commit | 7d85ab67f8f50f74b3cf3d037b09974b1b7bd428 (patch) | |
tree | e16bcc9244d1d7e6c0c281e36836ae911a1a94ff /compass-cobbler/Dockerfile | |
parent | 3a901b963ff7e5d56f65a3581563835da6765202 (diff) | |
parent | f89ef9a9ee968c778af3444c7f9d2a39489fcf2b (diff) |
Merge "Manage host power from cobbler"
Diffstat (limited to 'compass-cobbler/Dockerfile')
-rw-r--r-- | compass-cobbler/Dockerfile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/compass-cobbler/Dockerfile b/compass-cobbler/Dockerfile index e5c1459..9ee1e64 100644 --- a/compass-cobbler/Dockerfile +++ b/compass-cobbler/Dockerfile @@ -7,7 +7,7 @@ ARG BRANCH=master RUN yum -y update && \ yum -y install epel-release && \ yum -y install wget dhcp bind syslinux pykickstart file initscripts net-tools tcpdump xinetd vim \ - avahi avahi-tools ntp fence_agents && \ + avahi avahi-tools ntp fence-agents libvirt-devel python-devel gcc python-pip && \ wget http://artifacts.opnfv.org/compass4nfv/package/cobbler/cobbler-2.6.10-1.fc22.noarch.rpm && \ wget http://artifacts.opnfv.org/compass4nfv/package/cobbler/cobbler-web-2.6.10-1.fc22.noarch.rpm && \ yum -y localinstall cobbler-2.6.10-1.fc22.noarch.rpm cobbler-web-2.6.10-1.fc22.noarch.rpm && \ @@ -16,7 +16,11 @@ RUN yum -y update && \ systemctl enable httpd && \ systemctl enable dhcpd && \ systemctl enable xinetd && \ - systemctl enable ntpd + systemctl enable ntpd && \ + pip install libvirt-python click + +COPY fence_libvirt /usr/sbin/fence_libvirt +COPY fence_libvirt.template /etc/cobbler/power/fence_libvirt.template # some tweaks on services RUN sed -i -e 's/\(^.*disable.*=\) yes/\1 no/' /etc/xinetd.d/tftp && \ |