This file contains 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
<snip> | |
initialize: function() { | |
_.bindAll(this, 'addEvent', 'render'); | |
this.eventFeed = this.options.eventFeed; | |
this.eventFeed.on('add', this.addEvent); | |
}, | |
render: function() { | |
$.get('/views/jsondata', function(data) { |
This file contains 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
{% macro g_runit(node_server_name) -%} | |
/etc/sv/g_{{ node_server_name }}: | |
file: | |
- directory | |
- user: myuser | |
- group: myuser | |
- mode: 754 | |
- makedirs: True |
This file contains 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
var couchbase = require("couchbase"), | |
http = require("http"); | |
var port = 8080; | |
var config = { | |
username : "Administrator", | |
password : "password", | |
hosts : [ "localhost:8091" ], | |
bucket : "mybucket" | |
}; |
This file contains 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
Installing node couchbase driver | |
apt-get install build-essential | |
apt-get install autoconf | |
apt-get install libtool | |
apt-get install libev-dev | |
git clone git://github.com/couchbase/libcouchbase.git |
This file contains 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
#!py | |
def run(): | |
''' | |
Manage sudo enabled user adds/removes | |
''' | |
users_root = [] | |
if 'users_grp1' in pillar: | |
users_root = users_root + pillar['users_grp1'] |
This file contains 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
Processing 1 | |
Processing 2 | |
Processing 3 | |
Processing 4 | |
Processing 5 | |
[Error: Exploding on 5] | |
Processing 6 | |
Processing 7 | |
Processing 8 | |
Processing 9 |
This file contains 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
Currently we can do this for file system mapping: | |
file_roots: | |
base: | |
- /srv/salt/base | |
dev: | |
- /srv/salt/dev | |
qa: | |
- /srv/salt/qa | |
prod: |
This file contains 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
Data failed to compile: | |
---------- | |
Traceback (most recent call last): | |
File "/usr/lib/pymodules/python2.7/salt/state.py", line 2293, in call_highstate | |
top = self.get_top() | |
File "/usr/lib/pymodules/python2.7/salt/state.py", line 1880, in get_top | |
return self.merge_tops(tops) | |
File "/usr/lib/pymodules/python2.7/salt/state.py", line 1814, in merge_tops | |
top[env][tgt] = ctop[env][tgt] | |
TypeError: list indices must be integers, not str |
This file contains 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
Log { | |
Level = Error | |
NoSilencer = false | |
AlwaysLogUnhandledExceptions = true | |
RuntimeErrorReportingLevel = 8191 | |
Header = false | |
InjectedStackTrace = true | |
NativeStackTrace = true | |
MaxMessagesPerRequest = -1 | |
# error log settings |
This file contains 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
#!py | |
def run(): | |
''' | |
Manage sudo enabled user adds/removes | |
''' | |
# temp fix for regression https://github.com/saltstack/salt/issues/7693 | |
if '__pillar__' in globals(): | |
globals()['pillar'] = globals()['__pillar__'] |