Ansible role with utilities for TripleO
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OpenDev Sysadmins 472e9b6e37 OpenDev Migration Patch 4 days ago
action_plugins Sync config_template w/ upstream 1 year ago
defaults Don't fail if hieradata(_file) are not set 1 year ago
library Don't fail if hieradata(_file) are not set 1 year ago
tasks Domain required to create user 1 year ago
tests Check if it *is* defined 1 year ago
.gitreview OpenDev Migration Patch 4 days ago
.zuul.yaml import zuul job settings from project-config 7 months ago
LICENSE Initial commit 1 year ago
README.md Update readme 1 year ago
requirements.txt Let's get this party started 1 year ago
test-requirements.txt Let's get this party started 1 year ago
tox.ini fix tox python3 overrides 6 months ago

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