tripleo-ansible/tripleo_ansible/roles/tripleo-ceph-work-dir
John Fulton 4d38019467 Introduce ansible roles for ceph preparation
Create five ansible roles prefixed with "tripleo-ceph-" to
prepare the undercloud to run ceph-ansible. These roles were
previously embedded as tasks in tripleo-heat-templates.
ceph-ansible assumes its working directory persists and is
configured by the user manually. TripleO integration requires
that these steps be automated and these roles perform that
automation.

The roles may be used to create an ansible working directory
with inventory, a ceph-ansible fetch directory, a system uuid
map for node-specific-overrides, and runs ceph-ansible with
the required options.

Add ceph.yaml to the playbooks directory which can be used for
development of these roles with --skip-tags run_ceph_ansible.

Change-Id: I19cd58275a0b8f8f84776a98008cd9b10ceda908
2019-06-29 08:57:33 -04:00
..
meta Introduce ansible roles for ceph preparation 2019-06-29 08:57:33 -04:00
tasks Introduce ansible roles for ceph preparation 2019-06-29 08:57:33 -04:00
README.md Introduce ansible roles for ceph preparation 2019-06-29 08:57:33 -04:00

README.md

Ansible Role to manage a ceph-ansible working directory

The aim of this role and its supporting roles is to automate steps that a ceph-ansible user normally does manually so that TripleO may complete these steps for the user before and after ceph-ansible runs.

Creates a directory within config-download called "ceph-ansible" which contains the following contents, which are prerequisites for ceph-ansible to be used:

  • group_vars directory
  • host_vars directory
  • an inventory with the host groups ceph-ansible expects
  • an extra_vars.yml file

The group_vars directory will be populated with the file all.yml which contains content from the ceph_ansible_group_vars_all variable. Additional files in group_vars will be populated by config-download external_deploy_tasks Ansible embdeded directly in TripleO Heat Templates.

The host_vars directory will be populated for each host based on that host's UUID by the tripleo-ceph-uuid role.

The extra_vars.yml file will be populated with content from the ceph_ansible_extra_vars variable.

This role also crecates an empty fetch_directory within the work directory but the tripleo-ceph-fetch-dir role should be used to populate and persist this fecth directory before the tripleo-run- ceph-ansible role is used.

Requirements

None

Role Variables

  • ceph_ansible_group_vars_all: map containing all variables typically found in ceph-ansible/group_vars/all.yml.

  • ceph_ansible_extra_vars: map containing all variables the user wishes to pass to the ceph-ansible run using 'ansible-playbook --extra-vars @extra_vars.yml'

  • ceph_ansible_private_key_file: The private SSH key that ceph-ansible will use to connect to the nodes it will configure. (defaults to the config-download "{{ playbook_dir }}/ssh_private_key")

Dependencies

  • tripleo-ceph-common