juwai.consul-template
Ansibleロール: Consul-Template
CentOSサーバーにConsul-Templateをインストールします。
要件
Ansible 2.0.*で作成されています。
ロール変数
利用可能な変数は以下にリストされています。デフォルト値も記載しています(defaults/main.ymlを参照してください):
consul_template_enabled
consul-templateを有効にするかどうか。
デフォルトはtrueです。
consul_template_supervisor_enabled
supervisorにconsul-templateをインストールするかどうか。
デフォルトはtrueです。
consul_template_user
consul-templateのユーザー。
デフォルトのユーザーはconsulです。
consul_template_group
consul-templateのグループ。
デフォルトのグループはconsulです。
consul_template_version
consul-templateのバージョン。
デフォルトのバージョンは0.10.0です。
consul_template_release
consul-templateのリリース名。
デフォルトはconsul-template_0.10.0_linux_386です。
consul_template_archive_file
consul-templateのリリースアーカイブファイル名。
デフォルトはconsul-template_0.10.0_linux_386.tar.gzです。
consul_template_download_url
ダウンロードURL。
デフォルトはhttps://github.com/hashicorp/consul-template/releases/download/v0.10.0/consul-template_0.10.0_linux_386.tar.gzです。
consul_template_home
consul-templateのホームディレクトリ。
デフォルトは/home/consul/consul-templateです。
consul_template_config_file_template
consul-templateのメイン断片のテンプレート名。
デフォルトはconsul-template.cfg.j2です。
注意: このテンプレートは{{ consul_template_home }}/config/fragments/1_main.cfgを生成します。
consul_template_config_file
consul-templateの設定ファイル名。
デフォルトはconsul-template.cfgです。
注意: これは{{ consul_template_home }}/configの下に生成されます。
consul_template_consul_server
consul-templateが接続するConsulサーバー。
デフォルトは127.0.0.1です。
依存関係
- juwai.supervisor(consul_template_supervisor_enabledが有効な場合)
例プレイブック
- hosts: servers
roles:
- juwai.consul-template
ライセンス
MIT
著者情報
このロールは2016年にJuwai Limitedによって作成されました。
