This file contains hidden or 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
#!/usr/bin/env python | |
""" | |
Search st2 using a pattern. | |
Usage: | |
st2search.py [-u=<url>] (action|key|rule|trigger) <pattern> | |
Positional Arguments: | |
<pattern> a regex to search against |
This file contains hidden or 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
#!/usr/bin/env python | |
import argparse | |
from pymongo import MongoClient | |
def main(host, day_of_week, day, hour, minute): | |
db = MongoClient("mongodb://%s:27017" % host)['st2'] | |
query = {"type":"core.st2.CronTimer"} |
This file contains hidden or 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
#!/opt/stackstorm/st2/bin/python | |
import paramiko | |
ssh = paramiko.SSHClient() | |
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) | |
ssh.connect('svwchi6padmin1', username='sslcertsvcs', password='soopersecret', allow_agent=False, look_for_keys=False) | |
stdin,stdout,stderr = ssh.exec_command('export ST2_ACTION_PACK_NAME=winjobs ST2_ACTION_EXECUTION_ID=575ad62870608e21f4147916 ST2_ACTION_AUTH_TOKEN=7cb848d7bf1f4cc3b951e359bc79690e ST2_ACTION_API_URL=http://127.0.0.1:9101/v1 && cd /tmp && whoami; cmd /c "dir \\\\\\\\svwchi6padmin1\\c$"') | |
print stdout.read() | |
### OUTPUT |
This file contains hidden or 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
# st2 execution get 573e26f859e5f150eb4d19d8 -j | |
{ | |
"action": { | |
"ref": "analytics.stock_group_email" | |
}, | |
"end_timestamp": "2016-05-19T21:24:23.698305Z", | |
"id": "573e26f859e5f150eb4d19d8", | |
"start_timestamp": "2016-05-19T20:50:00.295677Z", | |
"status": "canceled" | |
} |
This file contains hidden or 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
Starting docker-mongo: Unable to find image 'mongo:latest' locally | |
latest: Pulling from library/mongo | |
Digest: sha256:af061b8f52b912e6f6f8547dff8c6cb4784b9a108f7ff8b2adf6366844322b3a | |
Status: Image is up to date for mongo:latest | |
Error response from daemon: No such image: mongo:latest |
This file contains hidden or 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/log/st2/st2auth.uwsgi.log <== | |
2016-02-23 19:58:29,956 DEBUG [-] No version specified in URL. Will use default controller. | |
==> /tmp/st2auth.real.log <== | |
2016-02-23 19:58:29,956 140705019315968 DEBUG log [-] No version specified in URL. Will use default controller. | |
==> /var/log/st2/st2auth.uwsgi.log <== | |
2016-02-23 19:58:29,958 DEBUG [-] Pack not provided in the body, setting a default pack name (default_pack_name='default',resource_api='TokenAPI(**{})') |
This file contains hidden or 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
[loggers] | |
keys=root | |
[handlers] | |
keys=consoleHandler, fileHandler, auditHandler | |
[formatters] | |
keys=simpleConsoleFormatter, verboseConsoleFormatter, gelfFormatter | |
[logger_root] |
This file contains hidden or 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
# | |
# This file is managed by puppet class 'uwsgi::app' | |
# | |
# uwsgi app config for 'st2auth' | |
# | |
[uwsgi] | |
uid = www-data | |
gid = www-data | |
chmod-socket = 644 | |
logto = /var/log/st2/st2auth.uwsgi.log |
This file contains hidden or 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
server { | |
listen *:9100 ssl; | |
server_name stackstorm.peak6.net stackstorm.peak6.net 172.17.0.1 10.2.4.215 127.0.0.1; | |
ssl on; | |
ssl_certificate /etc/ssl/st2/st2.crt; | |
ssl_certificate_key /etc/ssl/st2/st2.key; | |
ssl_session_cache shared:SSL:10m; | |
ssl_session_timeout 5m; |
This file contains hidden or 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
$ sudo update-system | |
Configuring system... | |
There are no candidates for merging among the refs that you just fetched. | |
Generally this means that you provided a wildcard refspec which had no | |
matches on the remote end. | |
Ensuring pre-flight libraries are setup... | |
Installing vendored puppet modules... | |
Installed and to be installed versions match - 1.3.2.16 | |
Setting up 'current_working_directory'... | |
Notice: Compiled catalog for svlchi6pstack1.peak6.net in environment current_working_directory in 6.30 seconds |