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
postgresql: | |
service: | |
- running | |
packages: | |
pkg.installed: | |
- pkgs: | |
- libpq5 | |
- postgresql-client-9.2 |
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
# Lets verify!! | |
set pgp_verify_sig=yes | |
set pgp_autosign=yes | |
set pgp_timeout=32000 | |
# old style signing | |
# set pgp_create_traditional=yes | |
# decode application/pgp | |
set pgp_decode_command="/usr/local/bin/gpg %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f" |
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
set_cmd_user: | |
cmd.run: | |
- name: env > /tmp/env | |
- user: git | |
- cwd: /home/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
local@bm-allinone:~$ 2013-03-07 13:37:24,076 [salt.loaded.int.module.debconfmod][WARNING ] Package debconf-utils is not installed. | |
2013-03-07 13:37:24,379 [salt.loaded.int.module.debconfmod][WARNING ] Package debconf-utils is not installed. | |
2013-03-07 13:37:24,552 [salt.loaded.int.top.cobbler][ERROR ] Could not connect to cobbler. | |
Traceback (most recent call last): | |
File "/usr/lib/python2.7/dist-packages/salt/tops/cobbler.py", line 49, in top | |
data = server.get_blended_data(None, minion_id) | |
File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__ | |
return self.__send(self.__name, args) | |
File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in __request | |
verbose=self.__verbose |
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
local@bm-allinone:~$ cat /srv/salt/base/states/top.sls | |
base: | |
'roles:django': | |
- match: pillar | |
- django | |
local@bm-allinone:~$ sudo salt 'bm-console' pillar.data | |
2013-03-07 19:49:44,703 [salt.loaded.int.module.debconfmod][WARNING ] Package debconf-utils is not installed. | |
bm-console: | |
[...] | |
roles: |
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
local@bm-allinone:~$ sudo salt '*' test.ping | |
bm-d2: | |
True | |
2013-03-07 22:39:19,351 [salt.master ][ERROR ] An extra return was detected from minion bm-d2, please verify the minion, this could be a replay attack | |
local@bm-allinone:~$ sudo salt '*' state.highstate | |
bm-d2: | |
Data failed to compile: | |
---------- | |
The function "state.highstate" is running as PID 407 and was started at 2013, Mar 07 22:39:30.137480 | |
local@bm-allinone:~$ 2013-03-07 22:39:30,352 [salt.loaded.int.module.debconfmod][WARNING ] Package debconf-utils is not installed. |
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 get_roles(nodename): | |
""" | |
Stub function that will by replaced by a dynamic lookup | |
""" | |
roles = [] |
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
2013-03-08 23:49:48,566 [salt.master ][DEBUG ] Published command details {'tgt_type': 'glob', 'jid': '20130308234948566036', 'tgt': '*', 'ret': '', 'user': 'sudo_local', 'arg': [], 'fun': 'test.ping'} | |
2013-03-08 23:49:48,577 [salt.master ][INFO ] AES payload received with command _return | |
2013-03-08 23:49:48,577 [salt.master ][INFO ] Got return from lxc01.baremetal.io for job 20130308234948566036 | |
2013-03-08 23:49:48,577 [salt.master ][DEBUG ] {'jid': '20130308234948566036', 'cmd': '_return', 'return': True, 'id': 'lxc01.baremetal.io'} | |
2013-03-08 23:49:48,587 [salt.master ][INFO ] AES payload received with command _return | |
2013-03-08 23:49:48,587 [salt.master ][INFO ] Got return from bm-django for job 20130308234948566036 | |
2013-03-08 23:49:48,587 [salt.master ][DEBUG ] {' |
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
VBOX_MANAGE='/Applications/VirtualBox.app/Contents/MacOS/VBoxManage-amd64' | |
function vautostart() { | |
cat ${HOME}/.vbox_autostart | while read i; do | |
${VBOX_MANAGE} startvm --type=headless $i | |
done; | |
} | |
function _vdo() { | |
buf=$1 |
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
# MIT License: | |
# | |
# Copyright (C) 2012 Heroku, Inc. | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy of | |
# this software and associated documentation files (the "Software"), to deal in | |
# the Software without restriction, including without limitation the rights to | |
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | |
# of the Software, and to permit persons to whom the Software is furnished to do | |
# so, subject to the following conditions: |