tcharl.ansible_volumes

Volumes

  • Galaxy: Ansible Galaxy
  • Lint & requirements: Molecule
  • Tests: Build Status
  • Chat: Join the chat at https://gitter.im/OsgiliathEnterprise/platform

This role expands on the most popular LVM cookbook. It adds features to create thin pools and manage their metadata.

Role Variables

Besides the standard variables, you can define additional variables for configuring thin pools:

---
lvmetanames:
  ...
  metadata: <another lvname> # specifies the metadata logical volume 
---
lvmetanames:
  ...
  autoextendthreshold: <number> # limit for the auto-extend feature
  autoextendpercent: <number> # percentage for the auto-extend feature

Full Example

---
  vars:
    lvm_groups:
      - vgname: myvg
        disks:
          - /dev/sdb1
        create: true
        lvnames:
          - lvname: notathinpool # original role
            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
            autoextendthreshold: 80
            autoextendpercent: 20
            filesystem: xfs
            mntp: /var/lib/docker
            mount: true
          - lvname: thinpoolmeta
            size: 10%VG
            opts: "--wipesignatures y"
            create: true
    manage_lvm: true

It also sets up an NFS server, but only if the machine uses Kerberos for protection (check tcharl.ansible_securehost for setup).

Dependencies

As mentioned, it relies on mrlesmithjr.ansible-manage-lvm.

Example Playbook

Refer to the variables declared in the Molecule tests and see their impact.

License

Apache-2

Author Information

Informazioni sul progetto

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

Installa
ansible-galaxy install tcharl.ansible_volumes
Licenza
other
Download
4.5k
Proprietario
Osgiliath frameworks and all stuff from the Osgiliath corp!