Skip to content

Commit

Permalink
Add yaook-operators play & role
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Berendt <[email protected]>
  • Loading branch information
berendt committed Sep 2, 2024
1 parent dc0bd8f commit 29493cf
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 0 deletions.
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.
Binary file added roles/yaook_operators/defaults/.main.yml.swp
Binary file not shown.
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_operator_keystone_helm_release_name: yaook-keystone-operator
yaook_operator_keystone_helm_chart_ref: /charts/keystone-operator
yaook_operator_keystone_helm_values: {}

yaook_operator_keystone_resources_helm_release_name: yaook-keystone-resources-operator
yaook_operator_keystone_resources_helm_chart_ref: /charts/keystone-resources-operator
yaook_operator_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_operator_keystone_helm_release_name }}"
chart_ref: "{{ yaook_operator_keystone_helm_chart_ref }}"
release_namespace: "{{ yaook_operators_helm_release_namespace }}"
create_namespace: true
kubeconfig: /share/kubeconfig
wait: true
values: "{{ _yaook_operator_keystone_helm_values | combine(yaook_operator_keystone_helm_values, recursive=True) }}"

- name: Deploy keystone-resources-operator helm chart
kubernetes.core.helm:
release_name: "{{ yaook_operator_keystone_resources_helm_release_name }}"
chart_ref: "{{ yaook_operator_keystone_resources_helm_chart_ref }}"
release_namespace: "{{ yaook_operators_helm_release_namespace }}"
create_namespace: true
kubeconfig: /share/kubeconfig
wait: true
values: "{{ _yaook_operator_keystone_resources_helm_values | combine(yaook_operator_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_operator_keystone_helm_values: {}
_yaook_operator_keystone_resources_helm_values: {}

0 comments on commit 29493cf

Please sign in to comment.