Skip to content

Instantly share code, notes, and snippets.

@sygibson
Created June 8, 2015 21:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sygibson/3bb35eeb2618f2a098a7 to your computer and use it in GitHub Desktop.
Save sygibson/3bb35eeb2618f2a098a7 to your computer and use it in GitHub Desktop.
global vars
# vi: set ft=yaml.jinja :
{% set cluster = salt['pillar.get']('ceph:cluster_name') -%}
{% set conf_file = '/etc/ceph/' + cluster + '.conf' -%}
{% set admin_keyring = '/etc/ceph/' + cluster + '.client.admin.keyring' -%}
{% set bootstrap_osd_keyring = '/var/lib/ceph/bootstrap-osd/' + cluster + '.keyring' -%}
# 'host' does not include fqdn info - and salt is setup w/ fqdn for matching nodes
# if we don't use fqdn then all of the states will break
{% set host = salt['config.get']('fqdn') -%}
{% set mon_interface = salt['pillar.get']('ceph:mon:interface') -%}
{% set fsid = salt['pillar.get']('ceph:global:fsid') -%}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment