tcharl.ansible_volumes

  • Galaxy: Ansible Galaxy
  • 代码检查与需求: Molecule
  • 测试: 构建状态
  • 聊天: 加入聊天 https://gitter.im/OsgiliathEnterprise/platform

这个角色是 最常用的 lvm 食谱 的扩展。 它增加了创建 thinpool 及其相关元数据的能力。

角色变量

除了 常见变量,你还可以声明一些变量来配置 thinpool。

---
lvmetanames:
  ...
  metadata: <另一个 lvname> # 声明元数据逻辑卷
---
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!