mila.bareos

Bareos

BareOSサーバーとクライアントを設定する役割です。

変数

サーバー

注: より多くのオプションは defaults/main.yml で確認できます。

  • bareos_install_server - サーバー用のパッケージをインストールします(デフォルトは false)。これにより、postgresqlもインストールされることに注意してください!
  • bareos_setup_db - postgresqlデータベース bareos が存在するか確認します。存在しない場合は作成し、データを入力します(デフォルトは false)。
  • bareos_setup_db_sensu - 監視用の sensu データベースユーザーを作成します(デフォルトは false)。
  • bareos_sensu_postgres_pass - sensuユーザーのpostgresqlパスワードを設定します。
  • bareos_email - メッセージ(Daemon、Standard)やカタログのブートストラップで使用されるメールアドレス。
  • bareos_dir_ip_eth - ディレクターのイーサネットIPアドレス。
  • bareos_dir_max_concurrent_jobs - [オプション] ディレクターでの最大同時ジョブ数、デフォルトは50です。
  • bareos_director - クライアントの /etc/hosts でバックアップディレクターのIPアドレスを上書きする必要がある場合。
  • bareos_repo - デフォルトはBareos Community Repositoryです。Bareos Subscription Repositoryを使用するように変更できます。
  • bareos_sd_max_concurrent_jobs - [オプション] SDレベルの最大同時ジョブ数、デフォルトは50です。
bareos_director:
  ip: 10.0.0.1
  name: backup
  • bareos_clients - 次のフォーマットでクライアントのリスト:
bareos_clients:
  - name: some-hostname
    ansible_delegate_hostname: some-hostname
    address: 10.1.1.1
    password: MySuperSecretPassword
    enable_backup_job: true
    state: present                      # オプション
    autostart: true                     # オプション
    director_ip: 10.0.0.1               # オプション
    director_name: backup               # オプション
    max_job_bandwidth: 1 mb/s           # オプション
    max_concurrent_jobs: 42             # オプション、デフォルトは '20'
  • bareos_filesets: 次のフォーマットでファイルセットのリスト:
bareos_filesets:
  - name: FilesetFoo
    description: "Backup Foo"
    include_files:
      - /home/foo
    exclude_files:
      - /home/foo/bar

[!WARNING] bareos_filesets[*].include_file は非推奨で、複数のファイルパスを含むリストを定義できる bareos_filesets[*].include_files に置き換えられました。

[!WARNING] bareos_filesets[*].exclude_file は非推奨で、ファイルパスのリストを除外するための bareos_filesets[*].exclude_files に置き換えられました。

  • bareos_pools: 次のフォーマットでプールのリスト:
bareos_pools:
  - name: FullFoo
    retention: "365 days"               # オプション
    max_vol_bytes: 50G                  # オプション
    max_vol: 1000                       # オプション
    next_pool: FullFooOffsite           # オプション
    label: "FullFoo-"
    storage: FileFoo                    # ジョブ定義レベルで定義されている場合はオプション
  - name: IncrementalFoo
    retention: "365 days"
    max_vol_bytes: 50G
    max_vol: 1000
    label: "IncrementalFoo-"
    storage: FileFoo                    # ジョブ定義レベルで定義されている場合はオプション

bareos_dir_storage: 次のフォーマットでストレージのリスト:

bareos_dir_storage:
  - name: FileFoo
    device: FileStorageFoo
    bareos_dir_ip: 10.0.0.1
    media_type: File2                   # オプション、デフォルトは 'File'
    max_concurrent_jobs: 42             # オプション、デフォルトは '50'

device は複数のデバイスがある場合は devices にもできます:

bareos_dir_storage:
  - name: FileFoo
    devices:
        - FileStorageFoo
        - FileStorageBar
    bareos_dir_ip: 10.0.0.1
    media_type: File2                   # オプション、デフォルトは 'File'
    max_concurrent_jobs: 42             # オプション、デフォルトは '50'

bareos_devices: 次のフォーマットでデバイスのリスト:

bareos_devices:
  - name: FileStorageFoo
    archive_device: /backup
    block_device: /dev/mapper/backup    # オプション
    fstype: 'ext4'                      # デフォルト
    mode: '0750'                        # デフォルト
    opts: ''                            # オプション、ansible.posix.mount用
    state: 'mounted'                    # デフォルト、ansible.posix.mount用
    media_type: File2                   # オプション、デフォルトは 'File'
    max_concurrent_jobs: 42             # オプション、デフォルトは '50'

[!WARNING] bareos_devices[*].arch_device は非推奨で、 bareos_devices[*].archive_device に置き換えられました。

bareos_schedules: 次のフォーマットでスケジュールのリスト:

bareos_schedules:
- name: ScheduleFoo
  full: "Full on 1 at 02:23"
  incr: "Incremental daily at 02:25"

bareos_jobdefs: 次のフォーマットでジョブ定義のリスト:

bareos_jobdefs:
  - name: JobDefFoo
    level: Incremental
    client: foo-fd
    fileset: FilesetFoo
    schedule: ScheduleFoo
    storage: FileFoo                    # オプション
    pool: IncrementalFoo
    full_pool: FullFoo
    incr_pool: IncrementalFoo
    type: JOB_TYPE                      # オプション、デフォルトは 'Backup'
    max_concurrent_jobs: 42             # オプション、デフォルトは '50'

bareos_jobs: 次のフォーマットでジョブのリスト:

bareos_jobs:
  - name: JobFoo
    jobdef: JobDefFoo
    client: foo-fd

注意:

  • ansible_delegate_hostname は ansibleインベントリリストの inventory_hostname と一致する必要があります。一部のタスクはバックアップサーバーからこのクライアントに委任されます。
  • enable_backup_job - バックアップジョブ DefaultJobLinux を作成します。
  • state - absent に設定すると、クライアントがサーバー設定から削除されます(デフォルトは present)。
  • autostart - 最初のバックアップをすぐにスケジュールします(デフォルトは true)。
  • director_ip - [オプション] bareos_director と同様、異なる場所で設定します。
  • director_name - [オプション] bareos_director と同様、異なる場所で設定します。

クライアント

  • bareos_install_client - クライアント用のパッケージをインストールします(デフォルトは false)。

例のプレイブック

---
- hosts: bareos-client
  become: true
  roles:
    - { name: bareos, tags: bareos }

- hosts: bareos-server
  become: true
  roles:
    - { name: bareos, tags: bareos }

ライセンス

GNU GPL

著者情報

Jan Michalek 別名: VeselaHouba

プロジェクトについて

Role for managing bareos server & clients

インストール
ansible-galaxy install mila.bareos
ライセンス
gpl-3.0
ダウンロード
842
所有者
Quebec Artificial Intelligence Institute