2016-05-06 02:20:03 +08:00
|
|
|
#jinja2: trim_blocks: "true", lstrip_blocks: "true"
|
|
|
|
# {{ ansible_managed }}
|
|
|
|
|
2016-08-18 20:24:48 +08:00
|
|
|
{% if nfs_file_gw %}
|
2016-05-06 02:20:03 +08:00
|
|
|
EXPORT
|
|
|
|
{
|
2016-07-21 21:17:19 +08:00
|
|
|
Export_ID={{ ceph_nfs_ceph_export_id }};
|
2016-05-06 02:20:03 +08:00
|
|
|
|
|
|
|
Path = "/";
|
|
|
|
|
2016-07-21 21:17:19 +08:00
|
|
|
Pseudo = {{ ceph_nfs_ceph_pseudo_path }};
|
2016-05-06 02:20:03 +08:00
|
|
|
|
2016-07-21 21:17:19 +08:00
|
|
|
Access_Type = {{ ceph_nfs_ceph_access_type }};
|
2016-05-06 02:20:03 +08:00
|
|
|
|
2016-07-21 21:17:19 +08:00
|
|
|
NFS_Protocols = {{ ceph_nfs_ceph_protocols }};
|
2016-05-06 02:20:03 +08:00
|
|
|
|
|
|
|
Transport_Protocols = TCP;
|
|
|
|
|
|
|
|
Sectype = sys,krb5,krb5i,krb5p;
|
|
|
|
|
|
|
|
FSAL {
|
|
|
|
Name = CEPH;
|
|
|
|
}
|
|
|
|
}
|
2016-07-21 21:17:19 +08:00
|
|
|
{% endif %}
|
2016-08-18 20:24:48 +08:00
|
|
|
{% if nfs_obj_gw %}
|
2016-07-21 21:17:19 +08:00
|
|
|
EXPORT
|
|
|
|
{
|
|
|
|
Export_ID={{ ceph_nfs_rgw_export_id }};
|
|
|
|
|
|
|
|
Path = "/";
|
|
|
|
|
|
|
|
Pseudo = {{ ceph_nfs_rgw_pseudo_path }};
|
|
|
|
|
|
|
|
Access_Type = {{ ceph_nfs_rgw_access_type }};
|
|
|
|
|
|
|
|
NFS_Protocols = {{ ceph_nfs_rgw_protocols }};
|
|
|
|
|
|
|
|
Transport_Protocols = TCP;
|
|
|
|
|
|
|
|
Sectype = sys,krb5,krb5i,krb5p;
|
|
|
|
|
|
|
|
FSAL {
|
|
|
|
Name = RGW;
|
|
|
|
User_Id = "{{ ceph_nfs_rgw_user }}";
|
|
|
|
Access_Key_Id ="{{ ceph_nfs_rgw_access_key }}";
|
|
|
|
Secret_Access_Key = "{{ ceph_nfs_rgw_secret_key }}";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
LOG {
|
|
|
|
Facility {
|
|
|
|
name = FILE;
|
|
|
|
destination = "{{ ceph_nfs_log_file }}";
|
|
|
|
enable = active;
|
|
|
|
}
|
|
|
|
}
|