RETIRED. Ansible role with utilities for TripleO
Go to file
Flavio Percoco 89c60bb8e3 Add .zuul.yaml
Change-Id: I01db92bee7f13ab015f82aec4a2e181c8fba81ce
2017-11-22 13:46:51 +01:00
action_plugins Might be the right path 2017-11-01 16:04:04 +01:00
defaults Use a variable for the namespace 2017-08-30 11:22:31 +02:00
library Vendor config_template for now 2017-11-01 14:40:32 +01:00
tasks Use keystone's image for registering endpoints 2017-11-07 09:51:01 +11:00
tests Check if it *is* defined 2017-07-13 17:02:29 +02:00
.zuul.yaml Add .zuul.yaml 2017-11-22 13:46:51 +01:00
LICENSE Initial commit 2017-07-13 10:44:50 +02:00
README.md Update readme 2017-07-13 13:20:13 +02:00
requirements.txt Let's get this party started 2017-07-13 13:18:13 +02:00
test-requirements.txt Let's get this party started 2017-07-13 13:18:13 +02:00
tox.ini Let's get this party started 2017-07-13 13:18:13 +02:00

README.md

ansible-role-k8s-tripleo

You can call this module directly:

- name: Test hieradata
  parse_tripleo_hiera:
    hieradata:
      glance::api::v1: True
    schema:
      glance::api::v1: DEFAULT.enable_glance_v1
  register: result


- name: Check values
  fail:
    msg: "DEFAULT not in conf_dict"
  when:
    - not result.conf_dict['DEFAULT']
    - not result.conf_dict['DEFAULT']['enable_glance_v1']

Or just include the role:

- name: Test include role
  include_role:
    name: 'ansible-role-k8s-tripleo'
  vars:
    hieradata:
      glance::api::v1: True
    schema:
      glance::api::v1: DEFAULT.enable_glance_v1
    fact_variable: 'glance_config'


- name: Check fact glance_config
  fail:
    msg: "glance_config not set"
  when:
    - not glance_config