d69cc8e88b
Change-Id: I06325d4601128a0b5a2235370fa44012427c29e3 Implements: blueprint ceph-nfs-container
31 lines
794 B
Django/Jinja
31 lines
794 B
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}ceph-base:{{ tag }}
|
|
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
|
|
|
|
{% block ceph_nfs_header %}{% endblock %}
|
|
|
|
{% import "macros.j2" as macros with context %}
|
|
|
|
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
|
|
|
|
{% set ceph_nfs_packages = [
|
|
'nfs-ganesha',
|
|
'nfs-ganesha-ceph',
|
|
'nfs-ganesha-rgw'
|
|
] %}
|
|
{% elif base_distro in ['ubuntu'] %}
|
|
{% set ceph_nfs_packages = [
|
|
'nfs-ganesha',
|
|
'nfs-ganesha-ceph',
|
|
'nfs-ganesha-rgw'
|
|
] %}
|
|
|
|
{% endif %}
|
|
|
|
{{ macros.install_packages(ceph_nfs_packages | customizable("packages")) }}
|
|
|
|
|
|
{% block ceph_nfs_footer %}{% endblock %}
|
|
{% block footer %}{% endblock %}
|
|
|
|
USER ceph
|