Skip to content
This repository was archived by the owner on Nov 12, 2023. It is now read-only.

Commit d061e80

Browse files
authored
Synchronize files from cloudalchemy/skeleton (#16)
Synchronize files from cloudalchemy/skeleton
2 parents 57a349e + 498312a commit d061e80

File tree

6 files changed

+30
-3
lines changed

6 files changed

+30
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ matrix:
1616
install:
1717
- pip3 install tox-travis git-semver
1818
script:
19-
- tox
19+
- ./.travis/test.sh
2020
deploy:
2121
provider: script
2222
skip_cleanup: true

.travis/test.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
if [ ! -d "./molecule/latest" ]; then
6+
tox
7+
exit 0
8+
fi
9+
10+
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
11+
tox -- molecule test --all --destroy never
12+
else
13+
tox -- molecule test -s default --destroy always
14+
if [ -d "./molecule/alternative" ]; then
15+
tox -- molecule test -s alternative --destroy never
16+
fi
17+
fi

CONTRIBUTING.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,12 @@ Remember: Code is generally read much more often than written.
9090
### Use Markdown
9191

9292
Wherever possible, please refrain from any other formats and stick to simple markdown.
93+
94+
## Requirements regarding roles design
95+
96+
We are trying to create the best and most secure installation method for non-containerized prometheus stack components.
97+
To accomplish this all roles need to support:
98+
99+
- current and at least one previous ansible version (wherever possible we try to support 2 previous ansible versions)
100+
- systemd as the only available process manager
101+
- at least latest debian and CentOS distributions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ We provide demo site for full monitoring solution based on prometheus and grafan
4646
The preferred way of locally testing the role is to use Docker and [molecule](https://github.com/metacloud/molecule) (v2.x). You will have to install Docker on your system. See "Get started" for a Docker package suitable to for your system.
4747
We are using tox to simplify process of testing on multiple ansible versions. To install tox execute:
4848
```sh
49-
pip install tox
49+
pip3 install tox
5050
```
5151
To run tests on all ansible versions (WARNING: this can take some time)
5252
```sh

meta/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ galaxy_info:
1313
- xenial
1414
- name: Debian
1515
versions:
16-
- jessie
1716
- stretch
17+
- buster
1818
- name: EL
1919
versions:
2020
- 7

test-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ docker
33
ansible-lint>=3.4.0
44
testinfra>=1.7.0
55
jmespath
6+
selinux

0 commit comments

Comments
 (0)