commit 5233b767d7fce884e1c691f9a144aa75630a4ce3 Author: Radar231 Date: Tue Oct 19 18:34:34 2021 -0400 initial checkin diff --git a/README.md b/README.md new file mode 100644 index 0000000..bf8fa73 --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +# Ansible Role: k8s_haproxy_deploy + +## Introduction + +This role will deploy the haproxy ingress controller helm chart. + +This role requires that the 'devpath' and 'haproxy-ingress-ver' variables be set. + diff --git a/meta/main.yml b/meta/main.yml new file mode 100644 index 0000000..eb37897 --- /dev/null +++ b/meta/main.yml @@ -0,0 +1,9 @@ +galaxy_info: + author: radar231 + + license: license (GPL-2.0-or-later, MIT, etc) + min_ansible_version: 2.1 + galaxy_tags: [] +dependencies: [] + +# EOF diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..8d4690e --- /dev/null +++ b/tasks/main.yml @@ -0,0 +1,32 @@ +--- +##################################################################### +# +# haproxy_deploy role +# +# This role will deploy the haproxy ingress controller helm chart +# +# - requires that the 'devpath' variable be set +# - requires that the 'haproxy-ingress-ver' variable be set +# +##################################################################### +# tasks file for haproxy_deploy role + +- debug: msg="Deploying haproxy ingress controller." + +- name: Add haproxy helm repo + community.kubernetes.helm_repository: + name: haproxy-ingress + repo_url: "https://haproxy-ingress.github.io/charts" + +- name: Deploy haproxy ingress controller helm chart + community.kubernetes.helm: + name: haproxy-ingress + namespace: ingress-controller + create_namespace: true + chart_ref: haproxy-ingress/haproxy-ingress + chart_version: "{{ haproxy-ingress-ver }}" + values: + - controller: + hostNetwork: true + +# EOF