Git Product home page Git Product logo

setup_rhel_for_satellite's Introduction

setup_rhel_for_satellite

Ansible collection for validating a RHEL host to run satellite.

This collection is also available on ansible galaxy.

Overview

This collection will validate a RHEL7 host against the system requirements and storage requirements for running satellite.

If a system passes validation, LVM will be configured according to the following procedure:

  • LVs will be created
  • The LVs will get an XFS filesystem
  • The LVs will be added to /etc/fstab
  • Note: for now, the LVs will be on the same volume group as /var. There is an issue open on github about this.

Usage

The best way to consume this collection is to set up a requirements.yml:

---
collections:
  - jjaswanson4.setup_rhel_for_satellite

The collection can also be installed from the command line ad-hoc:

ansible-galaxy collection install jjaswanson4.setup_rhel_for_satellite

Examples

  • There are example playbooks located in playbooks directory
  • Vars examples can be found in playbooks/vars

Vars

satellite:
  version: 6.7
  admin_username: admin
  admin_password: changeme
  logical_volumes:
    - name: cache # The name of the LV
      size: 20 # Size in GB
      path: /var/cache/pulp # Mount path
    - name: pulp
      size: 300
      path: /var/lib/pulp
    - name: mongodb
      size: 50
      path: /var/lib/mongodb
    - name: qpidd
      size: 20
      path: /var/lib/qpidd
    - name: varlog
      size: 10
      path: /var/log
    - name: pqsql
      size: 25
      path: /var/lib/pgsql
    - name: squid
      size: 10
      path: /var/spool/squid
    - name: usr
      size: 8
      path: /usr
    - name: opt
      size: 8
      path: /opt
    - name: puppetlabs
      size: 1
      path: /opt/puppetlabs
    - name: var
      size: 12
      path: /var

Inventory Structure

For this collection, it doesn't matter if you're building a satellite server or a capsule server, the LVs will be collected and created. It's a good idea to break out satellite servers vs. capsule servers and specify their var files so each will be built according to their own specifications:

[satellite]
satellite67.josh.lab.msp.redhat.com vars_file=/home/jswanson/ansible/satellite6.7-collections/satellite67.josh.lab.msp.redhat.com.vars.yml ansible_user=root

[capsule]
capsule67-01.josh.lab.msp.redhat.com vars_file=/home/jswanson/ansible/satellite6.7-collections/capsule67-01.josh.lab.msp.redhat.com.vars.yml ansible_user=root
capsule67-02.josh.lab.msp.redhat.com vars_file=/home/jswanson/ansible/satellite6.7-collections/capsule67-02.josh.lab.msp.redhat.com.vars.yml ansible_user=root

setup_rhel_for_satellite's People

Contributors

jjaswanson4 avatar

Stargazers

Rodrique Heron avatar

Watchers

 avatar

Forkers

solaris9000

setup_rhel_for_satellite's Issues

Support creation of new VGs for LVs

Under the logical_volumes list, I should be able to specify a volume group and have it be created if needed:
- name: cache
size: 20
path: /var/cache/pulp
volume_group: satellite

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.