Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add yaook-operators play & role #79

Merged
merged 1 commit into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions playbooks/kubernetes-k8s-yaook-operators.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
- name: Apply role yaook_operators
hosts:
- "{{ hosts_manager|default(groups['manager'][0])|default('localhost') }}"
connection: local
gather_facts: false

tasks:
- name: Include yaook_operators role
ansible.builtin.include_role:
name: yaook_operators
Empty file added roles/yaook_operators/README.md
Empty file.
10 changes: 10 additions & 0 deletions roles/yaook_operators/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
yaook_operators_helm_release_namespace: yaook-operators

yaook_operators_keystone_helm_release_name: yaook-keystone-operator
yaook_operators_keystone_helm_chart_ref: /charts/keystone-operator
yaook_operators_keystone_helm_values: {}

yaook_operators_keystone_resources_helm_release_name: yaook-keystone-resources-operator
yaook_operators_keystone_resources_helm_chart_ref: /charts/keystone-resources-operator
yaook_operators_keystone_resources_helm_values: {}
21 changes: 21 additions & 0 deletions roles/yaook_operators/meta/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
galaxy_info:
author: Christian Berendt
description: Role osism.kubernetes.yaook_operators
license: Apache License 2.0
min_ansible_version: 2.16.0
platforms:
- name: Ubuntu
versions:
- jammy
- noble
- name: Debian
versions:
- bookworm
- name: EL
versions:
- "9"
galaxy_tags:
- helm
- kubernetes
- osism
20 changes: 20 additions & 0 deletions roles/yaook_operators/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
- name: Deploy keystone-operator helm chart
kubernetes.core.helm:
release_name: "{{ yaook_operators_keystone_helm_release_name }}"
chart_ref: "{{ yaook_operators_keystone_helm_chart_ref }}"
release_namespace: "{{ yaook_operators_helm_release_namespace }}"
create_namespace: true
kubeconfig: /share/kubeconfig
wait: true
values: "{{ _yaook_operators_keystone_helm_values | combine(yaook_operators_keystone_helm_values, recursive=True) }}"

- name: Deploy keystone-resources-operator helm chart
kubernetes.core.helm:
release_name: "{{ yaook_operators_keystone_resources_helm_release_name }}"
chart_ref: "{{ yaook_operators_keystone_resources_helm_chart_ref }}"
release_namespace: "{{ yaook_operators_helm_release_namespace }}"
create_namespace: true
kubeconfig: /share/kubeconfig
wait: true
values: "{{ _yaook_operators_keystone_resources_helm_values | combine(yaook_operators_keystone_resources_helm_values, recursive=True) }}"
3 changes: 3 additions & 0 deletions roles/yaook_operators/vars/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
_yaook_operators_keystone_helm_values: {}
_yaook_operators_keystone_resources_helm_values: {}