2015-09-17 09:35:33 -07:00
|
|
|
FROM {{ namespace }}/{{ image_prefix }}swift-base:{{ tag }}
|
2015-11-23 12:38:58 +05:30
|
|
|
MAINTAINER {{ maintainer }}
|
2015-09-01 08:32:00 +00:00
|
|
|
|
2016-08-12 07:16:19 +10:00
|
|
|
{% import "macros.j2" as macros with context %}
|
|
|
|
|
2015-09-01 08:32:00 +00:00
|
|
|
{% if install_type == 'binary' %}
|
2015-12-22 09:43:14 +08:00
|
|
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
2016-08-12 07:16:19 +10:00
|
|
|
{% set swift_acount_packages = ['openstack-swift-account'] %}
|
2016-02-08 12:22:14 +05:30
|
|
|
{% elif base_distro in ['ubuntu'] %}
|
2016-08-12 07:16:19 +10:00
|
|
|
{% set swift_acount_packages = ['swift-account'] %}
|
|
|
|
{% endif %}
|
2016-02-08 12:22:14 +05:30
|
|
|
|
2016-08-12 08:24:11 +10:00
|
|
|
{{ macros.install_packages(swift_acount_packages | customizable("packages")) }}
|
2016-02-08 12:22:14 +05:30
|
|
|
|
2015-09-01 08:32:00 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2016-08-12 07:16:19 +10:00
|
|
|
{% block swift_account_footer %}{% endblock %}
|
|
|
|
{% block footer %}{% endblock %}
|
2015-09-01 08:32:00 +00:00
|
|
|
{{ include_footer }}
|
2016-03-04 09:17:46 +05:30
|
|
|
|
|
|
|
USER swift
|