f5a50a1d7d
Configuration based off upstream documentation here: http://docs.openstack.org/developer/ironic/deploy/install-guide.html A few notes: -ironic-api is not configured to use mod_wsgi -several places it's noted that discoverd is going away and needs to be replaced with ironic-inspector - (sqlite connection should be changed too) -currently enabling ironic reconfigures nova compute (driver and scheduler) as well as changes neutron network settings -a nice enhancement would be to configure the web console Required post-deployment configuration: Create the flat network to launch the instances: neutron net-create --tenant-id $TENANT_ID sharednet1 --shared \ --provider:network_type flat --provider:physical_network physnet1 neutron subnet-create sharednet1 $NETWORK_CIDR --name $SUBNET_NAME \ --ip-version=4 --gateway=$GATEWAY_IP --allocation-pool \ start=$START_IP,end=$END_IP --enable-dhcp And then the above ID is used to set cleaning_network_uuid in the neutron section of ironic.conf. Change-Id: I572e7ff1f23c4e57a2c50817cafe9269fd9950dd Implements: blueprint ironic-container
36 lines
1013 B
Django/Jinja
36 lines
1013 B
Django/Jinja
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-base:{{ tag }}
|
|
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
|
|
|
{% if install_type == 'binary' %}
|
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
|
|
|
RUN yum -y install tftp-server syslinux-tftpboot \
|
|
&& yum clean all
|
|
|
|
# PXE configuration
|
|
RUN mkdir -p /tftpboot \
|
|
&& cp /var/lib/tftpboot/chain.c32 /tftpboot \
|
|
&& echo 're ^(/tftpboot/) /tftpboot/\2' > /tftpboot/map-file \
|
|
&& echo 're ^/tftpboot/ /tftpboot/' >> /tftpboot/map-file \
|
|
&& echo 're ^(^/) /tftpboot/\1' >> /tftpboot/map-file \
|
|
&& echo 're ^([^/]) /tftpboot/\1' >> /tftpboot/map-file
|
|
|
|
{% elif base_distro in ['ubuntu', 'debian'] %}
|
|
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|
&& /bin/false
|
|
|
|
{% endif %}
|
|
|
|
{% elif install_type == 'source' %}
|
|
|
|
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
|
&& /bin/false
|
|
|
|
{% endif %}
|
|
|
|
COPY start.sh /
|
|
|
|
CMD ["/start.sh"]
|
|
|
|
{{ include_footer }}
|