oasis_roles.satellite_storage

Build Status

satellite_storage

This is an Ansible role used to set up logical volumes and mount points for Red Hat Satellite Servers and Capsules. It also works with Foreman and Katello.

Requirements

  • Ansible version 2.8 or newer
  • Red Hat Enterprise Linux 7 or CentOS 7
  • Valid Red Hat subscriptions

Warning

This role does not check if the mount points already exist; it will try to create them without checking.

Role Variables

Here are the variables that can be configured:

General

  • satellite_storage_become - Default: true. This indicates if the role needs administrator rights, using Ansible's become feature (similar to sudo).
  • satellite_storage_become_user - Default: root. This specifies the user to switch to when escalating privileges.

Storage settings

Refer to the Satellite 6 Installation Guide - Storage Requirements for more information on storage sizes.

Parameter Default Description
satellite_pvs /dev/sdb Physical volume(s) used for Satellite storage
satellite_vg satellite_vg Volume group used or created for Satellite storage
satellite_type master Choose either 'master' or 'capsule' to set up storage for that type
satellite_lv_pulp_cache_size 20g Initial size of the /var/cache/pulp volume
satellite_lv_pulp_size 500g Initial size of the /var/lib/pulp volume
satellite_lv_mongodb_size 50g Initial size of the /var/lib/mongodb volume
satellite_lv_qpidd_size 10g Initial size of the /var/lib/qpidd volume. Note that each managed Content Host by the goferd service uses a bit more than 2 MB. For example, 10,000 Content Hosts will need 20 GB of space.
satellite_lv_pgsql_size 10g Initial size of the /var/lib/pgsql volume
satellite_lv_squid_size 10g Initial size of the /var/spool/squid volume
satellite_lv_puppetlabs_size 0g Initial size of the /opt/puppetlabs volume
satellite_lv_puppet_size 0g Initial size of the /etc/puppet/environment volume

satellite_type

The following table shows the mounts created based on the chosen Satellite type:

Mountpoint Master Capsule Description
/var/cache/pulp x x Pulp package cache
/var/lib/pulp x x Pulp package storage
/var/lib/mongodb x x Pulp database backend
/opt/puppetlabs x x Puppet installation
/etc/puppet/environment x x Puppet environment files
/var/lib/qpidd x Goferd content host cache
/var/lib/pgsql x Foreman database
/var/spool/squid x Squid proxy

Dependencies

None

Example Playbook

Simple example:

- hosts: satellite-servers
  roles:
    - role: oasis_roles.satellite_storage

Another example with a different hard disk and pulp size:

- hosts: satellite-servers
  roles:
    - role: oasis_roles.satellite_storage
      satellite_pvs: /dev/vdb
      satellite_lv_pulp_size: 800g

License

GPLv3

Contributors

Informazioni sul progetto

Ansible role for configuring logical volumes and mount points for Foreman/Katello and Red Hat Satellite Servers and Proxy Servers/Capsules

Installa
ansible-galaxy install oasis_roles.satellite_storage
Licenza
gpl-3.0
Download
1.2k
Proprietario