Skip to content

Latest commit

 

History

History
79 lines (63 loc) · 2 KB

File metadata and controls

79 lines (63 loc) · 2 KB

oVirt storages

This role setup oVirt storages.

Requirements

  • oVirt Python SDK version 4
  • Ansible version 2.3

Role Variables

The value of item in storages dictionary can contain following parameters (the key is always a name of the storage):

Name Default value Description
master false If true the storage will be added as first, meaning it will be master storage
domain_function data Function of the storage domain (iso, export or data)
nfs UNDEF Dictionary defining NFS storage
iscsi UNDEF Dictionary defining iSCSI storage
posixfs UNDEF Dictionary defining PosixFS storage
fcp UNDEF Dictionary defining FCP storage
glusterfs UNDEF Dictionary defining glusterFS storage

More information about storages parameters can be found here.

Dependencies

No.

Example Playbook

- name: oVirt infra
  hosts: localhost
  connection: local
  gather_facts: false

  vars:
    storages:
      mynfsstorage:
       master: true
       state: present
       nfs:
        address: 1.2.3.4
        path: /path
      myiscsistorage:
        state: present
        iscsi:
          target: iqn.2014-07.org.ovirt:storage
          port: 3260
          address: 10.11.12.13
          username: username
          password: password
          lun_id: 3600140551fcc8348ea74a99b6760fbb4
      myexporttemplates:
        domain_function: export
        nfs:
          address: 100.101.102.103
          path: /templates
      myisostorage:
        domain_function: iso
        nfs:
          address: 111.222.111.222
          path: /iso

  roles:
    - ovirt-storages

License

Apache License 2.0