Skip to content

Instantly share code, notes, and snippets.

View daviddavis's full-sized avatar

David Davis daviddavis

View GitHub Profile
from celery import Celery, Task
app = Celery('tasks', backend='redis://localhost', broker='pyamqp://guest@localhost//')
@app.task(base=Task, acks_late=True)
def dummy_task():
import time
time.sleep(600) # sleep for five minutes
-- Logs begin at Thu 2017-03-09 15:43:06 UTC, end at Tue 2017-03-14 20:47:28 UTC. --
Mar 14 20:30:01 sat-rhel7.example.com systemd[1]: Starting Session 903 of user foreman-proxy.
Mar 14 20:30:01 sat-rhel7.example.com CROND[6987]: (foreman) CMD ( /usr/sbin/foreman-rake trends:counter >>/var/log/foreman/cron.log 2>&1)
Mar 14 20:30:01 sat-rhel7.example.com CROND[6988]: (foreman) CMD ( /usr/sbin/foreman-rake ldap:refresh_usergroups >>/var/log/foreman/cron.log 2>&1)
Mar 14 20:30:01 sat-rhel7.example.com CROND[6989]: (foreman-proxy) CMD (smart-proxy-openscap-send >> /var/log/foreman-proxy/cron.log)
Mar 14 20:30:03 sat-rhel7.example.com systemd[1]: Removed slice user-992.slice.
Mar 14 20:30:03 sat-rhel7.example.com systemd[1]: Stopping user-992.slice.
Mar 14 20:30:26 sat-rhel7.example.com systemd[1]: Removed slice user-991.slice.
Mar 14 20:30:26 sat-rhel7.example.com systemd[1]: Stopping user-991.slice.
Mar 14 20:32:48 sat-rhel7.example.com sudo[7197]: vagrant : TTY=pts/0 ; PWD=/home/vagrant ; USER=root ; COMMA
1..14
ok 1 stop puppet agent (if installed)
ok 2 clean after puppet (if installed)
ok 3 make sure puppet not configured to other pm
ok 4 enable haveged (el7 only)
ok 5 run the installer
ok 6 run the installer once again
ok 7 wait 10 seconds
ok 8 check web app is up
ok 9 wake up puppet agent
# =========================
# Pulp Server Configuration
# =========================
# The settings in this file are all commented by default, and the commented settings show the
# default values that Pulp Server will choose if not specified here.
# -- Common Configuration -----------------------------------------------------
# = Database =
-- Logs begin at Fri 2017-02-17 20:24:35 UTC, end at Fri 2017-02-17 20:50:26 UTC. --
Feb 17 20:24:44 pipeline-katello-nightly-centos7.example.com systemd[1]: Started An AMQP message broker daemon..
Feb 17 20:24:44 pipeline-katello-nightly-centos7.example.com systemd[1]: Starting An AMQP message broker daemon....
Feb 17 20:46:07 pipeline-katello-nightly-centos7.example.com qpidd[908]: 2017-02-17 20:46:07 [Security] error Rejected un-encrypted connection.
Feb 17 20:46:07 pipeline-katello-nightly-centos7.example.com qpidd[908]: 2017-02-17 20:46:07 [Security] error Rejected un-encrypted connection.
Feb 17 20:46:07 pipeline-katello-nightly-centos7.example.com qpidd[908]: 2017-02-17 20:46:07 [Protocol] error Connection qpid.127.0.0.1:5672-127.0.0.1:43188 closed by error: connection-forced: Connection must be encrypted.(320)
Feb 17 20:46:07 pipeline-katello-nightly-centos7.example.com qpidd[908]: 2017-02-17 20:46:07 [Protocol] error Connection qpid.127.0.0.1:5672-127.0.0.1:43188 closed by error: connection-forced: C
@daviddavis
daviddavis / vhosts.rb
Created September 7, 2016 18:13 — forked from johnpmitsch/generate-hosts.rb
proxy generate virt hosts apache
base=50000 #port
range="192.168.121."
contents = <<-EOS
Listen %{port} https
<VirtualHost *:%{port}>
ProxyPass / https://%{ip_address}/
<Location />
ProxyPassReverse https://%{ip_address}/
</Location>

If you're getting Webpack::Rails::Manifest::ManifestLoadError in foreman, you need to compile your webpack assets. To do so:

  1. Install npm (i.e. sudo yum install npm).
  2. From your foreman directory run npm install.
  3. Run rake webpack:compile from inside foreman and then rails server. This will only compile the foreman js assets statically. You can alternatively run foreman start to get dynamic compilation of foreman assets but I think there might be a problem with pry output.
[Sat Jan 30 11:52:19.370855 2016] [core:notice] [pid 23391] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Sat Jan 30 11:52:19.371021 2016] [mime_magic:error] [pid 23391] (2)No such file or directory: AH01515: mod_mime_magic: can't read magic file /etc/httpd/NEVER_EVER_USE
[Sat Jan 30 11:52:19.434260 2016] [suexec:notice] [pid 23391] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[ 2016-01-30 11:52:19.4405 23392/7f04c76ca740 agents/Watchdog/Main.cpp:450 ]: Options: { 'analytics_log_user' => 'nobody', 'default_group' => 'nobody', 'default_python' => 'python', 'default_ruby' => 'ruby', 'default_user' => 'nobody', 'log_level' => '0', 'max_instances_per_app' => '0', 'max_pool_size' => '6', 'passenger_root' => '/usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/locations.ini', 'pool_idle_time' => '300', 'temp_dir' => '/var/run/rubygem-passenger', 'union_station_gateway_address' => 'gateway.unionstationapp.com', 'union_station_gateway_port' => '443', 'user_swi
This file has been truncated, but you can view the full file.
[DEBUG 2016-01-08 15:08:57 main] Loading hook /home/dadavis/Projects/fusor-installer/hooks/boot/05-remove_hostname_check.rb
[DEBUG 2016-01-08 15:08:57 main] Loading hook /home/dadavis/Projects/fusor-installer/hooks/boot/10-add_options.rb
[DEBUG 2016-01-08 15:08:57 main] Loading hook /home/dadavis/Projects/fusor-installer/hooks/post/10-setup_provisioning.rb
[DEBUG 2016-01-08 15:08:57 main] Loading hook /home/dadavis/Projects/fusor-installer/hooks/pre_values/10-register_fusor_modules.rb
[DEBUG 2016-01-08 15:08:57 main] Loading hook /home/dadavis/Projects/fusor-installer/hooks/pre_validations/10-gather_and_set_fusor_values.rb
[ INFO 2016-01-08 15:08:57 main] Executing hooks in group boot
[DEBUG 2016-01-08 15:08:57 main] Hook /home/dadavis/Projects/fusor-installer/hooks/boot/05-remove_hostname_check.rb returned nil
[DEBUG 2016-01-08 15:08:57 main] Hook /home/dadavis/Projects/fusor-installer/hooks/boot/10-add_options.rb returned #<Clamp::Option::Definition:0x00000001485ae8 @switches=["--provisioning-wizard"], @typ
# Format:
# <classname>: false - don't include this class
# <classname>: true - include and use the defaults
# <classname>:
# <param>: <value> - include and override the default(s)
#
# See params.pp in each class for what options are available
---
capsule: