diodonfrost.terragrunt
ansible-role-terragrunt
Ten role zapewnia zgodność z instalacją terragrunt na Twoim docelowym hoście.
Wymagania
Ten role został opracowany przy użyciu Ansible 2.8. Kompatybilność wsteczna nie jest gwarantowana. Użyj ansible-galaxy install diodonfrost.terragrunt
, aby zainstalować rolę na swoim systemie.
Zmienne rolne
Ten role ma wiele zmiennych. Domyślne wartości dla wszystkich tych zmiennych są następujące:
---
# domyślny plik dla ansible-role-terragrunt
# Zdefiniuj wersję terragrunt do zainstalowania
# Możliwe wartości: https://api.github.com/repos/gruntwork-io/terragrunt/releases
# Domyślnie: najnowsza
terragrunt_version: latest
# Zdefiniuj, gdzie zainstalować plik binarny Terragrunt
# Domyślnie: użyj lokalnej ścieżki systemowej zdefiniowanej w Ansible vars/*.yml
terragrunt_path: "{{ terragrunt_default_path }}"
Zależności
Brak
Przykładowy plik playbooka
To jest przykładowy plik playbooka do wdrażania roli terragrunt z Ansible Galaxy na localhost i instalacji najnowszej wersji terragrunt.
---
- hosts: localhost
become: true
roles:
- role: diodonfrost.terragrunt
Ten role może również zainstalować konkretną wersję terragrunt.
---
- hosts: localhost
become: true
roles:
- role: ansible-role-terragrunt
vars:
terragrunt_version: v0.18.0
Testowanie lokalne
Ten projekt używa Molecule do wspierania rozwoju i testowania.
Aby rozwijać lub testować, musisz zainstalować następujące rzeczy:
- Linux (np. Ubuntu)
- Docker
- Python (w tym python-pip)
- Ansible
- Molecule
- Libvirt (tylko testy na Windows)
- Vagrant (tylko testy na Windows)
Testowanie z Dockerem
# Instalacja wymagań
pip install -r requirements-dev.txt
# Testuj rolę ansible na centos 8
molecule test
# Testuj rolę ansible na ubuntu 18.04
image=ansible-ubuntu:18.04 molecule test
# Utwórz instancję centos 7
image=ansible-centos:7 molecule create
# Zastosuj rolę na instancji centos 7
image=ansible-centos:7 molecule converge
# Uruchom testy na instancji centos 7
image=ansible-centos:7 molecule verify
Testowanie z Vagrant i Libvirt
# Testuj rolę ansible na Windows
molecule test -s windows
Licencja
Apache 2
Informacje o autorze
Ten role został stworzony w 2019 roku przez diodonfrost.
Ansible role for install terragrunt on a large number of os
ansible-galaxy install diodonfrost.terragrunt