Skip to content

Commit 997e51b

Browse files
author
Adrien Delle Cave
committed
[RELEASE] version: 0.0.7
1 parent 28d074e commit 997e51b

File tree

2 files changed

+97
-1
lines changed

2 files changed

+97
-1
lines changed

foo.env

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
LANG="en_US.utf8"
2+
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
3+
MONIT_DOCKER_CONFIG="vars:
4+
base_url_unix: unix:///var/run/docker.sock
5+
base_url_https: https://127.0.0.1:2376/
6+
tls_verify: true
7+
clients:
8+
'@import_client':
9+
- clients.yml.example
10+
local_https:
11+
config:
12+
base_url: ${vars['base_url_https']}
13+
tls:
14+
verify: ${vars['tls_verify']}
15+
foo_https:
16+
'@import_vars': foo_https.vars.yml.example
17+
config:
18+
base_url: ${vars['base_url_https']}
19+
ctn-groups:
20+
php:
21+
match:
22+
- 'name:foo-php*'
23+
- 'image:*/php-fpm/*'
24+
- 'label:*php-fpm*'
25+
nodejs:
26+
match:
27+
- 'id:4c01db0b339c'
28+
- 'name:node*'
29+
conditions:
30+
mem_gt_10pct_and_cpu_gt_60pct:
31+
expr:
32+
- mem_percent > 10
33+
- cpu_percent > 60
34+
mem_usage_100MiB:
35+
expr:
36+
- mem_usage > 100 MiB
37+
status_not_running:
38+
expr:
39+
- status not in (pause,running)
40+
commands:
41+
start_pause:
42+
exec:
43+
- start
44+
- (echo 'foo' > /tmp/bar)
45+
- pause
46+
pause_restart:
47+
exec:
48+
- pause
49+
- restart
50+
remove_force:
51+
exec:
52+
- remove:
53+
kwargs:
54+
force: true"
55+
SHELL="/bin/bash"
56+
AUTON_CONFIG="general:
57+
listen_addr: 0.0.0.0
58+
listen_port: 8666
59+
max_workers: 5
60+
max_requests: 5000
61+
max_life_time: 3600
62+
lock_timeout: 60
63+
charset: utf-8
64+
content_type: 'application/json; charset=utf-8'
65+
#auth_basic: 'Restricted'
66+
#auth_basic_file: '/etc/auton/auton.passwd'
67+
endpoints:
68+
si.corp-ansible:
69+
plugin: subproc
70+
config:
71+
prog: ansible-playbook
72+
timeout: 3600
73+
si.corp-terraform:
74+
plugin: subproc
75+
config:
76+
prog: terraform
77+
timeout: 3600
78+
curl:
79+
plugin: subproc
80+
config:
81+
prog: curl
82+
timeout: 3600
83+
modules:
84+
job:
85+
routes:
86+
run:
87+
handler: 'job_run'
88+
regexp: '^run/(?P<endpoint>[^\/]+)/(?P<id>[a-z0-9][a-z0-9\-]{7,63})$'
89+
safe_init: true
90+
auth: false
91+
op: 'POST'
92+
status:
93+
handler: 'job_status'
94+
regexp: '^status/(?P<endpoint>[^\/]+)/(?P<id>[a-z0-9][a-z0-9\-]{7,63})$'
95+
auth: false
96+
op: 'GET'"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import os
55
from setuptools import find_packages, setup
66

7-
version = '0.0.6'
7+
version = '0.0.7'
88

99
current_dir = os.path.abspath(os.path.dirname(__file__))
1010
requirements = [line.strip() for line in open(os.path.join(current_dir, 'requirements.txt'), 'r').readlines()]

0 commit comments

Comments
 (0)