Skip to content

Commit 6f526e6

Browse files
committed
Enh: readme
1 parent d1c2eaa commit 6f526e6

File tree

4 files changed

+19
-16
lines changed

4 files changed

+19
-16
lines changed

.travis.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ matrix:
7171
include:
7272
- python: "2.6"
7373
env: TEST_SUITE=PYTHON
74+
# NOTE: no 3.3 as it's just too old and not use
7475
- python: "3.4"
7576
env: TEST_SUITE=PYTHON
7677
- python: "3.5"
@@ -85,8 +86,3 @@ script:
8586
- chmod a+x test/docker-helper/*
8687
- cd test
8788
- ./test_suite.sh
88-
89-
90-
# specific call to launch coverage data into coveralls.io
91-
#after_success:
92-
# coveralls

README.md

+13-7
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ All the configuration / deployment is model based (aka into **packs**)
1717
#### Prerequites
1818
You will need:
1919

20-
* python (2.6 or 2.7)
20+
* python (2.6, 2.7 or 3.4+ versions)
2121

2222

2323
#### Installation
@@ -31,7 +31,17 @@ Example of the installation at:
3131
<a target="blank" href="https://asciinema.org/a/IQYFa6xv4NBTGjbcKLH8uFLtR"><img src="https://asciinema.org/a/IQYFa6xv4NBTGjbcKLH8uFLtR.png" height="300" width="200" /></a>
3232

3333

34-
Note: On the main linux distributions (debian, centos, redhat & ubuntu), it will automatically install its dependencies from the package manager (apt/yum). On the others distributions (OpenSuse, Alpine, etc), depedencies will be take from pypi.
34+
Note: main linux distributions are managed and will automatically install dependencies from the package manager (apt/yum/apk/zypper):
35+
* Alpine 3.1→3.7
36+
* Amazonlinux 2016 & 2017
37+
* Centos 6 & 7
38+
* Debian 6→9
39+
* Fedora 24→28
40+
* OpenSuse 42
41+
* Ubuntu 12.04→18.10
42+
43+
44+
On others distributions depedencies will be take from pypi.
3545

3646

3747
## Start OpsBro daemon
@@ -355,8 +365,4 @@ It list all available node with the "group" linux.
355365

356366
## Is there an UI available?
357367

358-
To see your metrology data, look at the grafana module.
359-
360-
To see the nodes & metrology states, an UI is currently in progress. Will be not Open source but will be free of use at the opsbro.io website.
361-
Please contact me (naparuba _AT_ gmail.com is you are interested to test it in Beta phase).
362-
368+
Soon :)

data/global-configuration/packs/core-functions/module/system.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import os
2-
import json
2+
import codecs
33

44
from opsbro.evaluater import export_evaluater_function
55
from opsbro.misc.lolcat import lolcat
66
from opsbro.util import PY3
7+
from opsbro.jsonmgr import jsoner
78

89
if PY3:
910
basestring = str
@@ -284,8 +285,8 @@ def parse_json_file(path):
284285
{'key':'value'}
285286
</code>
286287
"""
287-
with open(path, 'r') as f:
288-
o = json.load(f)
288+
with codecs.open(path, 'r', 'utf8') as f:
289+
o = jsoner.load(f)
289290
return o
290291

291292

test/test_feature_dns_module.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ sleep 15
1515

1616

1717
# Look which addr we dhould match
18-
ADDR=$(opsbro agent info| grep 'Public addr' | awk '{print $3}')
18+
ADDR=$(opsbro agent print public-addr)
1919

2020
if [ "X$ADDR" == "X" ];then
2121
echo "ERROR: cannot look Address"

0 commit comments

Comments
 (0)