tcharl.ansible_volumes

ボリューム

  • Galaxy: Ansible Galaxy
  • Lint & 要件: Molecule
  • テスト: ビルドステータス
  • チャット: チャットに参加

この役割は、最も使用されているLVM Cookbookの拡張版です。 Thinpoolとそれに関連するメタデータを作成する機能を追加します。

ロール変数

通常の変数に加え、thinpoolを構成するためにいくつかの変数を宣言できます。

---
lvmetanames:
  ...
  metadata: <別のlv名> # メタデータの論理ボリュームを宣言
---
lvmetanames:
  ...
  autoextendtreshold: <数値> # 自動拡張プロファイルの閾値
  autoextendpercent: <数値> # 自動拡張プロファイルの割合

完全な例

---
  vars:
    lvm_groups:
      - vgname: myvg
        disks:
          - /dev/sdb1
        create: true
        lvnames:
          - lvname: notathinpool # オリジナルの役割
            size: 40%VG
            opts: "" 
            create: true
            filesystem: xfs
            mntp: /var/stuff
            mount: true
        lvmetanames:
          - lvname: thinpool
            size: 40%VG
            opts: "--wipesignatures y"
            create: true
            metadata: myvg/thinpoolmeta
            autoextendtreshold: 80
            autoextendpercent: 20
            filesystem: xfs
            mntp: /var/lib/docker
            mount: true
          - lvname: thinpoolmeta
            size: 10%VG
            opts: "--wipesignatures y"
            create: true
    manage_lvm: true

また、NFSサーバーも構成しますが、機械がKerberosで保護されている場合のみです(設定するにはtcharl.ansible_securehostを参照)。

依存関係

前述の通り、mrlesmithjr.ansible-manage-lvm

例のプレイブック

分子テストで宣言された変数その影響を確認してください。

ライセンス

Apache-2

著者情報

プロジェクトについて

Wrapper role letting you to create PV, LV, thinpools and pool metadata.

インストール
ansible-galaxy install tcharl.ansible_volumes
ライセンス
other
ダウンロード
4.5k
所有者
Osgiliath frameworks and all stuff from the Osgiliath corp!