2016-05-06 02:20:03 +08:00
|
|
|
---
|
|
|
|
# Variables here are applicable to all host groups NOT roles
|
|
|
|
|
|
|
|
# This sample file generated by generate_group_vars_sample.sh
|
|
|
|
|
|
|
|
# Dummy variable to avoid error because ansible does not recognize the
|
|
|
|
# file as a good configuration file when no variable in it.
|
|
|
|
dummy:
|
|
|
|
|
|
|
|
# You can override vars by using host or group vars
|
|
|
|
|
|
|
|
###########
|
|
|
|
# GENERAL #
|
|
|
|
###########
|
|
|
|
|
2017-08-21 20:38:21 +08:00
|
|
|
# Even though NFS nodes should not have the admin key
|
|
|
|
# at their disposal, some people might want to have it
|
|
|
|
# distributed on RGW nodes. Setting 'copy_admin_key' to 'true'
|
|
|
|
# will copy the admin key to the /etc/ceph/ directory
|
|
|
|
#copy_admin_key: false
|
2018-04-11 23:15:29 +08:00
|
|
|
|
|
|
|
# Whether docker container or systemd service should be enabled
|
2017-09-21 05:06:01 +08:00
|
|
|
# and started, it's useful to set it to false if nfs-ganesha
|
|
|
|
# service is managed by pacemaker
|
|
|
|
#ceph_nfs_enable_service: true
|
2017-08-21 20:38:21 +08:00
|
|
|
|
2017-10-04 19:09:43 +08:00
|
|
|
# ceph-nfs systemd service uses ansible's hostname as an instance id,
|
2021-03-03 22:43:50 +08:00
|
|
|
# so service name is ceph-nfs@{{ ansible_facts['hostname'] }}, this is not
|
2017-10-04 19:09:43 +08:00
|
|
|
# ideal when ceph-nfs is managed by pacemaker across multiple hosts - in
|
|
|
|
# such case it's better to have constant instance id instead which
|
|
|
|
# can be set by 'ceph_nfs_service_suffix'
|
2021-03-25 10:47:40 +08:00
|
|
|
# ceph_nfs_service_suffix: "{{ ansible_facts['hostname'] }}"
|
2017-10-04 19:09:43 +08:00
|
|
|
|
2016-05-06 02:20:03 +08:00
|
|
|
######################
|
|
|
|
# NFS Ganesha Config #
|
|
|
|
######################
|
2017-09-11 11:34:36 +08:00
|
|
|
#ceph_nfs_log_file: "/var/log/ganesha/ganesha.log"
|
2017-10-10 18:43:23 +08:00
|
|
|
#ceph_nfs_dynamic_exports: false
|
2017-11-15 19:59:36 +08:00
|
|
|
# If set to true then rados is used to store ganesha exports
|
|
|
|
# and client sessions information, this is useful if you
|
|
|
|
# run multiple nfs-ganesha servers in active/passive mode and
|
|
|
|
# want to do failover
|
|
|
|
#ceph_nfs_rados_backend: false
|
|
|
|
# Name of the rados object used to store a list of the export rados
|
|
|
|
# object URLS
|
|
|
|
#ceph_nfs_rados_export_index: "ganesha-export-index"
|
2017-10-16 18:06:59 +08:00
|
|
|
# Address ganesha service should listen on, by default ganesha listens on all
|
|
|
|
# addresses. (Note: ganesha ignores this parameter in current version due to
|
|
|
|
# this bug: https://github.com/nfs-ganesha/nfs-ganesha/issues/217)
|
|
|
|
# ceph_nfs_bind_addr: 0.0.0.0
|
2016-07-21 21:17:19 +08:00
|
|
|
|
2018-04-11 23:15:29 +08:00
|
|
|
# If set to true, then ganesha's attribute and directory caching is disabled
|
|
|
|
# as much as possible. Currently, ganesha caches by default.
|
|
|
|
# When using ganesha as CephFS's gateway, it is recommended to turn off
|
|
|
|
# ganesha's caching as the libcephfs clients also cache the same information.
|
|
|
|
# Note: Irrespective of this option's setting, ganesha's caching is disabled
|
|
|
|
# when setting 'nfs_file_gw' option as true.
|
|
|
|
#ceph_nfs_disable_caching: false
|
|
|
|
|
2021-03-12 23:27:12 +08:00
|
|
|
# This is the file ganesha will use to control NFSv4 ID mapping
|
|
|
|
#ceph_nfs_idmap_conf: "/etc/ganesha/idmap.conf"
|
|
|
|
|
|
|
|
# idmap configuration file override.
|
|
|
|
# This allows you to specify more configuration options
|
|
|
|
# using an INI style format.
|
|
|
|
# Example:
|
|
|
|
# idmap_conf_overrides:
|
|
|
|
# General:
|
|
|
|
# Domain: foo.domain.net
|
|
|
|
#idmap_conf_overrides: {}
|
|
|
|
|
2016-07-21 21:17:19 +08:00
|
|
|
####################
|
|
|
|
# FSAL Ceph Config #
|
|
|
|
####################
|
2017-10-06 04:51:23 +08:00
|
|
|
#ceph_nfs_ceph_export_id: 20133
|
|
|
|
#ceph_nfs_ceph_pseudo_path: "/cephfile"
|
2016-07-21 21:17:19 +08:00
|
|
|
#ceph_nfs_ceph_protocols: "3,4"
|
|
|
|
#ceph_nfs_ceph_access_type: "RW"
|
2017-09-15 23:38:19 +08:00
|
|
|
#ceph_nfs_ceph_user: "admin"
|
2018-06-19 00:33:57 +08:00
|
|
|
#ceph_nfs_ceph_squash: "Root_Squash"
|
2019-09-27 00:44:03 +08:00
|
|
|
#ceph_nfs_ceph_sectype: "sys,krb5,krb5i,krb5p"
|
2016-07-21 21:17:19 +08:00
|
|
|
|
|
|
|
###################
|
|
|
|
# FSAL RGW Config #
|
|
|
|
###################
|
|
|
|
#ceph_nfs_rgw_export_id: 20134
|
2017-10-06 04:51:23 +08:00
|
|
|
#ceph_nfs_rgw_pseudo_path: "/cephobject"
|
2016-07-21 21:17:19 +08:00
|
|
|
#ceph_nfs_rgw_protocols: "3,4"
|
|
|
|
#ceph_nfs_rgw_access_type: "RW"
|
|
|
|
#ceph_nfs_rgw_user: "cephnfs"
|
2018-06-19 00:33:57 +08:00
|
|
|
#ceph_nfs_rgw_squash: "Root_Squash"
|
2019-09-27 00:44:03 +08:00
|
|
|
#ceph_nfs_rgw_sectype: "sys,krb5,krb5i,krb5p"
|
2016-07-21 21:17:19 +08:00
|
|
|
# Note: keys are optional and can be generated, but not on containerized, where
|
|
|
|
# they must be configered.
|
|
|
|
#ceph_nfs_rgw_access_key: "QFAMEDSJP5DEKJO0DDXY"
|
|
|
|
#ceph_nfs_rgw_secret_key: "iaSFLDVvDdQt6lkNzHyW4fPLZugBAI1g17LO0+87[MAC[M#C"
|
2021-03-03 22:43:50 +08:00
|
|
|
#rgw_client_name: client.rgw.{{ ansible_facts['hostname'] }}
|
2016-05-06 02:20:03 +08:00
|
|
|
|
2017-09-03 23:32:44 +08:00
|
|
|
###################
|
|
|
|
# CONFIG OVERRIDE #
|
|
|
|
###################
|
|
|
|
|
|
|
|
# Ganesha configuration file override.
|
|
|
|
# These multiline strings will be appended to the contents of the blocks in ganesha.conf and
|
|
|
|
# must be in the correct ganesha.conf format seen here:
|
|
|
|
# https://github.com/nfs-ganesha/nfs-ganesha/blob/next/src/config_samples/ganesha.conf.example
|
|
|
|
#
|
|
|
|
# Example:
|
|
|
|
#CACHEINODE {
|
|
|
|
# #Entries_HWMark = 100000;
|
|
|
|
#}
|
|
|
|
#
|
|
|
|
#ganesha_ceph_export_overrides:
|
|
|
|
#ganesha_rgw_export_overrides:
|
2017-09-11 11:34:36 +08:00
|
|
|
#ganesha_rgw_section_overrides:
|
2017-09-03 23:32:44 +08:00
|
|
|
#ganesha_log_overrides:
|
|
|
|
#ganesha_conf_overrides: |
|
|
|
|
# CACHEINODE {
|
|
|
|
# #Entries_HWMark = 100000;
|
|
|
|
# }
|
|
|
|
|
2016-05-06 02:20:03 +08:00
|
|
|
##########
|
|
|
|
# DOCKER #
|
|
|
|
##########
|
|
|
|
|
2017-09-19 22:19:14 +08:00
|
|
|
#ceph_docker_image: "ceph/daemon"
|
2017-02-09 22:16:39 +08:00
|
|
|
#ceph_docker_image_tag: latest
|
2017-09-09 01:28:52 +08:00
|
|
|
#ceph_nfs_docker_extra_env:
|
2016-11-03 17:16:33 +08:00
|
|
|
#ceph_config_keys: [] # DON'T TOUCH ME
|
2021-04-15 22:24:22 +08:00
|
|
|
|