buluma.restore

Ansible役割 restore

この役割の目的は、システムにオブジェクトを復元することです。

GitHub バージョン 問題 プルリクエスト ダウンロード
github Version Issues PullRequests Ansible Role

例のプレイブック

この例はmolecule/default/converge.ymlから取られ、各プッシュ、プルリクエスト、およびリリースでテストされています。

---
- name: Converge
  hosts: all
  become: true
  gather_facts: true

  roles:
    - role: buluma.restore

マシンを準備する必要があります。CIでは、molecule/default/prepare.ymlを使用してこれが行われます:

---
- name: Prepare
  hosts: all
  gather_facts: false
  become: true

  roles:
    - role: buluma.bootstrap
    - role: buluma.core_dependencies
    - role: buluma.mysql
    - role: buluma.buildtools
    - role: buluma.epel
    - role: buluma.python_pip
    - role: buluma.postgres

これらの役割の使用方法に関する完全な説明と例も確認してください。

役割の変数

変数のデフォルト値はdefaults/main.ymlに設定されています:

---
# restoreのデフォルトファイル

# 復元されるオブジェクトはどのディレクトリに保存されていますか?
restore_directory: backups

# 管理ノードに一時的に配置する必要のあるオブジェクトのディレクトリ
restore_remote_directory: /tmp

# mysqlデータベースにログインするための資格情報、mysqlオブジェクトの復元時のみ必要です。
# restore_mysql_username: "my_user"
# restore_mysql_password: "my_pass"

# 復元するオブジェクトのリスト。
# 各リスト項目には次のものが必要です:
# - ローカルでオブジェクトを見つけるための名前。
#   種類、ディレクトリまたはmysqlのいずれか。
#   行き先、オブジェクトを解凍するためのディレクトリ。
#
# 注記: [backup role](http://galaxy.ansible.com/buluma/backup)を使用して復元可能なオブジェクトを作成できます。この役割で作成されたオブジェクトは親ディレクトリを含むため、ここで言及された宛先は、ディレクトリの最後の部分を~欠落~させます。

restore_objects:
  - name: varspool
    type: directory
    destination: /var
#  - name: drupal
#    type: mysql
#    destination: drupal

要件

使用される役割の状態

システムを準備するために次の役割が使用されます。他の方法でシステムを準備することもできます。

要件 GitHub バージョン
buluma.backup Ansible Molecule Version
buluma.bootstrap Ansible Molecule Version
buluma.core_dependencies Ansible Molecule Version
buluma.mysql Ansible Molecule Version
buluma.buildtools Ansible Molecule Version
buluma.epel Ansible Molecule Version
buluma.python_pip Ansible Molecule Version
buluma.postgres Ansible Molecule Version

コンテキスト

この役割は多くの互換性のある役割の一部です。さらなる情報については、これらの役割の文書をご覧ください。

関連する役割の概要は以下の通りです:

dependencies

互換性

この役割は以下のコンテナイメージでテストされています:

コンテナ タグ
EL 8, 9
Fedora 38, 39, 40
opensuse すべて

必要なAnsibleの最小バージョンは2.12で、以下でテストが行われました:

  • 前のバージョン。
  • 現在のバージョン。
  • 開発バージョン。

問題が見つかった場合は、GitHubに登録してください。

変更履歴

役割の歴史

ライセンス

Apache-2.0

著者情報

シャドウ・ウォーカー

プロジェクトについて

The purpose of this role is to restore objects to your system.

インストール
ansible-galaxy install buluma.restore
ライセンス
apache-2.0
ダウンロード
6.5k
所有者
DevOps Engineer