nicholaswilde.flux2

Ansible Role: Flux

CI pre-commit GitHub Ansible Role

This role sets up the Flux software on any supported host.

Requirements

None

Role Variables

Here are the available variables with their default settings (check defaults/main.yaml):

  • app_ver: '0.5.8'
    This controls which version of Flux to install. You can see available flux2 versions to upgrade or downgrade by changing app_ver.

  • app_platform: linux
    This specifies the platform for the installation.

  • app_arch: amd64
    This specifies the architecture for the installation.

  • app_install_dir: /usr/local/bin
    This is where the Flux binary will be installed.

Dependencies

To install dependencies, run:

$ ansible-galaxy role install -r requirements.yaml

Example Playbook

You can include this role in your Ansible playbook like this:

- hosts: all
  roles:
    - role: nicholaswilde.flux2

Testing

To test using molecule, clone the repository like this:

# Checkout
$ git clone https://github.com/nicholaswilde/ansible-role-flux.git nicholaswilde.flux2
$ cd nicholaswilde.flux2
# Install Requirements
$ ansible-galaxy role install -r requirements.yaml 
# Run Tests
$ molecule test
# Converge
$ molecule converge

Pre-commit Hook

If you want to automatically check your code with a pre-commit hook, follow these steps:

  1. Install the pre-commit binary.
  2. Add a .pre-commit-config.yaml file to your project.
  3. Run:
$ pre-commit install
$ pre-commit install-hooks

Inspiration

This project was inspired by work from Andrew Rothstein and Jeff Geerling.

License

This project is under the Apache 2.0 License.

Author Information

Nicholas Wilde started this project in 2020. You can find him here.

Installa
ansible-galaxy install nicholaswilde.flux2
Licenza
apache-2.0
Download
92
Proprietario