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/services/katello/registration_manager.rb b/app/services/katello/registration_manager.rb | |
| index 0ec8f0545a..7bee010a15 100644 | |
| --- a/app/services/katello/registration_manager.rb | |
| +++ b/app/services/katello/registration_manager.rb | |
| @@ -325,9 +325,18 @@ module Katello | |
| host.content_facet.bound_repositories = [] | |
| host.content_facet.applicable_errata = [] | |
| host.content_facet.uuid = nil | |
| - host.content_facet.content_view_environments = [] | |
| + |
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/bash | |
| # Set variables | |
| ORG="Pulp_Org" | |
| CONTENT_VIEW="Pulp_Content_View" | |
| ACTIVATION_KEY="Default_CVE_Key" | |
| USERNAME="admin" | |
| PASSWORD="changeme" | |
| # Create Organization |
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 report | |
| rows = [] | |
| Organization.all.each do |org| | |
| org.kt_environments.each do |env| | |
| env.content_view_versions.not_ignorable.each do |cvv| | |
| nvra = Katello::Rpm.latest(::Katello::Rpm.where(name: "kernel", id: cvv.packages)).first&.nvra | |
| if nvra | |
| rows << { organization: org.title, | |
| lifecycle_environment: env.label, | |
| version: cvv.name, |
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/tasks/export.py b/app/tasks/export.py | |
| index 5ad7931..5e1baf6 100644 | |
| --- a/app/tasks/export.py | |
| +++ b/app/tasks/export.py | |
| @@ -4,13 +4,11 @@ import logging | |
| import os | |
| import subprocess | |
| import tarfile | |
| - | |
| from distutils.util import strtobool |
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
| reset | |
| cd ~/foreman | |
| rm log/* | |
| ./node_modules/.bin/webpack-dev-server-without-h2 --config config/webpack.config.js --host 0.0.0.0 --disable-host-check=true $WEBPACK_OPTS --watch-poll 1000 & | |
| DISABLE_SPRING=1 BIND=0.0.0.0 bundle exec rails server -b 0.0.0.0 |
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
| 100.times { |count| ::Katello::HostTracer.create!(application: "foo-#{count}", helper: "systemctl restart foo-#{count}", | |
| app_type: ["session", "static", "daemon"][count % 3], host_id: 2)} |
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/bash | |
| curl --cert /home/vagrant/foreman-certs/client_cert.pem --key /home/vagrant/foreman-certs/client_key.pem https://`hostname`/$* |
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 interested_hostgroups | |
| Hostgroup.where(id: Katello::Hostgroup::ContentFacet.where(content_source_id: nil, kickstart_repository_id: nil, content_view_id: nil, lifecycle_environment_id: nil).select(:hostgroup_id)) | |
| end | |
| def pick_facet_values(hg) | |
| facet_values = {} | |
| hg.audits.reverse.each do |audit| | |
| hg_changes = audit.audited_changes.slice("lifecycle_environment_id", "kickstart_repository_id", "content_view_id", "content_source_id") | |
| facet_values = hg_changes.merge(facet_values) | |
| end |
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
| HAMMER_KATELLO_PATH="${HAMMER_KATELLO_PATH:-/home/vagrant/git/hammer-cli-katello}" | |
| pushd . | |
| rm /var/log/hammer/* | |
| FILES=$(find $HAMMER_KATELLO_PATH/test -type f -path "**/*$1*test.rb"|tr '\n' ' ') | |
| cd $HAMMER_KATELLO_PATH | |
| RAKE_PATH=`bundle show rake` | |
| set -x | |
| for fl in $FILES; do | |
| bundle exec ruby -I"lib:lib" -I"$RAKE_PATH/lib" "$RAKE_PATH/lib/rake/rake_test_loader.rb" "test/functional/repository/delete_test.rb" $fl | |
| done |
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/bash | |
| shopt -s expand_aliases | |
| set -e | |
| set -x | |
| IMPORT_ORG="import-$RANDOM" | |
| PRODUCT="prod" | |
| REPO1="katello" | |
| REPO2="misc" | |
| REPO3="candlepin" |
NewerOlder