Skip to content

Instantly share code, notes, and snippets.

<script>
var messageIntervalID = setInterval(function () { Intercom('update'); }, 30000);
Intercom('onHide', function() { messageIntervalID = setInterval(function () { Intercom('update'); }, 30000); });
Intercom('onShow', function() { if (typeof messageIntervalID !== 'undefined') { clearInterval(messageIntervalID);};};);
</script>
2013-12-03 08:33:40.061527 [ERR] mod_lua.cpp:199 error loading module 'socket.core' from file '/usr/lib/lua/5.1/socket/core.so':
/usr/lib/lua/5.1/socket/core.so: undefined symbol: lua_gettop
stack traceback:
[C]: in ?
[C]: in function 'require'
/usr/share/lua/5.1/socket.lua:12: in main chunk
[C]: in function 'require'
/usr/share/lua/5.1/socket/http.lua:10: in main chunk
[C]: in function 'require'
/srv/http/mud/freeswitch/cidlookup.lua:117: in main chunk
State: - ssh_known_hosts
Name: github.com
Function: present
Result: True
Comment: github.com's key saved to .ssh/known_hosts (fingerprint: 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48)
Changes: new: {'enc': 'ssh-rsa',
'fingerprint': '16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48',
'hostname': '|1|GHBCONB14Atr671xuXZPzfCI+ow=|CROx+l1I0R1eyNpiW2ycxYQGOs0=',
'key': 'AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ=='}
old: None
@centrix
centrix / gtw01.minion.grains
Created December 6, 2012 19:16
Jinja Issues
grains:
classtype:
- gtw
iptables:
pkg:
- installed
file:
- managed
- name: /etc/iptables/centrix.iptables
{% if grains['classtype'] == 'gtw' %}
- source: salt://iptables/gtw.iptables
{% elif grains['classtype'] == 'sbc' %}
- source: salt://iptables/sbc.iptables
gtw01.localhost:
Data failed to compile:
----------
Rendering SLS iptables failed, render error:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/salt/utils/templates.py", line 49, in render_tmpl
output = render_str(tmplstr, context)
File "/usr/lib/python2.7/site-packages/salt/utils/templates.py", line 80, in render_jinja_tmpl
return env.from_string(tmplstr).render(**context)
File "/usr/lib/python2.7/site-packages/jinja2/environment.py", line 894, in render
@centrix
centrix / init.sls
Created December 6, 2012 17:54
jinja2
iptables:
pkg:
- installed
file:
- managed
- name: /etc/iptables/centrix.iptables
{{ if grains['classtype'] == 'gtw' }}
- source: salt://iptables/gtw.iptables
{{ elif grains['classtype'] == 'sbc' }}
- source: salt://iptables/sbc.iptables
@centrix
centrix / init.sls
Created December 5, 2012 21:35
mysql.sls
mysql:
user:
- present
- home: /data
- gid_from_name: True
pkg:
- installed
- name: libaio
file:
- directory
mysql-cluster:
cmd:
- script
- source: salt://mysql-cluster/install_mysql_cluster.sh
- stateful: true
----------
State: - cmd
Name: mysql-cluster
Function: script
Result: False
Comment: An exception occured in this state: Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/salt/state.py", line 884, in call
*cdata['args'], **cdata['kwargs'])
File "/usr/lib/python2.7/site-packages/salt/states/cmd.py", line 493, in script
**kwargs