Skip to content

Setup storage server

Sachidananda Urs edited this page Jun 25, 2018 · 2 revisions

Subscribe to RHSM and register to channels

To provision bare-metal hosts or VMs using gluster-ansible, use the role gluster.repositories and do a layered install. User is expected to have username, password, pool-id for the RHSM registration.

Note: It is assumed that the VMs or the bare-metal hosts are installed with RHEL 7.x

Subscribe to RHSM and register to channels

---
- name: Subscribe to RHSM
  hosts: rhsm
  remote_user: root
  gather_facts: no

  vars:
    gluster_repos_username: <user>@redhat.com
    gluster_repos_password: <password>
    gluster_repos_disable_all: true
    gluster_repos_pools: <pool-id>
    gluster_repos_rhsmrepos:
       - rhel-7-server-rpms
       - rh-gluster-3-for-rhel-7-server-rpms
       - rh-gluster-3-nfs-for-rhel-7-server-rpms
  roles:
    - gluster.repos

For a detailed description and available role variables and tags refer to: gluster.repositories