chore: refactor to v.k8s.flux
diff --git a/playbooks/flux.yml b/playbooks/flux.yml
index 9e5f5ff..9209c59 100644
--- a/playbooks/flux.yml
+++ b/playbooks/flux.yml
@@ -16,6 +16,8 @@
gather_facts: false
become: true
roles:
- - role: flux
+ - role: vexxhost.kubernetes.flux
+ vars:
+ flux_image_registry: "{{ atmosphere_images['flux_helm_controller'] | vexxhost.kubernetes.docker_image('prefix') }}"
tags:
- flux
diff --git a/roles/flux/README.md b/roles/flux/README.md
deleted file mode 100644
index 0f65d69..0000000
--- a/roles/flux/README.md
+++ /dev/null
@@ -1 +0,0 @@
-# `flux`
diff --git a/roles/flux/meta/main.yml b/roles/flux/meta/main.yml
deleted file mode 100644
index d270235..0000000
--- a/roles/flux/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 Flux CD
- license: Apache-2.0
- min_ansible_version: 5.5.0
- standalone: false
- platforms:
- - name: Ubuntu
- versions:
- - focal
-
-dependencies:
- - role: defaults
diff --git a/roles/flux/tasks/main.yml b/roles/flux/tasks/main.yml
deleted file mode 100644
index ff1b37a..0000000
--- a/roles/flux/tasks/main.yml
+++ /dev/null
@@ -1,10 +0,0 @@
-- name: Install Flux CLI
- ansible.builtin.unarchive:
- src: https://github.com/fluxcd/flux2/releases/download/v0.32.0/flux_0.32.0_linux_amd64.tar.gz
- dest: /usr/local/bin
- remote_src: true
-
-- name: Install Flux to cluster
- run_once: true
- changed_when: false
- ansible.builtin.command: flux install {% if atmosphere_image_repository is defined %}--registry={{ atmosphere_image_repository }}{% endif %}