chore: refactor to v.k8s.helm
diff --git a/playbooks/helm.yml b/playbooks/helm.yml
index 82e7aae..35a38c0 100644
--- a/playbooks/helm.yml
+++ b/playbooks/helm.yml
@@ -15,4 +15,4 @@
- hosts: controllers
become: true
roles:
- - helm
+ - vexxhost.kubernetes.helm
diff --git a/roles/helm/README.md b/roles/helm/README.md
deleted file mode 100644
index 0640d82..0000000
--- a/roles/helm/README.md
+++ /dev/null
@@ -1 +0,0 @@
-# `helm`
diff --git a/roles/helm/defaults/main.yml b/roles/helm/defaults/main.yml
deleted file mode 100644
index bd0af99..0000000
--- a/roles/helm/defaults/main.yml
+++ /dev/null
@@ -1,31 +0,0 @@
----
-# .. vim: foldmarker=[[[,]]]:foldmethod=marker
-
-# .. Copyright (C) 2022 VEXXHOST, Inc.
-# .. SPDX-License-Identifier: Apache-2.0
-
-# Default variables
-# =================
-
-# .. contents:: Sections
-# :local:
-
-
-# .. envvar:: helm_repository_apt_key [[[
-#
-# Helm APT repository GPG key
-helm_repository_apt_key: https://baltocdn.com/helm/signing.asc
-
- # ]]]
-# .. envvar:: helm_repository_url [[[
-#
-# Helm APT repository URL
-helm_repository_url: https://baltocdn.com/helm/stable/debian/
-
- # ]]]
-# .. envvar:: helm_version [[[
-#
-# Helm version to use
-helm_version: 3.8.0
-
- # ]]]
diff --git a/roles/helm/meta/main.yml b/roles/helm/meta/main.yml
deleted file mode 100644
index 1a99027..0000000
--- a/roles/helm/meta/main.yml
+++ /dev/null
@@ -1,27 +0,0 @@
-# Copyright (c) 2022 VEXXHOST, Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License"); you may
-# not use this file except in compliance with the License. You may obtain
-# a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations
-# under the License.
-
-galaxy_info:
- author: VEXXHOST, Inc.
- description: Ansible role for Helm
- license: Apache-2.0
- min_ansible_version: 5.5.0
- standalone: false
- platforms:
- - name: Ubuntu
- versions:
- - focal
-
-dependencies:
- - role: defaults
diff --git a/roles/helm/tasks/debian.yml b/roles/helm/tasks/debian.yml
deleted file mode 100644
index d3da113..0000000
--- a/roles/helm/tasks/debian.yml
+++ /dev/null
@@ -1,40 +0,0 @@
-# Copyright (c) 2022 VEXXHOST, Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License"); you may
-# not use this file except in compliance with the License. You may obtain
-# a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations
-# under the License.
-
-- name: Add apt key
- ansible.builtin.apt_key:
- url: "{{ helm_repository_apt_key }}"
- state: present
-
-- name: Configure version pinning
- ansible.builtin.template:
- src: apt-preferences.j2
- dest: /etc/apt/preferences.d/helm
- mode: "0644"
-
-- name: Add package repository
- ansible.builtin.apt_repository:
- repo: "deb {{ helm_repository_url }} all main"
- state: present
-
-- name: Install packages
- ansible.builtin.apt:
- name: ["git", "helm"]
- install_recommends: false
-
-- name: Add bash autocomplete for helm
- ansible.builtin.lineinfile:
- path: /root/.bashrc
- line: 'source <(helm completion bash)'
- insertbefore: EOF
diff --git a/roles/helm/tasks/main.yml b/roles/helm/tasks/main.yml
deleted file mode 100644
index 40121cc..0000000
--- a/roles/helm/tasks/main.yml
+++ /dev/null
@@ -1,26 +0,0 @@
-# Copyright (c) 2022 VEXXHOST, Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License"); you may
-# not use this file except in compliance with the License. You may obtain
-# a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations
-# under the License.
-
-- name: Gather operating system facts
- ansible.builtin.setup:
- gather_subset:
- - min
-
-- name: Install packages using operating system specific process
- ansible.builtin.include_tasks: "{{ ansible_os_family | lower }}.yml"
-
-- name: Install helm diff
- kubernetes.core.helm_plugin:
- plugin_path: https://github.com/databus23/helm-diff
- state: present
diff --git a/roles/helm/tasks/redhat.yml b/roles/helm/tasks/redhat.yml
deleted file mode 100644
index 260a645..0000000
--- a/roles/helm/tasks/redhat.yml
+++ /dev/null
@@ -1,24 +0,0 @@
-# Copyright (c) 2022 VEXXHOST, Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License"); you may
-# not use this file except in compliance with the License. You may obtain
-# a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations
-# under the License.
-
-- name: Add package repository
- ansible.builtin.yum:
- name: "https://harbottle.gitlab.io/harbottle-main/{{ ansible_distribution_major_version }}/x86_64/harbottle-main-release.rpm"
- disable_gpg_check: true
- state: present
-
-- name: Install packages
- ansible.builtin.yum:
- name: helm
- state: present
diff --git a/roles/helm/templates/apt-preferences.j2 b/roles/helm/templates/apt-preferences.j2
deleted file mode 100644
index f3b959a..0000000
--- a/roles/helm/templates/apt-preferences.j2
+++ /dev/null
@@ -1,3 +0,0 @@
-Package: helm
-Pin: version {{ helm_version }}-*
-Pin-Priority: 1000