diodonfrost.terragrunt

ansible-role-terragrunt

molecule Ansible Galaxy

このロールは、ターゲットホストにTerragruntをインストールするための手続きを提供します。

必要条件

このロールはAnsible 2.8を使用して開発されました。バージョンの互換性は保証されていません。 ロールをシステムにインストールするには、ansible-galaxy install diodonfrost.terragruntを使用します。

ロール変数

このロールには複数の変数があります。これらの変数のデフォルトは以下の通りです:

---
# ansible-role-terragruntのデフォルトファイル

# インストールするTerragruntのバージョンを定義
# 可能な値: https://api.github.com/repos/gruntwork-io/terragrunt/releases
# デフォルト: latest
terragrunt_version: latest

# Terragruntバイナリをインストールする場所を定義
# デフォルト: Ansible vars/*.ymlに定義されたローカルシステムパスを使用
terragrunt_path: "{{ terragrunt_default_path }}"

依存関係

なし

サンプルプレイブック

これは、Ansible Galaxyのterragruntロールをローカルホストにデプロイし、最新のterragruntバージョンをインストールするためのサンプルプレイブックファイルです。

---
- hosts: localhost
  become: true
  roles:
    - role: diodonfrost.terragrunt

このロールは、特定のバージョンのterragruntをインストールすることもできます。

---
- hosts: localhost
  become: true
  roles:
    - role: ansible-role-terragrunt
      vars:
        terragrunt_version: v0.18.0

ローカルテスト

このプロジェクトは、開発とテストを支援するためにMoleculeを使用しています。

開発またはテストを行うには、以下をインストールしておく必要があります:

Dockerでのテスト

# 依存関係をインストール
pip install -r requirements-dev.txt

# CentOS 8でansibleロールをテスト
molecule test

# Ubuntu 18.04でansibleロールをテスト
image=ansible-ubuntu:18.04 molecule test

# CentOS 7インスタンスを作成
image=ansible-centos:7 molecule create

# CentOS 7インスタンスにロールを適用
image=ansible-centos:7 molecule converge

# CentOS 7インスタンスでテストを実行
image=ansible-centos:7 molecule verify

VagrantおよびLibvirtでのテスト

# Windowsでansibleロールをテスト
molecule test -s windows

ライセンス

Apache 2

著者情報

このロールは2019年にdiodonfrostによって作成されました。

プロジェクトについて

Ansible role for install terragrunt on a large number of os

インストール
ansible-galaxy install diodonfrost.terragrunt
ライセンス
apache-2.0
ダウンロード
46k
所有者