Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nicholaswilde/ansible-role-flux
An ansible galaxy role for Flux
https://github.com/nicholaswilde/ansible-role-flux
ansible flux flux2 fluxcd kubernetes
Last synced: about 1 month ago
JSON representation
An ansible galaxy role for Flux
- Host: GitHub
- URL: https://github.com/nicholaswilde/ansible-role-flux
- Owner: nicholaswilde
- License: apache-2.0
- Created: 2020-12-21T00:15:57.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-14T15:08:21.000Z (over 3 years ago)
- Last Synced: 2024-10-20T10:38:37.736Z (2 months ago)
- Topics: ansible, flux, flux2, fluxcd, kubernetes
- Language: Shell
- Homepage: https://galaxy.ansible.com/nicholaswilde/flux2
- Size: 42 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible Role: Flux
[![CI](https://github.com/nicholaswilde/ansible-role-flux/workflows/CI/badge.svg?event=push)](https://github.com/nicholaswilde/ansible-role-flux/actions?query=workflow%3ACI)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
[![GitHub](https://img.shields.io/github/license/nicholaswilde/ansible-role-flux)](https://github.com/nicholaswilde/ansible-role-flux/blob/main/LICENSE)
[![Ansible Role](https://img.shields.io/ansible/role/d/52478)](https://galaxy.ansible.com/nicholaswilde/flux2)This role installs the [Flux](https://github.com/fluxcd/flux2/) binary on any supported host.
## Requirements
N/A
## Role Variables
Available variables are listed below, along with default values (see [defaults/main.yaml](./defaults/main.yaml)):
app_ver: '0.5.8'
app_platform: linux
app_arch: amd64Controls for the version of Helm to be installed. See [available flux2 releases](https://github.com/fluxcd/flux2/releases/). You can upgrade or downgrade versions by changing the `app_ver`.
app_install_dir: /usr/local/bin
The location where the flux2 binary will be installed.
## Dependencies
- [andrewrothstein.unarchive-deps](https://galaxy.ansible.com/andrewrothstein/unarchive-deps)
Install dependencies
$ ansible-galaxy role install -r requirements.yaml
## Example Playbook
- hosts: all
roles:
- role: nicholaswilde.flux2## Testing
If you want to use [moleculte](https://molecule.readthedocs.io/en/latest/installation.html) to test, be sure to check out the repo in a folder titled `nicholaswilde.flux2`
```
# Checkout
$ git clone https://github.com/nicholaswilde/ansible-role-flux.git nicholaswilde.flux2
$ cd nicholaswilde.flux2
# Requirements
$ ansible-galaxy role install -r requirements.yaml
# Test
$ molecule test
# Converge
$ molecule converge
```## Pre-commit hook
If you want to automatically lint the files with a pre-commit hook, make sure you
[install the pre-commit binary](https://pre-commit.com/#install), and add a [.pre-commit-config.yaml file](./.pre-commit-config.yaml)
to your project. Then run:```bash
$ pre-commit install
$ pre-commit install-hooks
```## Inspiration
Inspiration for this repository has been taken from [Andrew Rothstein](https://github.com/andrewrothstein) and [Jeff Geerling](https://github.com/geerlingguy/).
## License
[Apache 2.0 License](./LICENSE)
## Author Information
This project was started in 2020 by [Nicholas Wilde](https://github.com/nicholaswilde/).