Skip to content

Instantly share code, notes, and snippets.

View thoraxe's full-sized avatar

Erik Jacobs thoraxe

View GitHub Profile
#!ipxe
# Example foreman_bootdisk generic host template
#
# This template is generic, but it will chainload to Foreman so expects the
# host to be registered already.
#
# It loops through all interfaces using DHCP, requesting a template from
# Foreman in the hope that one of the MACs or IPs matches.
#
# Copy this template to customize it, the original is read-only.
#!gpxe
kernel http://satellite.ejacobs.local/pulp/repos/ACME_Corporation/Development/Simple_View/content/dist/rhel/server/6/6Server/x86_64/kickstart//images/pxeboot/vmlinuz ks=http://satellite.ejacobs.local:80/unattended/provision?token=50604488-319e-4f75-92d8-d3a3553ac804&static=yes ksdevice=52:54:00:f4:33:11 network kssendmac ip=${netX/ip} netmask=${netX/netmask} gateway=${netX/gateway} dns=${dns}
initrd http://satellite.ejacobs.local/pulp/repos/ACME_Corporation/Development/Simple_View/content/dist/rhel/server/6/6Server/x86_64/kickstart//images/pxeboot/initrd.img
boot
Operation FAILED: ERF51-5531: unknown permission for hosts#bootdisk_iso
/usr/share/foreman/app/controllers/application_controller.rb:155:in `action_permission'
/usr/share/foreman/app/controllers/hosts_controller.rb:565:in `action_permission'
/usr/share/foreman/app/controllers/application_controller.rb:137:in `current_permission'
/usr/share/foreman/app/controllers/hosts_controller.rb:537:in `resource_base'
/usr/share/foreman/app/controllers/hosts_controller.rb:628:in `find_by_name'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:531:in `block (3 levels) in _run__1124892527801971208__process_action__3329139482596210901__callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_9551'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:326:in `around'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callback
install
url --url http://satellite.ejacobs.local/pulp/repos/ACME_Corporation/Development/Simple_View/content/dist/rhel/server/6/6Server/x86_64/kickstart/
lang en_US.UTF-8
selinux --enforcing
keyboard us
skipx
network --bootproto dhcp --hostname client-14.ejacobs.local
rootpw --iscrypted $1$8GDrlSQC$k3crReqz.o3hXBjci8KXf0
firewall --service=ssh
//*= require_self
@import "bootstrap";
body {
padding-top: 50px;
padding-bottom: 20px;
}
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Rendered /opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/views/katello/providers/redhat/_repos.html.haml (15.3ms)
Completed 200 OK in 1171ms (Views: 15.3ms | ActiveRecord: 36.6ms)
Processing by Katello::ProductsController#toggle_repository as */*
Parameters: {"repo"=>"1", "content_id"=>"168", "releasever"=>"6Server", "basearch"=>"x86_64", "id"=>"6"}
301 Moved Permanently (RestClient::MovedPermanently)
/opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/lib/katello/resources/cdn.rb:93:in `block in get'
/opt/rh/ruby193/root/usr/share/ruby/net/http.rb:746:in `start'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/lib/katello/resources/cdn.rb:80:in `get'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/lib/katello/util/cdn_var_substitutor.rb:127:in `valid_path?'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/lib/katello/util/cdn_var_substitutor.rb:116:in `valid_substitutions?'
describe "when searching in a specific state", :barn_instate => true do
def set_up_geocode(lat, lng)
fake_geocode = OpenStruct.new(:lat => lat, :lng => lng,
:success => true)
GeoKit::Geocoders::MultiGeocoder.stub(:geocode).and_return(fake_geocode)
end
before do
# we're going to mock/stub the geocoding here since we are only doing
# searching against the mysql db anyway. this way we'll only end up
# geocoding once for looking up the search address
:syslogtag, startswith, "pulp" /var/log/pulp/pulp.log
& ~
ActionController::RoutingError (No route matches [GET] "/pulp/repos/ACME_Corporation/Library/content/dist/rhel/server/6/6Server/x86_64/os/repodata/repomd.xml"):
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/rack/thread_handler_extension.rb:77:in `process_request'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:140:in `accept_and_process_next_request'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:108:in `main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler.rb:441:in `block (3 levels) in start_threads'