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
| gsettings set org.pantheon.terminal.settings palette "#000000:#800000:#008000:#808000:#000080:#800080:#008080:#c0c0c0:#808080:#ff0000:#00ff00:#ffff00:#0000ff:#ff00ff:#00ffff:#ffffff" | |
| gsettings set org.pantheon.terminal.settings opacity "100" | |
| gsettings set org.pantheon.terminal.settings foreground "#ff5f00" | |
| gsettings set org.pantheon.terminal.settings font "Ubuntu Mono derivative Powerline 12" | |
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
| diff --git a/bin/ktest b/bin/ktest | |
| index baafa00..192068c 100755 | |
| --- a/bin/ktest | |
| +++ b/bin/ktest | |
| @@ -5,6 +5,8 @@ then | |
| RAKE_PATH=`bundle show rake` | |
| ruby -I"lib:test:${KATELLO_PATH}/test:${KATELLO_PATH}/spec" -I"${RAKE_PATH}/lib" \ | |
| "${RAKE_PATH}/lib/rake/rake_test_loader.rb" $@ ${KATELLO_PATH}/test/katello_test_runner.rb | |
| + pushover 'finished running the test(s)' | |
| else |
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
| diff --git a/app/lib/actions/katello/content_view/remove.rb b/app/lib/actions/katello/content_view/remove.rb | |
| index a4fdf1f..775cb74 100644 | |
| --- a/app/lib/actions/katello/content_view/remove.rb | |
| +++ b/app/lib/actions/katello/content_view/remove.rb | |
| @@ -109,7 +109,7 @@ module Actions | |
| end | |
| def combined_cv_envs(cv_envs, versions) | |
| - (cv_envs + versions.flat_map(&:content_view_environments)).uniq | |
| + (cv_envs - versions.flat_map(&:content_view_environments)).uniq |
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
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'gmail' | |
| require 'terminal-notifier' | |
| require 'pry-byebug' | |
| GMAIL_USER = ENV['GMAIL_USER'] | |
| GMAIL_PASS = ENV['GMAIL_PASS'] | |
| STORE_FILE = "last_uid" |
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
| [atomic7-testing] | |
| name=atomic7-testing | |
| baseurl=http://cbs.centos.org/repos/atomic7-testing/x86_64/os/ | |
| gpgcheck=0 | |
| enabled=1 |
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
| files = Dir["**/*.rb"] | |
| puts "Checking #{files.length}" | |
| files.each do |filename| | |
| file = File.open(filename, "r") | |
| content = file.read | |
| file.close | |
| if content =~ /^# Copyright 201\d Red Hat, Inc.$/ |
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
| def cleanup_host_delete_artifacts | |
| # clean up dirty consumer data in candleplin, | |
| # that did not get cleared by host delete. | |
| # look at https://bugzilla.redhat.com/show_bug.cgi?id=1140653 | |
| # for more information | |
| cp_consumers = ::Katello::Resources::Candlepin::Consumer.get({}) | |
| cp_consumer_ids = cp_consumers.map {|cons| cons["uuid"]} | |
| katello_consumer_ids = ::Katello::System.pluck(:uuid) | |
| deletable_ids = cp_consumer_ids - katello_consumer_ids | |
| deletable_ids.each do |consumer_id| |
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
| diff --git a/clean_backend_objects.rake b/clean_backend_objects.rake~update | |
| index f8bb2bf..4531ea6 100644 | |
| --- a/clean_backend_objects.rake | |
| +++ b/clean_backend_objects.rake~update | |
| @@ -46,8 +46,18 @@ namespace :katello do | |
| katello_consumer_ids = ::Katello::System.pluck(:uuid) | |
| deletable_ids = cp_consumer_ids - katello_consumer_ids | |
| deletable_ids.each do |consumer_id| | |
| - Katello::Resources::Candlepin::Consumer.destroy(consumer_id) | |
| - Katello.pulp_server.extensions.consumer.delete(consumer_id) |
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
| diff --git a/clean_backend_objects.rake b/clean_backend_objects.rake~update | |
| index f8bb2bf..4531ea6 100644 | |
| --- a/clean_backend_objects.rake | |
| +++ b/clean_backend_objects.rake~update | |
| @@ -46,8 +46,18 @@ namespace :katello do | |
| katello_consumer_ids = ::Katello::System.pluck(:uuid) | |
| deletable_ids = cp_consumer_ids - katello_consumer_ids | |
| deletable_ids.each do |consumer_id| | |
| - Katello::Resources::Candlepin::Consumer.destroy(consumer_id) | |
| - Katello.pulp_server.extensions.consumer.delete(consumer_id) |
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
| # Dockerfile sat6-client | |
| FROM registry.access.redhat.com/rhel7 | |
| RUN rpm -Uvh http://prometheus.usersys.redhat.com/pub/katello-ca-consumer-latest.noarch.rpm | |
| RUN subscription-manager register --org=DOrg --activationkey=zookey || true | |
| RUN rpm -Uvh https://fedorapeople.org/groups/katello/releases/yum/nightly/client/RHEL/7Server/x86_64/katello-client-repos-2.3.0-2.el7.noarch.rpm | |
| RUN rpm -Uvh http://download-i2.fedoraproject.org/pub/epel/7/x86_64/p/python-isodate-0.5.0-3.el7.noarch.rpm | |
| RUN yum install -y katello-agent shark stork walrus | |
| RUN curl -S https://gist.githubusercontent.com/daviddavis/fdc8152f7f23c7d916b7/raw/1e1e9b16262a35ccded945f0026d8daede7e6033/update_packages.py | python | |
| CMD /bin/bash |