Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor ha_storage variable #2

Open
mgrzybek opened this issue May 18, 2018 · 0 comments
Open

Refactor ha_storage variable #2

mgrzybek opened this issue May 18, 2018 · 0 comments

Comments

@mgrzybek
Copy link
Owner

For instance, you can only deploy one volume group per play. So as to deploy several volume groups, a list of properties should be given, such as:

# Global parameters
ha_storage_global:
    use_sfex_ra_github: true
    http_proxy: http://proxy.local

# Volume groups
ha_storage_volume_groups:
    # First volume group
    - volume_group: test
      fs: zfs
      zpool_mountpoint: /srv
      use_clvm: false
      use_sfex: true
      cluster_attribute_name: role
      cluster_attribute_value: cache
      luns:
          - id: /dev/disk/by-id/ata-VBOX_HARDDISK_VB60e589c7-a5211949
            alias: lun-dc-1
      filesystems:
          - lv: log
            size: 2G
            fstype: xfs
            mountpoint: /srv/log
          - lv: cache
            size: 2G
            fstype: xfs
            mountpoint: /srv/squid

    # Another volume group
    - volume_group: db
      fs: zfs
      zpool_mountpoint: /srv
      cluster_attribute_name: role
      cluster_attribute_value: database
      luns:
        - id: /dev/vdb
          alias: lun-dc-1
        - id: /dev/vdc
          alias: lun-dc-2
      filesystems:
        - lv: data
          size: 20GB
          mountpoint: data
        - lv: xlog
          size: 2GB
          mountpoint: xlog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant