Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- curl -O https://raw.githubusercontent.com/Katello/katello-client-bootstrap/master/bootstrap.py
- DOC: pydoc ./bootstrap.py
- Workflow: awk -F'# >' 'NF>1 {print $2}' ./bootstrap.py
- Register our better HTTP processor as default opener for URLs.
- Gather MAC Address.
- Gather API port (HTTPS), ARCHITECTURE and (OS) RELEASE
- Define and parse the options
- Validate that the options make sense or exit with a message.
- Gather FQDN, HOSTNAME and DOMAIN using options.fqdn
- If socket.fqdn() returns an FQDN, derive HOSTNAME & DOMAIN using FQDN
- else, HOSTNAME isn't an FQDN
- if user passes --fqdn set FQDN, HOSTNAME and DOMAIN to the parameter that is given.
- Exit if DOMAIN isn't set and Puppet must be installed (without force)
- Gather primary IP address if none was given
- Ask for the password if not given as option
- If user wants to purge profile from RHN/Satellite 5, credentials are needed.
- Puppet won't be installed if Foreman Host shall not be created
- Output all parameters if verbose.
- Exit if the user isn't root.
- Check if Katello/Spacewalk/Satellite are installed already
- Try to import json or simplejson.
- Clean the environment from LD_... variables
- IF RHEL 5, not removing, and not moving to new capsule prepare the migration.
- IF remove, disassociate/delete host, unregister,
- uninstall katello and optionally puppet agents
- ELIF registered to RHN, install subscription-manager prerequs
- get CA RPM, optionally create host,
- migrate via rhn-classic-migrate-to-rhsm
- ELIF new_capsule and foreman_fqdn set, will migrate to other capsule
- will replace CA certificate, reinstall katello-agent, gofer
- will optionally update hostgroup and location
- wil update system definition to point to new capsule for content,
- Puppet, OpenSCAP and update Puppet configuration (if applicable)
- MANUAL SIGNING OF CSR OR MANUALLY CREATING AUTO-SIGN RULE STILL REQUIRED!
- API doesn't have a public endpoint for creating auto-sign entries yet!
- ELSE get CA RPM, optionally create host,
- register via subscription-manager
- IF not removing, install Katello agent, optionally update host,
- optionally clean and install Puppet agent
- optionally remove legacy RHN packages
Advertisement
Add Comment
Please, Sign In to add comment