Giter Site home page Giter Site logo

sat6_client_configuration's Introduction

sat6_client_configuration

#Description: This script will help you to register your RHEL clients to your Satellite 6 server. This script also creates "Host" entries and configures the Puppet agent if needed. Unfortunately the given values are not selectable at the moment so you need to copy/paste the values if for example you are asked to select the organization your client should be assigned to. If you want to run this script unattended then you need to add ALL options mentioned in the script usage before using the "-u" flag. If you do not pass all values the script will ask you for the remaining. If you also want to update your system you can pass by the option "-U". This script also configures your Puppet agent and starts an initial Puppet run. Please ignore the following message during the first Puppet run:

Warning: Local environment: "production" doesn't match server specified node environment [...]

This script was inspired by https://github.com/sideangleside/sat6-bootstrap

#Prerequisites:

  • Firewall ports from Client to Satellite 6, port 80 / 443 must be opened
  • Make sure that you configured at least one hostgroup with lifecycle environment, content view, Puppet environment, Puppet classes (if available), Capsule settings, Operating System settings, Locations and Organizations. Otherwise the "Host" entry will not be created properly.
  • Change number of entries per page to >= 100 in Satellite 6 Web-UI: 'Administer -> Settings -> General -> entries_per_page'. This number depends on for example how many hostgroups, activation keys etc. are configured in your Satellite environment.

#Usage: You need at least the "-s" and "-l" option to run the script.

Usage: sat6-register.py [options]

Options:
  -h, --help            show this help message and exit
  -s SAT6_FQDN, --server=SAT6_FQDN
                        FQDN of Satellite - omit https://
  -c CAPSULE, --capsule=CAPSULE
                        FQDN of Capsule - omit https://
  -l LOGIN, --login=LOGIN
                        Login user for API Calls
  -p PASSWORD, --password=PASSWORD
                        Password for specified user. Will prompt if omitted
  -a ACTIVATIONKEY, --activationkey=ACTIVATIONKEY
                        Activation Key to register the system
  -g HOSTGROUP, --hostgroup=HOSTGROUP
                        Label of the Hostgroup in Satellite that the host is
                        to be associated with
  -L LOCATION, --location=LOCATION
                        Label of the Location in Satellite that the host is to
                        be associated with
  -o ORGANIZATION, --organization=ORGANIZATION
                        Label of the Organization in Satellite that the host
                        is to be associated with
  -u, --unattended      Start unattended installation.
  -P, --puppet          Configure Puppet agent and delete old Puppet
                        configuration.
  -U, --update          Performs yum update -y.
  -v, --verbose         Verbose output

Example usage: ./sat6-register.py -l admin -p password -s satellite.example.com

sat6_client_configuration's People

Contributors

hambuergaer avatar

Stargazers

 avatar Tim Fairweather avatar  avatar  avatar Sebastian Ickler avatar Hannes Tiede avatar Adrian Likins avatar

Watchers

James Cloos avatar  avatar  avatar Sebastian Ickler avatar

sat6_client_configuration's Issues

Use "subscription-manager status" instead of grepping possibly localized output

registered:

# subscription-manager status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Current

# echo $?
0

unregistered:

# subscription-manager status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Unknown

# echo $?
1

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.