qpid-stat --ssl-certificate /etc/pki/katello/certs/java-client.crt --ssl-key /etc/pki/katello/private/java-client.key -b "amqps://$(hostname -f):5671" -q
qpid-stat --ssl-certificate /etc/pki/katello/certs/java-client.crt --ssl-key /etc/pki/katello/private/java-client.key -b "amqps://$(hostname -f):5671" -c
This file contains hidden or 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
puppet apply --noop --modulepath=./modules "class { 'proxy_arp': } |
This file contains hidden or 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
6.0/2.0 | |
> foreman-rake console | |
> User.current = User.first | |
check to make sure we know which repos the system is using (this is sent by katello-agent) | |
> Katello::System.where(:name => 'hp-dl580g5-01.rhts.eng.bos.redhat.com').first.bound_yum_repos | |
Ask pulp directly what errata it thinks are applicable |
This will force applicability regeneration for all systems:
# mongodb pulp_database
db.repo_profile_applicability.drop()
quit()
This file contains hidden or 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
#!/bin/env python | |
import sys | |
sys.path.append('/usr/lib/gofer/plugins/') | |
import katelloplugin | |
katelloplugin.validate_registration() | |
katelloplugin.send_enabled_report() |
when publishing a content view if you get:
Validation failed: Puppet environment can't be blank
or
ActiveRecord::RecordInvalid: Validation failed: Name has already been taken
This file contains hidden or 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
namespace :katello do | |
PULP_IDS_FILE = "/tmp/foreman_pulp_ids_to_fix" | |
def find_ids_not_in_pulp | |
(Katello::Repository.pluck(:pulp_id))- | |
Katello.pulp_server.extensions.repository.retrieve_all.map {|repo| repo["id"] } | |
end | |
def repository_info(repo) | |
%{ | |
name: #{repo.name} |
In katello 2.0/Satellite 6.0:
foreman-rake console
SmartProxy.all.map do |sp|
{
:name => sp.name,
:envs => sp.lifecycle_environments.pluck(:name),
Go to Hosts > provisioning templates and find the "subscription_manager_registration" template. You'll need to clone the snippet in order to edit it, you can do that from the actions button on the right of the template list. We'll name our clone "custom_registration".
Once you clone it, find this line:
subscription-manager register --org="<%= @host.rhsm_organization_label %>" --name="<%= @host.name %>" --activationkey="<%= @host.params['kt_activation_keys'] %>"
and change it to:
This file contains hidden or 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
# mongo | |
> use pulp_database | |
> db.repo_distributors.update({repo_id: '<repo_id>'}, {$set: {"last_publish": null}}, {"multi": true}) | |
replacing <repo_id> with the pulp repo_id. | |
Then follow this step to re-publish the repo: | |
https://gist.github.com/jlsherrill/c5916a1c2b04bf58b54e |