RETIRED. Ansible role with utilities for TripleO
Go to file
OpenDev Sysadmins 472e9b6e37 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:44:33 +00:00
action_plugins Sync config_template w/ upstream 2017-12-04 10:15:57 +01:00
defaults Don't fail if hieradata(_file) are not set 2017-12-04 10:09:55 +01:00
library Don't fail if hieradata(_file) are not set 2017-12-04 10:09:55 +01:00
tasks Domain required to create user 2017-12-13 10:07:07 +01:00
tests Check if it *is* defined 2017-07-13 17:02:29 +02:00
.gitreview OpenDev Migration Patch 2019-04-19 19:44:33 +00:00
.zuul.yaml import zuul job settings from project-config 2018-09-22 15:23:45 +00: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 fix tox python3 overrides 2018-09-26 19:01:47 -04:00

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