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 cert-manager play & role #82

Merged
merged 1 commit into from
Sep 3, 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
10 changes: 10 additions & 0 deletions playbooks/kubernetes-k8s-cert-manager.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
- name: Apply cert_manager role
hosts:
- "{{ hosts_manager|default(groups['manager'][0])|default('localhost') }}"
connection: local

tasks:
- name: Include cert_manager role
ansible.builtin.include_role:
name: cert_manager
Empty file added roles/cert_manager/README.md
Empty file.
5 changes: 5 additions & 0 deletions roles/cert_manager/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
cert_manager_helm_chart_ref: /charts/cert_manager
cert_manager_helm_release_name: cert-manager
cert_manager_helm_release_namespace: certificates
cert_manager_helm_values: {}
22 changes: 22 additions & 0 deletions roles/cert_manager/meta/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
galaxy_info:
author: Christian Berendt
description: Role osism.kubernetes.cert_maanger
company: OSISM GmbH
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
10 changes: 10 additions & 0 deletions roles/cert_manager/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
- name: Deploy cert-manager
kubernetes.core.helm:
release_name: "{{ cert_manager_helm_release_name }}"
chart_ref: "{{ cert_manager_helm_chart_ref }}"
release_namespace: "{{ cert_manager_helm_release_namespace }}"
create_namespace: true
kubeconfig: /share/kubeconfig
wait: true
values: "{{ _cert_manager_helm_values | combine(cert_manager_helm_values, recursive=True) }}"
2 changes: 2 additions & 0 deletions roles/cert_manager/vars/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
_cert_manager_helm_values: {}
2 changes: 1 addition & 1 deletion roles/cloudnative_pg/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
- name: Deploy helm chart
- name: Deploy cloudnative-pg
kubernetes.core.helm:
release_name: "{{ cloudnative_pg_release_name }}"
chart_ref: "{{ cloudnative_pg_chart_ref }}"
Expand Down
2 changes: 1 addition & 1 deletion roles/headlamp/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
- name: Deploy helm chart
- name: Deploy headlamp
kubernetes.core.helm:
release_name: "{{ headlamp_helm_release_name }}"
chart_ref: "{{ headlamp_helm_chart_ref }}"
Expand Down
2 changes: 1 addition & 1 deletion roles/memcached/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
- name: Deploy helm chart
- name: Deploy memcached
kubernetes.core.helm:
release_name: "{{ memcached_helm_release_name }}"
chart_ref: "{{ memcached_helm_chart_ref }}"
Expand Down
2 changes: 1 addition & 1 deletion roles/node_feature_discovery/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
- name: Deploy helm chart
- name: Deploy node-feature-discovery
kubernetes.core.helm:
release_name: "{{ node_feature_discovery_helm_release_name }}"
chart_ref: "{{ node_feature_discovery_helm_chart_ref }}"
Expand Down
4 changes: 2 additions & 2 deletions roles/yaook_operators/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
- name: Deploy keystone-operator helm chart
- name: Deploy keystone-operator
kubernetes.core.helm:
release_name: "{{ yaook_operators_keystone_helm_release_name }}"
chart_ref: "{{ yaook_operators_keystone_helm_chart_ref }}"
Expand All @@ -9,7 +9,7 @@
wait: true
values: "{{ _yaook_operators_keystone_helm_values | combine(yaook_operators_keystone_helm_values, recursive=True) }}"

- name: Deploy keystone-resources-operator helm chart
- name: Deploy keystone-resources-operator
kubernetes.core.helm:
release_name: "{{ yaook_operators_keystone_resources_helm_release_name }}"
chart_ref: "{{ yaook_operators_keystone_resources_helm_chart_ref }}"
Expand Down