Skip to content

Instantly share code, notes, and snippets.

View abemusic's full-sized avatar

Abe Music abemusic

View GitHub Profile
@abemusic
abemusic / gist:5777344
Created June 13, 2013 21:05
Ubuntu deploy script errors...
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
salt-minion : Depends: python-support but it is not installable
PreDepends: salt-common (= 0.15.3-1raring) but it is not going to be installed
@abemusic
abemusic / warning
Created July 1, 2013 19:09
Warning message from salt and salt cloud
> salt-cloud
/home/ubuntu/.virtualenvs/stackdio/src/salt/salt/version.py:127: UserWarning: The parsed version info, `(0, 15, 0)`, is lower than the one defined in the file, `(0, 15, 90)`.In order to get the proper salt version with the git hash you need to update salt's local git tags. Something like: 'git fetch --tags' or 'git fetch --tags upstream' if you followed salt's contribute documentation. The version string WILL NOT include the git hash.
__version__, __version_info__ = __get_version(__version__, __version_info__)
@abemusic
abemusic / gist:6299682
Last active December 21, 2015 11:29
SLS to check if a service is available and make sure it's not running
include:
- cdh4.zookeeper
extend:
zookeeper-server:
service:
- dead
hbase-master:
pkg:
@abemusic
abemusic / cdh4.hadoop.namenode.sls
Last active December 22, 2015 07:39
SLS: CDH4 namenode
{% set dfs_name_dir = salt['pillar.get']('cdh4:dfs:name_dir') %}
{% set mapred_local_dir = salt['pillar.get']('cdh4:mapred:local_dir') %}
{% set mapred_system_dir = salt['pillar.get']('cdh4:mapred:system_dir') %}
{% set mapred_staging_dir = '/var/lib/hadoop-hdfs/cache/mapred/mapred/staging' %}
# From cloudera, CDH4 requires JDK6, so include it along with the
# CDH4 repository to install their packages.
include:
- cdh4.repo
@abemusic
abemusic / after_restart
Created September 5, 2013 19:47
salt-minion log before and after a restart and attempting to install ack from the master "salt \* pkg.install 'ack'"
2013-09-05 19:45:42,162 [salt ][INFO ] Setting up the Salt Minion "centos-nn-abe-1"
2013-09-05 19:45:42,190 [salt.utils.process ][DEBUG ] Created pidfile: /var/run/salt-minion.pid
2013-09-05 19:45:42,200 [salt.utils.process ][DEBUG ] Chowned pidfile: /var/run/salt-minion.pid to user: root
2013-09-05 19:45:42,200 [salt.config ][DEBUG ] Reading configuration from /etc/salt/minion
2013-09-05 19:45:42,311 [salt.loader ][DEBUG ] loading grain in ['/var/cache/salt/minion/extmods/grains', '/usr/lib/python2.6/site-packages/salt/grains']
2013-09-05 19:45:42,319 [salt.loader ][DEBUG ] Skipping /var/cache/salt/minion/extmods/grains, it is not a directory
2013-09-05 19:45:42,454 [salt.minion ][DEBUG ] Attempting to authenticate with the Salt Master at 10.238.166.94
2013-09-05 19:45:42,461 [salt.crypt ][DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem
2013-09-05 19:45:42,622 [salt.crypt ][DEBUG ] Decrypting the current master AES
{
"centos-nn-abe-1": {
"stack_pillar_available": true,
"jdk6": {
"java_home": "/usr/lib/jvm/java-6-oracle"
},
"custom_var_2": "two",
"custom_var_3": "three",
"custom_var_1": "one",
"cdh4": {
@abemusic
abemusic / accumulo.sls
Last active December 30, 2015 09:59
Error using sources with pkg.installed state.
install_accumulo:
pkg:
- installed
- sources:
- accumulo: 'http://apache.mirrors.hoobly.com/accumulo/1.5.0/accumulo-1.5.0-bin.rpm'
>>> salt foo-nn state.sls foo.test
foo-nn:
----------
ID: wget
Function: pkg.installed
Result: False
Comment: State pkg.installed found in sls foo.test is unavailable
Changes:
----------
@abemusic
abemusic / salt-minion log
Created January 20, 2014 22:01
Later version of develop branch
2014-01-20 22:00:23,791 [salt.loaded.int.render.yaml][DEBUG ] Results of YAML rendering:
OrderedDict([('wget', OrderedDict([('pkg', ['installed'])]))])
2014-01-20 22:00:23,792 [salt.state ][INFO ] Executing state pkg.installed for wget
2014-01-20 22:00:23,793 [salt.loaded.int.module.cmdmod][INFO ] Executing command 'repoquery --queryformat="%{NAME}_|-%{VERSION}_|-%{RELEASE}_|-%{ARCH}_|-%{REPOID}" --all --pkgnarrow=installed' in directory '/root'
2014-01-20 22:00:23,811 [salt.loaded.int.module.cmdmod][ERROR ] Command 'repoquery --queryformat="%{NAME}_|-%{VERSION}_|-%{RELEASE}_|-%{ARCH}_|-%{REPOID}" --all --pkgnarrow=installed' failed with return code: 127
2014-01-20 22:00:23,811 [salt.loaded.int.module.cmdmod][ERROR ] stderr: /bin/bash: repoquery: command not found
2014-01-20 22:00:23,812 [salt.loaded.int.module.cmdmod][INFO ] Executing command 'repoquery --queryformat="%{name}" --pkgnarrow=all -a' in directory '/root'
2014-01-20 22:00:23,829 [salt.loaded.int.module.cmdmod][ERROR ] Comma
@abemusic
abemusic / My M2Crypto dependency
Last active August 29, 2015 13:56
M2Crypto build results
Searching for M2Crypto
Reading https://pypi.python.org/simple/M2Crypto/
Best match: M2Crypto 0.22.3
Downloading https://pypi.python.org/packages/source/M/M2Crypto/M2Crypto-0.22.3.tar.gz#md5=573f21aaac7d5c9549798e72ffcefedd
Processing M2Crypto-0.22.3.tar.gz
Writing /tmp/easy_install-PTgrri/M2Crypto-0.22.3/setup.cfg
Running M2Crypto-0.22.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-PTgrri/M2Crypto-0.22.3/egg-dist-tmp-6_juWx
SWIG/_bio.i:64: Warning(454): Setting a pointer/reference variable may leak memory.
SWIG/_rand.i:21: Warning(454): Setting a pointer/reference variable may leak memory.
SWIG/_evp.i:159: Warning(454): Setting a pointer/reference variable may leak memory.