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
User.current = User.anonymous_admin | |
SmartProxy.all.each do |proxy| | |
content_host = ::Katello::System.where(:name => proxy.name).order("created_at DESC").first | |
if content_host | |
proxy.content_host_id = content_host.id | |
proxy.save! | |
puts "Capsule #{proxy} has Content Host #{content_host}" | |
else |
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
namespace :katello do | |
task :reconnect_capsule do | |
User.current = User.anonymous_admin | |
SmartProxy.all.each do |proxy| | |
content_host = ::Katello::System.where(:name => proxy.name).order("created_at DESC").first | |
if content_host | |
proxy.content_host_id = content_host.id | |
proxy.save! |
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
cat <<EOF > /root/freeipa.txt | |
FreeIPA debug info: | |
Parameter: <%= @host.info['parameters']['realm'] %> | |
OTP: <%= @host.otp %> | |
Realm: <%= @host.realm %> | |
Realm Type: <%= @host.realm.realm_type %> | |
EOF |
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
1. Edit /usr/sbin/upload-salt-reports | |
2. On line 55 change the {} to [] so it looks like this: | |
def run(function, argument=[]): | |
3. On Line 65 change return ret to this: | |
return ret['data'] if 'data' in ret else ret | |
4. Run upload-salt-reports by hand and see that it's uploading reports again |
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
In usr/share/foreman/vendor/ruby/1.9.1/gems/foreman_salt-2.0.2/app/services/foreman_salt/report_importer.rb: | |
Change this line: | |
time[:total] = time.values.inject(&:+) | |
To this: | |
time[:total] = time.values.compact.inject(&:+) | |
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
#!/usr/bin/env python | |
import json | |
import os | |
import sys | |
import salt.config | |
import salt.runner | |
if __name__ == '__main__': | |
__opts__ = salt.config.master_config( |
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
log { | |
module: DEFAULT | |
enable: trace+ | |
timestamp: true | |
output: /var/log/qdrouterd.log | |
} |
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
--- | |
:proto: https | |
:host: katello-dev.bitbin.de | |
:port: 443 | |
:ssl_ca: "/etc/puppet/ssl_ca.pem" | |
:ssl_cert: "/etc/puppet/client_cert.pem" | |
:ssl_key: "/etc/puppet/client_key.pem" | |
:timeout: 10 | |
:salt: /usr/bin/salt | |
:upload_grains: true |
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
major=$(facter operatingsystemmajrelease) | |
repos=$(subscription-manager repos | grep 'Repo ID' | grep -v "rhel-" | cut -d: -f2) | |
for repo in $repos; do | |
echo $repo | grep -q "$major-server" | |
retval=$? | |
if [[ $retval != 0 ]] | |
then | |
subscription-manager repos --disable $repo | |
fi |
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
trytond-account-1.8.0-3.el6,trytond-account-be-1.8.0-3.el6,trytond-account-de-skr03-1.8.0-3.el6,trytond-account-invoice-1.8.0-3.el6,trytond-account-invoice-history-1.8.0-3.el6,trytond-account-invoice-line-standalone-1.8.0-3.el6,trytond-account-product-1.8.0-3.el6,trytond-account-statement-1.8.0-3.el6,trytond-analytic-account-1.8.0-3.el6,trytond-analytic-invoice-1.8.0-3.el6,trytond-analytic-purchase-1.8.0-3.el6,trytond-analytic-sale-1.8.0-3.el6,trytond-calendar-1.8.0-3.el6,trytond-calendar-classification-1.8.0-3.el6,trytond-calendar-scheduling-1.8.0-3.el6,trytond-calendar-todo-1.8.0-3.el6,trytond-company-1.8.0-3.el6,trytond-company-work-time-1.8.0-3.el6,trytond-country-1.8.0-3.el6,trytond-currency-1.8.0-3.el6,trytond-dashboard-1.8.0-3.el6,trytond-google-maps-1.8.0-3.el6,trytond-google-translate-1.8.0-3.el6,trytond-ldap-authentication-1.8.0-3.el6,trytond-ldap-connection-1.8.0-3.el6,trytond-party-1.8.0-3.el6,trytond-party-siret-1.8.0-3.el6,trytond-party-vcarddav-1.8.0-3.el6,trytond-product-1.8.0-3.el6,trytond-pr |