2 # Variables here are applicable to all host groups NOT roles
\r
4 # This sample file generated by generate_group_vars_sample.sh
\r
6 # Dummy variable to avoid error because ansible does not recognize the
\r
7 # file as a good configuration file when no variable in it.
\r
10 # You can override vars by using host or group vars
\r
16 ######################################
\r
17 # Releases name to number dictionary #
\r
18 ######################################
\r
31 # Directory to fetch cluster fsid, keys etc...
\r
32 #fetch_directory: fetch/
\r
34 # The 'cluster' variable determines the name of the cluster.
\r
35 # Changing the default value to something else means that you will
\r
36 # need to change all the command line calls as well, for example if
\r
37 # your cluster name is 'foo':
\r
38 # "ceph health" will become "ceph --cluster foo health"
\r
40 # An easier way to handle this is to use the environment variable CEPH_ARGS
\r
41 # So run: "export CEPH_ARGS="--cluster foo"
\r
42 # With that you will be able to run "ceph health" normally
\r
45 # Inventory host group variables
\r
46 #mon_group_name: mons
\r
47 #osd_group_name: osds
\r
48 #rgw_group_name: rgws
\r
49 #mds_group_name: mdss
\r
50 #nfs_group_name: nfss
\r
51 #restapi_group_name: restapis
\r
52 #rbdmirror_group_name: rbdmirrors
\r
53 #client_group_name: clients
\r
54 #iscsi_gw_group_name: iscsi-gws
\r
55 #mgr_group_name: mgrs
\r
57 # If check_firewall is true, then ansible will try to determine if the
\r
58 # Ceph ports are blocked by a firewall. If the machine running ansible
\r
59 # cannot reach the Ceph ports for some other reason, you may need or
\r
60 # want to set this to False to skip those checks.
\r
61 #check_firewall: False
\r
67 #debian_package_dependencies:
\r
71 #centos_package_dependencies:
\r
75 # - python-setuptools
\r
76 # - libselinux-python
\r
78 #redhat_package_dependencies:
\r
81 # - python-setuptools
\r
83 # Whether or not to install the ceph-test package.
\r
86 # Enable the ntp service by default to avoid clock skew on
\r
88 #ntp_service_enabled: true
\r
90 # Set uid/gid to default '64045' for bootstrap directories.
\r
91 # '64045' is used for debian based distros. It must be set to 167 in case of rhel based distros.
\r
92 # These values have to be set according to the base OS used by the container image, NOT the host.
\r
93 #bootstrap_dirs_owner: "64045"
\r
94 #bootstrap_dirs_group: "64045"
\r
96 # This variable determines if ceph packages can be updated. If False, the
\r
97 # package resources will use "state=present". If True, they will use
\r
99 #upgrade_ceph_packages: False
\r
101 #ceph_use_distro_backports: false # DEBIAN ONLY
\r
107 #ceph_rhcs_cdn_install: False # backward compatibility with stable-2.2, will disappear in stable 3.1
\r
108 #ceph_repository_type: "{{ 'cdn' if ceph_rhcs_cdn_install else 'iso' if ceph_rhcs_iso_install else 'dummy' }}" # backward compatibility with stable-2.2, will disappear in stable 3.1
\r
109 #ceph_rhcs_iso_install: False # backward compatibility with stable-2.2, will disappear in stable 3.1
\r
110 #ceph_rhcs: False # backward compatibility with stable-2.2, will disappear in stable 3.1
\r
111 #ceph_stable: False # backward compatibility with stable-2.2, will disappear in stable 3.1
\r
112 #ceph_dev: False # backward compatibility with stable-2.2, will disappear in stable 3.1
\r
113 #ceph_stable_uca: False # backward compatibility with stable-2.2, will disappear in stable 3.1
\r
114 #ceph_custom: False # backward compatibility with stable-2.2, will disappear in stable 3.1
\r
119 # - 'repository' means that you will get ceph installed through a new repository. Later below choose between 'community', 'rhcs' or 'dev'
\r
120 # - 'distro' means that no separate repo file will be added
\r
121 # you will get whatever version of Ceph is included in your Linux distro.
\r
122 # 'local' means that the ceph binaries will be copied over from the local machine
\r
123 #ceph_origin: "{{ 'repository' if ceph_rhcs or ceph_stable or ceph_dev or ceph_stable_uca or ceph_custom else 'dummy' }}" # backward compatibility with stable-2.2, will disappear in stable 3.1
\r
124 #valid_ceph_origins:
\r
128 ceph_origin: repository
\r
129 ceph_repository: community
\r
131 #ceph_repository: "{{ 'community' if ceph_stable else 'rhcs' if ceph_rhcs else 'dev' if ceph_dev else 'uca' if ceph_stable_uca else 'custom' if ceph_custom else 'dummy' }}" # backward compatibility with stable-2.2, will disappear in stable 3.1
\r
132 #valid_ceph_repository:
\r
140 # REPOSITORY: COMMUNITY VERSION
\r
142 # Enabled when ceph_repository == 'community'
\r
144 #ceph_mirror: http://download.ceph.com
\r
145 #ceph_stable_key: https://download.ceph.com/keys/release.asc
\r
146 ceph_stable_release: luminous
\r
147 #ceph_stable_repo: "{{ ceph_mirror }}/debian-{{ ceph_stable_release }}"
\r
149 #nfs_ganesha_stable: true # use stable repos for nfs-ganesha
\r
150 #nfs_ganesha_stable_branch: V2.5-stable
\r
151 #nfs_ganesha_stable_deb_repo: "{{ ceph_mirror }}/nfs-ganesha/deb-{{ nfs_ganesha_stable_branch }}/{{ ceph_stable_release }}"
\r
154 # Use the option below to specify your applicable package tree, eg. when using non-LTS Ubuntu versions
\r
155 # # for a list of available Debian distributions, visit http://download.ceph.com/debian-{{ ceph_stable_release }}/dists/
\r
156 # for more info read: https://github.com/ceph/ceph-ansible/issues/305
\r
157 #ceph_stable_distro_source: "{{ ansible_lsb.codename }}"
\r
159 # This option is needed for _both_ stable and dev version, so please always fill the right version
\r
160 # # for supported distros, see http://download.ceph.com/rpm-{{ ceph_stable_release }}/
\r
161 #ceph_stable_redhat_distro: el7
\r
164 # REPOSITORY: RHCS VERSION RED HAT STORAGE (from 1.3)
\r
166 # Enabled when ceph_repository == 'rhcs'
\r
168 # This version is only supported on RHEL >= 7.1
\r
169 # As of RHEL 7.1, libceph.ko and rbd.ko are now included in Red Hat's kernel
\r
170 # packages natively. The RHEL 7.1 kernel packages are more stable and secure than
\r
171 # using these 3rd-party kmods with RHEL 7.0. Please update your systems to RHEL
\r
172 # 7.1 or later if you want to use the kernel RBD client.
\r
174 # The CephFS kernel client is undergoing rapid development upstream, and we do
\r
175 # not recommend running the CephFS kernel module on RHEL 7's 3.10 kernel at this
\r
176 # time. Please use ELRepo's latest upstream 4.x kernels if you want to run CephFS
\r
180 #ceph_rhcs_version: "{{ ceph_stable_rh_storage_version | default(2) }}"
\r
181 #valid_ceph_repository_type:
\r
184 #ceph_rhcs_iso_path: "{{ ceph_stable_rh_storage_iso_path | default('') }}"
\r
185 #ceph_rhcs_mount_path: "{{ ceph_stable_rh_storage_mount_path | default('/tmp/rh-storage-mount') }}"
\r
186 #ceph_rhcs_repository_path: "{{ ceph_stable_rh_storage_repository_path | default('/tmp/rh-storage-repo') }}" # where to copy iso's content
\r
188 # RHCS installation in Debian systems
\r
189 #ceph_rhcs_cdn_debian_repo: https://customername:customerpasswd@rhcs.download.redhat.com
\r
190 #ceph_rhcs_cdn_debian_repo_version: "/3-release/" # for GA, later for updates use /3-updates/
\r
193 # REPOSITORY: UBUNTU CLOUD ARCHIVE
\r
195 # Enabled when ceph_repository == 'uca'
\r
197 # This allows the install of Ceph from the Ubuntu Cloud Archive. The Ubuntu Cloud Archive
\r
198 # usually has newer Ceph releases than the normal distro repository.
\r
201 #ceph_stable_repo_uca: "http://ubuntu-cloud.archive.canonical.com/ubuntu"
\r
202 #ceph_stable_openstack_release_uca: liberty
\r
203 #ceph_stable_release_uca: "{{ansible_lsb.codename}}-updates/{{ceph_stable_openstack_release_uca}}"
\r
208 # Enabled when ceph_repository == 'dev'
\r
210 #ceph_dev_branch: master # development branch you would like to use e.g: master, wip-hack
\r
211 #ceph_dev_sha1: latest # distinct sha1 to use, defaults to 'latest' (as in latest built)
\r
213 #nfs_ganesha_dev: false # use development repos for nfs-ganesha
\r
215 # Set this to choose the version of ceph dev libraries used in the nfs-ganesha packages from shaman
\r
216 # flavors so far include: ceph_master, ceph_jewel, ceph_kraken, ceph_luminous
\r
217 #nfs_ganesha_flavor: "ceph_master"
\r
219 #ceph_iscsi_config_dev: true # special repo for deploying iSCSI gateways
\r
222 # REPOSITORY: CUSTOM
\r
224 # Enabled when ceph_repository == 'custom'
\r
226 # Use a custom repository to install ceph. For RPM, ceph_custom_repo should be
\r
227 # a URL to the .repo file to be installed on the targets. For deb,
\r
228 # ceph_custom_repo should be the URL to the repo base.
\r
230 #ceph_custom_repo: https://server.domain.com/ceph-custom-repo
\r
233 # ORIGIN: LOCAL CEPH INSTALLATION
\r
235 # Enabled when ceph_repository == 'local'
\r
237 # Path to DESTDIR of the ceph install
\r
238 #ceph_installation_dir: "/path/to/ceph_installation/"
\r
239 # Whether or not to use installer script rundep_installer.sh
\r
240 # This script takes in rundep and installs the packages line by line onto the machine
\r
241 # If this is set to false then it is assumed that the machine ceph is being copied onto will already have
\r
242 # all runtime dependencies installed
\r
243 #use_installer: false
\r
244 # Root directory for ceph-ansible
\r
245 #ansible_dir: "/path/to/ceph-ansible"
\r
248 ######################
\r
249 # CEPH CONFIGURATION #
\r
250 ######################
\r
254 # Each cluster requires a unique, consistent filesystem ID. By
\r
255 # default, the playbook generates one for you and stores it in a file
\r
256 # in `fetch_directory`. If you want to customize how the fsid is
\r
257 # generated, you may find it useful to disable fsid generation to
\r
258 # avoid cluttering up your ansible repo. If you set `generate_fsid` to
\r
259 # false, you *must* generate `fsid` in another way.
\r
260 # ACTIVATE THE FSID VARIABLE FOR NON-VAGRANT DEPLOYMENT
\r
261 #fsid: "{{ cluster_uuid.stdout }}"
\r
262 #generate_fsid: true
\r
264 #ceph_conf_key_directory: /etc/ceph
\r
271 #rbd_cache_writethrough_until_flush: "true"
\r
272 #rbd_concurrent_management_ops: 20
\r
274 #rbd_client_directories: true # this will create rbd_client_log_path and rbd_client_admin_socket_path directories with proper permissions
\r
276 # Permissions for the rbd_client_log_path and
\r
277 # rbd_client_admin_socket_path. Depending on your use case for Ceph
\r
278 # you may want to change these values. The default, which is used if
\r
279 # any of the variables are unset or set to a false value (like `null`
\r
280 # or `false`) is to automatically determine what is appropriate for
\r
281 # the Ceph version with non-OpenStack workloads -- ceph:ceph and 0770
\r
282 # for infernalis releases, and root:root and 1777 for pre-infernalis
\r
285 # For other use cases, including running Ceph with OpenStack, you'll
\r
286 # want to set these differently:
\r
288 # For OpenStack on RHEL, you'll want:
\r
289 # rbd_client_directory_owner: "qemu"
\r
290 # rbd_client_directory_group: "libvirtd" (or "libvirt", depending on your version of libvirt)
\r
291 # rbd_client_directory_mode: "0755"
\r
293 # For OpenStack on Ubuntu or Debian, set:
\r
294 # rbd_client_directory_owner: "libvirt-qemu"
\r
295 # rbd_client_directory_group: "kvm"
\r
296 # rbd_client_directory_mode: "0755"
\r
298 # If you set rbd_client_directory_mode, you must use a string (e.g.,
\r
299 # 'rbd_client_directory_mode: "0755"', *not*
\r
300 # 'rbd_client_directory_mode: 0755', or Ansible will complain: mode
\r
301 # must be in octal or symbolic form
\r
302 #rbd_client_directory_owner: null
\r
303 #rbd_client_directory_group: null
\r
304 #rbd_client_directory_mode: null
\r
306 #rbd_client_log_path: /var/log/ceph
\r
307 #rbd_client_log_file: "{{ rbd_client_log_path }}/qemu-guest-$pid.log" # must be writable by QEMU and allowed by SELinux or AppArmor
\r
308 #rbd_client_admin_socket_path: /var/run/ceph # must be writable by QEMU and allowed by SELinux or AppArmor
\r
312 # You must define either monitor_interface, monitor_address or monitor_address_block.
\r
313 # These variables must be defined at least in all.yml and overrided if needed (inventory host file or group_vars/*.yml).
\r
314 # Eg. If you want to specify for each monitor which address the monitor will bind to you can set it in your **inventory host file** by using 'monitor_address' variable.
\r
315 # Preference will go to monitor_address if both monitor_address and monitor_interface are defined.
\r
316 # To use an IPv6 address, use the monitor_address setting instead (and set ip_version to ipv6)
\r
317 monitor_interface: ens3
\r
318 #monitor_address: 0.0.0.0
\r
319 #monitor_address_block: subnet
\r
320 # set to either ipv4 or ipv6, whichever your network is using
\r
322 #mon_use_fqdn: false # if set to true, the MON name used will be the fqdn in the ceph.conf
\r
326 journal_size: 100 # OSD journal size in MB
\r
327 public_network: 100.64.128.40/24
\r
328 cluster_network: "{{ public_network }}"
\r
329 #osd_mkfs_type: xfs
\r
330 #osd_mkfs_options_xfs: -f -i size=2048
\r
331 #osd_mount_options_xfs: noatime,largeio,inode64,swalloc
\r
332 #osd_objectstore: filestore
\r
334 # xattrs. by default, 'filestore xattr use omap' is set to 'true' if
\r
335 # 'osd_mkfs_type' is set to 'ext4'; otherwise it isn't set. This can
\r
336 # be set to 'true' or 'false' to explicitly override those
\r
337 # defaults. Leave it 'null' to use the default for your chosen mkfs
\r
339 #filestore_xattr_use_omap: null
\r
343 #mds_use_fqdn: false # if set to true, the MDS name used will be the fqdn in the ceph.conf
\r
344 #mds_allow_multimds: false
\r
347 ## Rados Gateway options
\r
349 #radosgw_dns_name: your.subdomain.tld # subdomains used by radosgw. See http://ceph.com/docs/master/radosgw/config/#enabling-subdomain-s3-calls
\r
350 #radosgw_resolve_cname: false # enable for radosgw to resolve DNS CNAME based bucket names
\r
351 #radosgw_civetweb_port: 8080
\r
352 #radosgw_civetweb_num_threads: 100
\r
353 # For additional civetweb configuration options available such as SSL, logging,
\r
354 # keepalive, and timeout settings, please see the civetweb docs at
\r
355 # https://github.com/civetweb/civetweb/blob/master/docs/UserManual.md
\r
356 #radosgw_civetweb_options: "num_threads={{ radosgw_civetweb_num_threads }}"
\r
357 # You must define either radosgw_interface, radosgw_address.
\r
358 # These variables must be defined at least in all.yml and overrided if needed (inventory host file or group_vars/*.yml).
\r
359 # Eg. If you want to specify for each radosgw node which address the radosgw will bind to you can set it in your **inventory host file** by using 'radosgw_address' variable.
\r
360 # Preference will go to radosgw_address if both radosgw_address and radosgw_interface are defined.
\r
361 # To use an IPv6 address, use the radosgw_address setting instead (and set ip_version to ipv6)
\r
362 #radosgw_interface: interface
\r
363 #radosgw_address: "{{ '0.0.0.0' if rgw_containerized_deployment else 'address' }}" # backward compatibility with stable-2.2, will disappear in stable 3.1
\r
364 #radosgw_address_block: subnet
\r
365 #radosgw_keystone: false # activate OpenStack Keystone options full detail here: http://ceph.com/docs/master/radosgw/keystone/
\r
366 # Rados Gateway options
\r
367 #email_address: foo@bar.com
\r
369 ## REST API options
\r
371 #restapi_interface: "{{ monitor_interface }}"
\r
372 #restapi_address: "{{ monitor_address }}"
\r
373 #restapi_port: 5000
\r
376 # enable this mode _only_ when you have a single node
\r
377 # if you don't want it keep the option commented
\r
378 #common_single_host_mode: true
\r
380 ## Handlers - restarting daemons after a config change
\r
381 # if for whatever reasons the content of your ceph configuration changes
\r
382 # ceph daemons will be restarted as well. At the moment, we can not detect
\r
383 # which config option changed so all the daemons will be restarted. Although
\r
384 # this restart will be serialized for each node, in between a health check
\r
385 # will be performed so we make sure we don't move to the next node until
\r
386 # ceph is not healthy
\r
387 # Obviously between the checks (for monitors to be in quorum and for osd's pgs
\r
388 # to be clean) we have to wait. These retries and delays can be configurable
\r
389 # for both monitors and osds.
\r
391 # Monitor handler checks
\r
392 #handler_health_mon_check_retries: 5
\r
393 #handler_health_mon_check_delay: 10
\r
395 # OSD handler checks
\r
396 #handler_health_osd_check_retries: 40
\r
397 #handler_health_osd_check_delay: 30
\r
398 #handler_health_osd_check: true
\r
400 # MDS handler checks
\r
401 #handler_health_mds_check_retries: 5
\r
402 #handler_health_mds_check_delay: 10
\r
404 # RGW handler checks
\r
405 #handler_health_rgw_check_retries: 5
\r
406 #handler_health_rgw_check_delay: 10
\r
408 # NFS handler checks
\r
409 #handler_health_nfs_check_retries: 5
\r
410 #handler_health_nfs_check_delay: 10
\r
412 # RBD MIRROR handler checks
\r
413 #handler_health_rbd_mirror_check_retries: 5
\r
414 #handler_health_rbd_mirror_check_delay: 10
\r
416 # MGR handler checks
\r
417 #handler_health_mgr_check_retries: 5
\r
418 #handler_health_mgr_check_delay: 10
\r
424 # Confiure the type of NFS gatway access. At least one must be enabled for an
\r
425 # NFS role to be useful
\r
427 # Set this to true to enable File access via NFS. Requires an MDS role.
\r
428 #nfs_file_gw: false
\r
429 # Set this to true to enable Object access via NFS. Requires an RGW role.
\r
432 ###################
\r
433 # CONFIG OVERRIDE #
\r
434 ###################
\r
436 # Ceph configuration file override.
\r
437 # This allows you to specify more configuration options
\r
438 # using an INI style format.
\r
439 # The following sections are supported: [global], [mon], [osd], [mds], [rgw]
\r
442 # ceph_conf_overrides:
\r
447 #ceph_conf_overrides: {}
\r
454 #disable_transparent_hugepage: true
\r
456 # - { name: kernel.pid_max, value: 4194303 }
\r
457 # - { name: fs.file-max, value: 26234859 }
\r
458 # - { name: vm.zone_reclaim_mode, value: 0 }
\r
459 # - { name: vm.swappiness, value: 10 }
\r
460 # - { name: vm.min_free_kbytes, value: "{{ vm_min_free_kbytes }}" }
\r
462 # For Debian & Red Hat/CentOS installs set TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES
\r
463 # Set this to a byte value (e.g. 134217728)
\r
464 # A value of 0 will leave the package default.
\r
465 #ceph_tcmalloc_max_total_thread_cache: 0
\r
473 #ceph_docker_image: "ceph/daemon"
\r
474 #ceph_docker_image_tag: latest
\r
475 #ceph_docker_registry: docker.io
\r
476 #ceph_docker_enable_centos_extra_repo: false
\r
477 #ceph_docker_on_openstack: false
\r
478 #ceph_mon_docker_interface: "{{ monitor_interface }}" # backward compatibility with stable-2.2, will disappear in stable 3.1
\r
479 #ceph_mon_docker_subnet: "{{ public_network }}" # backward compatibility with stable-2.2, will disappear in stable 3.1
\r
480 #mon_containerized_deployment: False # backward compatibility with stable-2.2, will disappear in stable 3.1
\r
481 #osd_containerized_deployment: False # backward compatibility with stable-2.2, will disappear in stable 3.1
\r
482 #mds_containerized_deployment: False # backward compatibility with stable-2.2, will disappear in stable 3.1
\r
483 #rgw_containerized_deployment: False # backward compatibility with stable-2.2, will disappear in stable 3.1
\r
484 #containerized_deployment: "{{ True if mon_containerized_deployment or osd_containerized_deployment or mds_containerized_deployment or rgw_containerized_deployment else False }}" # backward compatibility with stable-2.2, will disappear in stable 3.1
\r
490 #containerized_deployment_with_kv: false
\r
491 #mon_containerized_default_ceph_conf_with_kv: false
\r
493 #kv_endpoint: 127.0.0.1
\r
497 # this is only here for usage with the rolling_update.yml playbook
\r
498 # do not ever change this here
\r
499 #rolling_update: false
\r