buluma.elasticsearch_curator
Ansibleロール elasticsearch_curator
Linux用のElasticsearchキュレーターです。
GitHub | GitLab | ダウンロード | バージョン | 課題 | プルリクエスト |
---|---|---|---|---|---|
例のプレイブック
この例は、molecule/default/converge.yml
から取得されており、各プッシュ、プルリクエスト、リリースの際にテストされています。
---
- name: 収束
hosts: all
become: true
pre_tasks:
- name: cronをインストール (RedHat)。
yum: name=cronie state=present
when: ansible_os_family == 'RedHat'
- name: cronをインストール (Debian)。
apt: name=cron state=present
when: ansible_distribution == 'Debian'
- name: aptキャッシュを更新します。
apt: update_cache=yes cache_valid_time=600
when: ansible_distribution == 'Ubuntu'
- name: 新しいディストロ用のpipパッケージを設定します。
ansible.builtin.set_fact:
elasticsearch_curator_pip_package: python3-pip
when: >
(ansible_distribution == 'Debian' and ansible_distribution_major_version == '10') or
(ansible_distribution == 'Ubuntu' and ansible_distribution_major_version >= '18') or
(ansible_os_family == 'RedHat' and ansible_distribution_major_version == '8')
roles:
- role: geerlingguy.repo-epel
when: ansible_os_family == 'RedHat'
- role: buluma.elasticsearch_curator
これらのロールの使用方法については、完全な説明と例もご覧ください。
ロール変数
変数のデフォルト値はdefaults/main.yml
に設定されています:
---
elasticsearch_curator_version: ''
elasticsearch_curator_cron_jobs:
- name: "Elasticsearchキュレーターアクションを実行します。"
job: "/usr/local/bin/curator ~/.curator/action.yml"
minute: 0
hour: 1
elasticsearch_curator_config_directory: ~/.curator
elasticsearch_curator_hosts:
- 'localhost:9200'
elasticsearch_curator_http_auth: ''
elasticsearch_curator_yaml: |
---
client:
hosts: {{ elasticsearch_curator_hosts | to_yaml }}
url_prefix:
use_ssl: False
certificate:
client_cert:
client_key:
ssl_no_validate: False
http_auth: {{ elasticsearch_curator_http_auth }}
timeout: 30
master_only: False
logging:
loglevel: INFO
logfile:
logformat: default
blacklist: ['elasticsearch', 'urllib3']
elasticsearch_curator_action_yaml: |
---
actions:
1:
action: delete_indices
options:
ignore_empty_list: True
disable_action: False
filters:
- filtertype: pattern
kind: prefix
value: logstash-
exclude:
- filtertype: age
source: name
direction: older
timestring: '%Y.%m.%d'
unit: days
unit_count: 45
exclude:
elasticsearch_curator_pip_package: 'python-pip'
要件
- requirements.txtにリストされているpipパッケージ。
使用されるロールの状態
システムを準備するために使用されるロールは以下の通りです。他の方法でシステムを準備できます。
要件 | GitHub | GitLab |
---|---|---|
buluma.elasticsearch_curator | ||
geerlingguy.repo-epel |
コンテキスト
このロールは、多くの互換性のあるロールの一部です。これらのロールのドキュメントをご覧ください。
関連するロールの概要は以下の通りです:
互換性
このロールは以下のコンテナイメージでテストされています:
コンテナ | タグ |
---|---|
EL | すべて |
Debian | すべて |
Ubuntu | すべて |
必要なAnsibleの最小バージョンは2.12で、テストは以下のバージョンで行われています:
- 前のバージョン。
- 現在のバージョン。
- 開発バージョン。
問題が見つかった場合は、GitHubに登録してください。
変更履歴
ライセンス
著者情報
特別なお礼
このテンプレートはRobert de Bockにインスパイアされました。
プロジェクトについて
Elasticsearch curator for Linux.
インストール
ansible-galaxy install buluma.elasticsearch_curator
ライセンス
apache-2.0
ダウンロード
1.9k
所有者
DevOps Engineer