This repository has been archived by the owner on Nov 24, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
refs #17448 - renaming capsule to foreman-proxy (#437)
- Loading branch information
Showing
38 changed files
with
159 additions
and
303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,14 @@ | ||
| forge 'https://forgeapi.puppetlabs.com' | ||
|
|
||
| mod 'katello/candlepin', :git => 'https://github.com/Katello/puppet-candlepin' | ||
| mod 'katello/capsule', :git => 'https://github.com/Katello/puppet-capsule' | ||
| mod 'katello/certs', :git => 'https://github.com/Katello/puppet-certs' | ||
| mod 'katello/common', :git => 'https://github.com/Katello/puppet-common' | ||
| mod 'katello/crane', :git => 'https://github.com/Katello/puppet-crane' | ||
| mod 'katello/katello', :git => 'https://github.com/Katello/puppet-katello' | ||
| mod 'katello/pulp', :git => 'https://github.com/Katello/puppet-pulp' | ||
| mod 'katello/qpid', :git => 'https://github.com/Katello/puppet-qpid' | ||
| mod 'katello/service_wait', :git => 'https://github.com/Katello/puppet-service_wait' | ||
| mod 'katello/candlepin', :git => 'https://github.com/Katello/puppet-candlepin' | ||
| mod 'katello/foreman_proxy_content', :git => 'https://github.com/Katello/puppet-foreman_proxy_content' | ||
| mod 'katello/certs', :git => 'https://github.com/Katello/puppet-certs' | ||
| mod 'katello/common', :git => 'https://github.com/Katello/puppet-common' | ||
| mod 'katello/crane', :git => 'https://github.com/Katello/puppet-crane' | ||
| mod 'katello/katello', :git => 'https://github.com/Katello/puppet-katello' | ||
| mod 'katello/pulp', :git => 'https://github.com/Katello/puppet-pulp' | ||
| mod 'katello/qpid', :git => 'https://github.com/Katello/puppet-qpid' | ||
| mod 'katello/service_wait', :git => 'https://github.com/Katello/puppet-service_wait' | ||
|
|
||
| # Katello devel specific modules | ||
| mod 'katello/katello_devel', :git => 'https://github.com/Katello/puppet-katello_devel' | ||
| mod 'katello/katello_devel', :git => 'https://github.com/Katello/puppet-katello_devel' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| #!/bin/bash | ||
|
|
||
| echo "ERROR: capsule-installer is no longer used. Please use 'foreman-installer --scenario capsule'." | ||
| echo "ERROR: capsule-installer is no longer used. Please use 'foreman-installer --scenario foreman-proxy-content'." | ||
| echo " For more information on available options, include '--help'." | ||
|
|
||
| exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,174 +1,6 @@ | ||
| #!/bin/bash | ||
|
|
||
| LOG="/var/log/capsule-clean.log" | ||
| echo "ERROR: capsule-remove is no longer used. Please use 'katello-remove' instead." | ||
| echo " For more information on available options, include '--help'." | ||
|
|
||
| function remove() { | ||
|
|
||
| CONFIG_FILES=( | ||
| /etc/pulp/ | ||
| /usr/share/foreman | ||
| /usr/share/foreman-installer | ||
| /usr/share/foreman-installer-katello | ||
| /usr/share/katello-installer-base | ||
| /var/lib/puppet/ | ||
| /var/lib/mongodb/ | ||
| /var/lib/pulp/ | ||
| /etc/httpd/ | ||
| /usr/share/pulp | ||
| /etc/foreman-proxy | ||
| /var/lib/foreman-proxy | ||
| /etc/capsule-installer | ||
| /etc/foreman-proxy/ | ||
| /etc/puppet/environments | ||
| /etc/pki/katello-certs-tools | ||
| /etc/crane.conf | ||
| /etc/mongod.conf | ||
| /var/www/html/pub/bootstrap.py | ||
| /var/www/html/pub/katello-rhsm-consumer | ||
| /var/lib/hiera | ||
| /var/lib/qpidd | ||
| /usr/share/qpid-tools | ||
| /etc/puppet | ||
| /etc/qpid-dispatch | ||
| /etc/hiera.yaml | ||
| /etc/squid | ||
| /etc/qpid | ||
| /var/www/html/pub/katello-server-ca.crt | ||
| ) | ||
| LOG_FILES=( | ||
| /var/log/capsule-installer/ | ||
| /var/log/pulp/ | ||
| /var/log/httpd/ | ||
| /var/log/mongodb/ | ||
| /var/log/foreman-proxy | ||
| /var/log/foreman-installer | ||
| /var/log/squid | ||
| ) | ||
| # Setting a variable to make sure we actually grab the FQDN of the capsule incase there are other packages that have a short hostname in them. | ||
|
|
||
| FQDN=$( hostname -f) | ||
|
|
||
| RPMS=( | ||
| `rpm -qa | grep puppetlabs-release` | ||
| `rpm -qa | grep foreman-release` | ||
| `rpm -qa | grep foreman-client` | ||
| `rpm -qa | grep foreman-proxy` | ||
| `rpm -qa | grep katello` | ||
| `rpm -qa | grep ^pulp` | ||
| `rpm -qa | grep ^python-pulp` | ||
| `rpm -qa | grep ^pulp-` | ||
| `rpm -qa | grep mongo` | ||
| `rpm -qa | grep ^mod_` | ||
| `rpm -qa | grep ^rubygem` | ||
| `rpm -qa | grep ^ruby193` | ||
| `rpm -qa | grep ^foreman` | ||
| `rpm -qa | grep ^qpid` | ||
| `rpm -qa | grep ^lucene` | ||
| `rpm -qa | grep ^python-crane` | ||
| `rpm -qa | grep ^python-celery` | ||
| `rpm -qa | grep ^python-gofer` | ||
| `rpm -qa | grep ^python-qpid` | ||
| `rpm -qa | grep ^python-kombu` | ||
| `rpm -qa | grep ^python-webpy` | ||
| `rpm -qa | grep ^python-nectar` | ||
| `rpm -qa | grep ^python-saslwrapper` | ||
| `rpm -qa | grep ^python-amqp` | ||
| `rpm -qa | grep ^python-billiard` | ||
| `rpm -qa | grep ^python-semantic-version` | ||
| `rpm -qa | grep ^python-requests` | ||
| `rpm -qa | grep ^python-isodate` | ||
| `rpm -qa | grep gutterball` | ||
| `rpm -qa | grep $FQDN` | ||
| saslwrapper | ||
| snappy-java | ||
| ruby | ||
| rubygems | ||
| httpd | ||
| puppet | ||
| squid | ||
| ) | ||
| CERT_FILES=( | ||
| /etc/pki/pulp/ | ||
| /etc/pki/katello | ||
| /root/ssl-build | ||
| /var/www/html/pub/katello-ca*.rpm | ||
| ) | ||
|
|
||
| # stopping all katello/foreman related services | ||
|
|
||
| echo "Stopping Katello Capsule Services" | tee -a $LOG | ||
| katello-service stop | tee -a $LOG | ||
|
|
||
| echo "Removing RPMs" | tee -a $LOG | ||
| yum erase -y ${RPMS[*]} | tee -a $LOG | ||
|
|
||
| echo "Cleaning up configuration files" | tee -a $LOG | ||
| # Conf files | ||
| rm -rf ${CONFIG_FILES[*]} | tee -a $LOG | ||
|
|
||
| echo "Cleaning up log files" | tee -a $LOG | ||
| # logs | ||
| rm -rf ${LOG_FILES[*]} | tee -a $LOG | ||
|
|
||
| echo "Cleaning up Certs" | tee -a $LOG | ||
| # pulp cert stuff | ||
| rm -rf ${CERT_FILES[*]} | tee -a $LOG | ||
| } | ||
|
|
||
| menu() | ||
| { | ||
| clear | ||
| echo "" | ||
| echo "WARNING: This script will erase many packages and config files." | ||
| echo "Important packages such as the following will be removed:" | ||
| echo "" | ||
| echo " * httpd (apache)" | ||
| echo " * mongodb" | ||
| echo " * tomcat" | ||
| echo " * puppet" | ||
| echo " * ruby" | ||
| echo " * rubygems" | ||
| echo " * All Katello and Foreman Packages" | ||
| echo "" | ||
| echo "Once these packages and configuration files are removed there is no going back." | ||
| echo "If you use this system for anything other than Katello and Foreman you probably" | ||
| echo "do not want to execute this script." | ||
| echo "" | ||
| read -p "Read the source for a list of what is removed. Are you sure(Y/N)? " -n 1 -r | ||
| echo # (optional) move to a new line | ||
| if [[ ! $REPLY =~ ^[Yy]$ ]] | ||
| then | ||
| echo "** cancelled **" | ||
| exit 1 | ||
| fi | ||
|
|
||
| echo "" | ||
| echo "ARE YOU SURE?: This script permanently deletes data and configuration." | ||
| read -p "Read the source for a list of what is removed. Type [remove] to continue? " -r | ||
| echo # (optional) move to a new line | ||
| if [[ ! $REPLY == remove ]] | ||
| then | ||
| echo "** cancelled **" | ||
| exit 1 | ||
| else | ||
| echo "Confirmed! Let's remove all files" | ||
| remove | ||
| fi | ||
| } | ||
|
|
||
| # In case of --help or -h | ||
| for var in $@; do | ||
| if [[ $var == "--help" || $var == "-h" ]] | ||
| then | ||
| echo -e "This script is used to remove all capsule related packages and services. \nThis should only be used if you are sure you are wanting to completely remove Capsule from this machine and lose all of your settings and synced content. \nOptional flags:\n--unattended this option will start the removal process without any warnings or confirmations." | ||
| exit 1 | ||
| fi | ||
| if [[ $var == "--unattended" ]] | ||
| then | ||
| remove | ||
| exit | ||
| fi | ||
| done | ||
|
|
||
| # Principal | ||
| menu | ||
| exit 1 |
Oops, something went wrong.