Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
import salt.config
import salt.wheel
opts = salt.config.master_config('/etc/salt/master')
wheel = salt.wheel.WheelClient(opts)
keys = wheel.cmd('keys.list_all')
print(keys)
"""
@craig5
craig5 / gist:072dae97a294f71d7b4a
Created May 5, 2015 21:55
datadog agent install
$ sudo apt-get install datadog-agent -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
datadog-agent is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up datadog-agent (1:5.3.2-1) ...
System start/stop links for /etc/init.d/datadog-agent already exist.
2015-04-09 19:27:23+0000 [-] releaseLocks(<buildbot.steps.shell.ShellCommand object at 0x7f7a6fdc4250>): []
2015-04-09 19:27:23+0000 [-] step 'mp_vision mp_build' complete: failure
2015-04-09 19:27:23+0000 [-] <Build mp_vision build>: build finished
2015-04-09 19:27:23+0000 [-] mp_vision build <BuildStatus #14> <buildbot.status.master.Status instance at 0x7f7a70d6b2d8>
2015-04-09 19:27:23+0000 [-] sending mail (870 bytes) to ['craig@matterport.com']
2015-04-09 19:27:23+0000 [-] Starting factory <twisted.mail.smtp.ESMTPSenderFactory instance at 0x7f7a6e4505a8>
2015-04-09 19:27:23+0000 [-] releaseLocks(<BuildSlave 'python-slave'>): []
2015-04-09 19:27:23+0000 [ESMTPSender,client] SMTP Client retrying server. Retry: 5
2015-04-09 19:27:23+0000 [ESMTPSender,client] SMTP Client retrying server. Retry: 4
2015-04-09 19:27:23+0000 [ESMTPSender,client] SMTP Client retrying server. Retry: 3
2014-10-31 01:11:03,009 [salt.loaded.ext.grain.matterport][DEBUG ] Hostname: salt-test.matterport.com
2014-10-31 01:11:03,104 [salt.loaded.ext.grain.matterport][DEBUG ] hparts:
2014-10-31 01:11:03,150 [salt.loader ][DEBUG ] Loaded localemod as virtual locale
2014-10-31 01:11:03,151 [salt.loader ][DEBUG ] Loaded groupadd as virtual group
2014-10-31 01:11:03,153 [salt.loader ][DEBUG ] Loaded grub_legacy as virtual grub
2014-10-31 01:11:03,155 [salt.loader ][DEBUG ] Loaded linux_sysctl as virtual sysctl
2014-10-31 01:11:03,158 [salt.loader ][DEBUG ] Loaded debian_ip as virtual ip
2014-10-31 01:11:03,162 [salt.loader ][DEBUG ] Loaded aptpkg as virtual pkg
2014-10-31 01:11:03,167 [salt.loader ][DEBUG ] Loaded parted as virtual partition
2014-10-31 01:11:03,169 [salt.loader ][DEBUG ] Loaded sysmod as virtual sys
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
+ make
make all-recursive
make[1]: Entering directory `/home/craig/open-source/libcrange/source'
Making all in src
make[2]: Entering directory `/home/craig/open-source/libcrange/source/src'
make all-am
make[3]: Entering directory `/home/craig/open-source/libcrange/source/src'
config.status: executing depfiles commands
config.status: executing libtool commands
+ make
make all-recursive
make[1]: Entering directory `/home/craig/open-source/libcrange/source'
Making all in src
make[2]: Entering directory `/home/craig/open-source/libcrange/source/src'
make all-am
make[3]: Entering directory `/home/craig/open-source/libcrange/source/src'
/bin/bash ../ylwrap range_parser.y y.tab.c range_parser.c y.tab.h `echo range_parser.c | sed -e s/cc$/hh/ -e s/cpp$/hpp/ -e s/cxx$/hxx/ -e s/c++$/h++/ -e s/c$/h/` y.output range_parser.output -- bison -y -d