Skip to content

Instantly share code, notes, and snippets.

@droopy4096
droopy4096 / gist:8343536
Created January 9, 2014 22:46
edX failed install log file
2014-01-09 15:39:23,166 p=1952 u=root |
2014-01-09 15:39:23,166 p=1952 u=root | /usr/local/bin/ansible-playbook -c local ./edx_sandbox.yml -i localhost,
2014-01-09 15:39:23,166 p=1952 u=root |
2014-01-09 15:39:24,217 p=1952 u=root | PLAY [Configure instance(s)] **************************************************
2014-01-09 15:39:24,217 p=1952 u=root | GATHERING FACTS ***************************************************************
2014-01-09 15:39:24,491 p=1952 u=root | ok: [localhost]
2014-01-09 15:39:24,491 p=1952 u=root | TASK: [common | Add user www-data] ********************************************
2014-01-09 15:39:24,547 p=1952 u=root | ok: [localhost]
2014-01-09 15:39:24,548 p=1952 u=root | TASK: [common | Create common directories] ************************************
2014-01-09 15:39:24,600 p=1952 u=root | ok: [localhost] => (item=/edx/var)
#!/usr/bin/python
import yum
import sys
import os
sys.path.append('/usr/share/yum-cli')
import rpm
from yum.plugins import PluginYumExit, TYPE_CORE
from yum.repos import Repository
from yum.yumRepo import YumRepository # , YumPackageSack
--- /usr/lib/python2.6/site-packages/yum/history.py.orig 2014-03-06 18:38:17.403998494 -0700
+++ /usr/lib/python2.6/site-packages/yum/history.py 2014-03-10 20:03:02.786998710 -0600
@@ -750,7 +750,7 @@
continue
if sql_checksum is None:
continue
- if checksum == sql_checksum:
+ if to_unicode(checksum) == to_unicode(sql_checksum):
return sql_pkgtupid
@droopy4096
droopy4096 / group_vars_all.yml
Last active August 29, 2015 14:02
Ansible Jinja variable issues
---
simple_var: "Simple var"
nested_var: "{{ simple_var }}"
fact_var: "{{ ansible_default_ipv4.address }}"
PLAY [all] ********************************************************************
GATHERING FACTS ***************************************************************
<defined.host.com> REMOTE_MODULE setup
<undefined.host.com> REMOTE_MODULE setup
ok: [defined.host.com]
ok: [undefined.host.com]
TASK: [debug var=hostvars[inventory_hostname]['my_groups'].keys()] ************
@droopy4096
droopy4096 / neutron router-show results
Last active August 29, 2015 14:21
OpenStack multinet setup
[root@compute ~]# nova secgroup-list
+--------------------------------------+------------+-----------------+
| Id | Name | Description |
+--------------------------------------+------------+-----------------+
| cc36ac51-919c-4bcc-b621-838a2475d646 | db_client | DB Access group |
| ebb74efc-0cfb-4bb6-86a6-d36aa748a64c | db_server | DB Server |
| 5e4ab003-4ed2-4b72-9c85-e63b2c0daead | default | default |
| 692737cb-99c5-4f51-bf83-1540107fa010 | web_server | Web Server |
+--------------------------------------+------------+-----------------+
[root@compute ~]# nova secgroup-list-rules 5e4ab003-4ed2-4b72-9c85-e63b2c0daead
%if 0%{?scl:1}
%scl_package webauth
%global sub_prefix sclo-%{scl_prefix}
%endif
%if 0%{?scl:1}
%define scl_prefix httpd24
%{!?_httpd24_apxs: %{expand: %%global _httpd24_apxs %%{_sbindir}/apxs}}
[pakiti]
mypakiti.stanford.edu
[report]
localhost ansible_connection=local ansible_become=False patch_priority=0
[blacklist]
failedhost1.stanford.edu # Incorrect sudo password
failedhost2.stanford.edu # SyntaxError: probably due to installed simplejson being for a different python version; easy_install'ed simplejson which breaks things
node x.some.com {
users::collect_present_users(['tag1','cluster1'])
users::collect_absent_users(['tag1','cluster1'])
}
# puppet apply --parser=future --trusted_node_data --test --stringify_facts test.pp
Info: Loading facts in /var/lib/puppet/lib/facter/ip6tables_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/apt_reboot_required.rb
Info: Loading facts in /var/lib/puppet/lib/facter/service_provider.rb
Info: Loading facts in /var/lib/puppet/lib/facter/apt_update_last_success.rb
Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
Info: Loading facts in /var/lib/puppet/lib/facter/apt_updates.rb
Info: Loading facts in /var/lib/puppet/lib/facter/package_provider.rb
Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb