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

Commit dd243f2

Browse files
committed
init
0 parents  commit dd243f2

31 files changed

+1123
-0
lines changed

.github/stale.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
# Configuration for probot-stale - https://github.com/probot/stale
3+
4+
daysUntilStale: 45
5+
daysUntilClose: 14
6+
7+
# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
8+
exemptLabels:
9+
- bug
10+
11+
exemptProjects: false
12+
exemptMilestones: true
13+
staleLabel: wontfix
14+
15+
markComment: >
16+
This issue has been automatically marked as stale because it has not had
17+
recent activity. It will be closed if no further activity occurs. Thank you
18+
for your contributions.
19+
20+
limitPerRun: 4
21+
22+
issues:
23+
exemptLabels:
24+
- bug
25+
- enhancement

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
*.swp
2+
*.swo
3+
*.idea
4+
.vagrant/
5+
*.retry
6+
*.log
7+
*.swp
8+
*.swo
9+
*.idea
10+
.molecule
11+
.cache
12+
__pycache__/
13+
.pytest_cache
14+
.tox

.travis.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
sudo: required
3+
language: python
4+
cache: pip
5+
services:
6+
- docker
7+
env:
8+
- ANSIBLE=2.4
9+
- ANSIBLE=2.5
10+
- ANSIBLE=2.6
11+
matrix:
12+
fast_finish: true
13+
install:
14+
- pip install tox-travis git-semver
15+
script:
16+
- tox
17+
deploy:
18+
provider: script
19+
skip_cleanup: true
20+
script: .travis/releaser.sh
21+
on:
22+
branch: master
23+
branches:
24+
only:
25+
- master
26+
notifications:
27+
webhooks: https://galaxy.ansible.com/api/v1/notifications/

.travis/releaser.sh

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
#!/bin/bash
2+
#
3+
# Copyright (C) 2018 Pawel Krupa (@paulfantom) - All Rights Reserved
4+
# Permission to copy and modify is granted under the MIT license
5+
#
6+
# Script to automatically do a couple of things:
7+
# - generate a new tag according to semver (https://semver.org/)
8+
# - generate CHANGELOG.md by using https://github.com/skywinder/github-changelog-generator
9+
# - sync CHANGELOG with GitHub releases by using https://github.com/mattbrictson/chandler
10+
#
11+
# Tags are generated by searching for a keyword in last commit message. Keywords are:
12+
# - [patch] or [fix] to bump patch number
13+
# - [minor], [feature] or [feat] to bump minor number
14+
# - [major] or [breaking change] to bump major number
15+
# All keywords MUST be surrounded with square braces.
16+
#
17+
# Script uses git mechanisms for locking, so it can be used in parallel builds
18+
#
19+
# Requirements:
20+
# - GH_TOKEN variable set with GitHub token. Access level: repo.public_repo
21+
# - docker
22+
# - git-semver python package (pip install git-semver)
23+
24+
# Exit when latest commit is tagged
25+
[[ $(git tag --points-at) ]] && exit 0
26+
27+
# Some basic variables
28+
29+
GIT_USER="cloudalchemybot"
30+
ORGANIZATION=$(echo "$TRAVIS_REPO_SLUG" | awk -F '/' '{print $1}')
31+
PROJECT=$(echo "$TRAVIS_REPO_SLUG" | awk -F '/' '{print $2}')
32+
GALAXY_URL="https://galaxy.ansible.com/${ORGANIZATION}/${PROJECT#ansible-}"
33+
34+
# Git config
35+
git config --global user.email "${GIT_MAIL}"
36+
git config --global user.name "${GIT_USER}"
37+
GIT_URL=$(git config --get remote.origin.url)
38+
GIT_URL=${GIT_URL#*//}
39+
40+
# Generate TAG
41+
GIT_TAG=none
42+
echo "Last commit message: $TRAVIS_COMMIT_MESSAGE"
43+
case "${TRAVIS_COMMIT_MESSAGE}" in
44+
*"[patch]"*|*"[fix]"* ) GIT_TAG=$(git semver --next-patch) ;;
45+
*"[minor]"*|*"[feat]"*|*"[feature]"* ) GIT_TAG=$(git semver --next-minor) ;;
46+
*"[major]"*|*"[breaking change]"* ) GIT_TAG=$(git semver --next-major) ;;
47+
*) echo "Keyword not detected. Doing nothing" ;;
48+
esac
49+
if [ "$GIT_TAG" != "none" ]; then
50+
echo "Assigning new tag: $GIT_TAG"
51+
git tag "$GIT_TAG" -a -m "Automatic tag generation for travis build no. $TRAVIS_BUILD_NUMBER"
52+
git push "https://${GH_TOKEN}:@${GIT_URL}" --tags || exit 0
53+
fi
54+
55+
# Generate CHANGELOG.md
56+
git checkout master
57+
git pull
58+
docker run -it --rm -v "$(pwd)":/usr/local/src/your-app ferrarimarco/github-changelog-generator:1.14.3 \
59+
-u "${ORGANIZATION}" -p "${PROJECT}" --token "${GH_TOKEN}" \
60+
--release-url "${GALAXY_URL}" \
61+
--unreleased-label "**Next release**" --no-compare-link
62+
63+
git add CHANGELOG.md
64+
git commit -m '[ci skip] Automatic changelog update'
65+
66+
git push "https://${GH_TOKEN}:@${GIT_URL}" || exit 0
67+
68+
# Sync changelog to github releases
69+
if [ "$GIT_TAG" != "none" ]; then
70+
docker run -e CHANDLER_GITHUB_API_TOKEN="${GH_TOKEN}" -v "$(pwd)":/chandler -ti whizark/chandler push "${GIT_TAG}"
71+
fi

.yamllint

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
extends: default
2+
ignore: |
3+
.travis/
4+
.travis.yml
5+
meta/
6+
7+
rules:
8+
braces:
9+
max-spaces-inside: 1
10+
level: error
11+
brackets:
12+
max-spaces-inside: 1
13+
level: error
14+
line-length: disable

CHANGELOG.md

Lines changed: 216 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,216 @@
1+
# Change Log
2+
3+
## [0.10.0](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2018-07-15)
4+
**Implemented enhancements:**
5+
6+
- import\_tasks instead of include; bringing role up to ansible-prometheus standards; minor changes [\#48](https://github.com/cloudalchemy/ansible-node-exporter/pull/48) ([paulfantom](https://github.com/paulfantom))
7+
8+
## [0.9.0](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2018-07-01)
9+
**Fixed bugs:**
10+
11+
- Problems with `node\_exporter\_textfile\_dir` [\#43](https://github.com/cloudalchemy/ansible-node-exporter/issues/43)
12+
13+
**Closed issues:**
14+
15+
- node-exporter service handler is triggered before deployment [\#44](https://github.com/cloudalchemy/ansible-node-exporter/issues/44)
16+
17+
**Merged pull requests:**
18+
19+
- ansible 2.6 + allow remote docker host [\#46](https://github.com/cloudalchemy/ansible-node-exporter/pull/46) ([paulfantom](https://github.com/paulfantom))
20+
- use tox for running test matrix [\#45](https://github.com/cloudalchemy/ansible-node-exporter/pull/45) ([paulfantom](https://github.com/paulfantom))
21+
22+
## [0.8.0](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2018-06-10)
23+
**Merged pull requests:**
24+
25+
- Add support for textfile collector [\#42](https://github.com/cloudalchemy/ansible-node-exporter/pull/42) ([SuperQ](https://github.com/SuperQ))
26+
27+
## [0.7.0](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2018-06-10)
28+
**Implemented enhancements:**
29+
30+
- Socket activation [\#41](https://github.com/cloudalchemy/ansible-node-exporter/issues/41)
31+
32+
**Merged pull requests:**
33+
34+
- specify file name for dest in get\_url call [\#40](https://github.com/cloudalchemy/ansible-node-exporter/pull/40) ([sarphram](https://github.com/sarphram))
35+
- Install newer node\_exporter by default [\#36](https://github.com/cloudalchemy/ansible-node-exporter/pull/36) ([paulfantom](https://github.com/paulfantom))
36+
37+
## [0.6.20](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2018-05-27)
38+
**Merged pull requests:**
39+
40+
- Fix architecture var parsing [\#39](https://github.com/cloudalchemy/ansible-node-exporter/pull/39) ([SuperQ](https://github.com/SuperQ))
41+
- Offer a better IRC Web clients to users [\#38](https://github.com/cloudalchemy/ansible-node-exporter/pull/38) ([Porkepix](https://github.com/Porkepix))
42+
43+
## [0.6.19](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2018-05-23)
44+
**Merged pull requests:**
45+
46+
- Fix failing role on non-SELinux RedHat [\#37](https://github.com/cloudalchemy/ansible-node-exporter/pull/37) ([noraab](https://github.com/noraab))
47+
- split download and unarchive and add checksum validation [\#35](https://github.com/cloudalchemy/ansible-node-exporter/pull/35) ([paulfantom](https://github.com/paulfantom))
48+
- move to molecule 2.x [\#34](https://github.com/cloudalchemy/ansible-node-exporter/pull/34) ([paulfantom](https://github.com/paulfantom))
49+
50+
## [0.6.18](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2018-04-13)
51+
**Merged pull requests:**
52+
53+
- Make node\_exporter.service template compatible with both Python 2 and 3 [\#33](https://github.com/cloudalchemy/ansible-node-exporter/pull/33) ([nikosgraser](https://github.com/nikosgraser))
54+
55+
## [0.6.17](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2018-04-12)
56+
**Merged pull requests:**
57+
58+
- Skip capabilities set in check\_mode [\#32](https://github.com/cloudalchemy/ansible-node-exporter/pull/32) ([Porkepix](https://github.com/Porkepix))
59+
60+
## [0.6.16](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2018-04-06)
61+
**Merged pull requests:**
62+
63+
- Fix test done using a filter [\#31](https://github.com/cloudalchemy/ansible-node-exporter/pull/31) ([Porkepix](https://github.com/Porkepix))
64+
- Fix \_\_pycache\_\_ in .gitignore [\#30](https://github.com/cloudalchemy/ansible-node-exporter/pull/30) ([Porkepix](https://github.com/Porkepix))
65+
66+
## [0.6.15](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2018-04-05)
67+
## [0.6.14](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2018-04-02)
68+
**Merged pull requests:**
69+
70+
- retry downloads [\#29](https://github.com/cloudalchemy/ansible-node-exporter/pull/29) ([paulfantom](https://github.com/paulfantom))
71+
72+
## [0.6.13](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2018-03-30)
73+
**Merged pull requests:**
74+
75+
- Fix check mode [\#28](https://github.com/cloudalchemy/ansible-node-exporter/pull/28) ([Porkepix](https://github.com/Porkepix))
76+
77+
## [0.6.12](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2018-03-26)
78+
**Merged pull requests:**
79+
80+
- Ubuntu bionic \(18.04\) support [\#26](https://github.com/cloudalchemy/ansible-node-exporter/pull/26) ([paulfantom](https://github.com/paulfantom))
81+
82+
## [0.6.11](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2018-03-24)
83+
**Merged pull requests:**
84+
85+
- ansible 2.5 [\#27](https://github.com/cloudalchemy/ansible-node-exporter/pull/27) ([paulfantom](https://github.com/paulfantom))
86+
87+
## [0.6.10](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2018-03-05)
88+
**Closed issues:**
89+
90+
- Adding option to configure collectors [\#18](https://github.com/cloudalchemy/ansible-node-exporter/issues/18)
91+
92+
**Merged pull requests:**
93+
94+
- Modify when-statement to not include jinja2 templating delimiters such [\#25](https://github.com/cloudalchemy/ansible-node-exporter/pull/25) ([swesterveld](https://github.com/swesterveld))
95+
96+
## [0.6.9](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2018-02-18)
97+
**Closed issues:**
98+
99+
- Preflight checks [\#16](https://github.com/cloudalchemy/ansible-node-exporter/issues/16)
100+
101+
**Merged pull requests:**
102+
103+
- fedora support + issue 18 [\#24](https://github.com/cloudalchemy/ansible-node-exporter/pull/24) ([paulfantom](https://github.com/paulfantom))
104+
105+
## [0.6.8](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2018-02-14)
106+
**Merged pull requests:**
107+
108+
- Make Prometheus node exporter restart/reload with sudo privileges. [\#23](https://github.com/cloudalchemy/ansible-node-exporter/pull/23) ([swesterveld](https://github.com/swesterveld))
109+
110+
## [0.6.7](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2018-01-14)
111+
**Merged pull requests:**
112+
113+
- custom docker images; support more OSes [\#21](https://github.com/cloudalchemy/ansible-node-exporter/pull/21) ([paulfantom](https://github.com/paulfantom))
114+
115+
## [0.6.6](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2018-01-13)
116+
**Merged pull requests:**
117+
118+
- Add preflight checks [\#22](https://github.com/cloudalchemy/ansible-node-exporter/pull/22) ([jkrol2](https://github.com/jkrol2))
119+
120+
## [0.6.5](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2018-01-13)
121+
**Closed issues:**
122+
123+
- Permission denied to fs [\#17](https://github.com/cloudalchemy/ansible-node-exporter/issues/17)
124+
125+
**Merged pull requests:**
126+
127+
- Set home directory for node-exp user [\#20](https://github.com/cloudalchemy/ansible-node-exporter/pull/20) ([paulfantom](https://github.com/paulfantom))
128+
129+
## [0.6.4](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2018-01-09)
130+
**Merged pull requests:**
131+
132+
- Fix \#17 [\#19](https://github.com/cloudalchemy/ansible-node-exporter/pull/19) ([paulfantom](https://github.com/paulfantom))
133+
134+
## [0.6.3](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2018-01-08)
135+
## [0.6.2](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2018-01-06)
136+
**Merged pull requests:**
137+
138+
- minor fix, added i386 to arch [\#15](https://github.com/cloudalchemy/ansible-node-exporter/pull/15) ([rdemachkovych](https://github.com/rdemachkovych))
139+
140+
## [0.6.1](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2018-01-04)
141+
**Merged pull requests:**
142+
143+
- Lower niceness to increase app priority [\#14](https://github.com/cloudalchemy/ansible-node-exporter/pull/14) ([paulfantom](https://github.com/paulfantom))
144+
- docs [\#13](https://github.com/cloudalchemy/ansible-node-exporter/pull/13) ([paulfantom](https://github.com/paulfantom))
145+
146+
## [0.6.0](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2018-01-02)
147+
**Merged pull requests:**
148+
149+
- Update generatetag.sh [\#12](https://github.com/cloudalchemy/ansible-node-exporter/pull/12) ([paulfantom](https://github.com/paulfantom))
150+
151+
## [0.5.11](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2018-01-02)
152+
**Merged pull requests:**
153+
154+
- support older raspberry pi [\#11](https://github.com/cloudalchemy/ansible-node-exporter/pull/11) ([paulfantom](https://github.com/paulfantom))
155+
156+
## [0.5.10](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2018-01-01)
157+
**Closed issues:**
158+
159+
- Option to disable collectors [\#2](https://github.com/cloudalchemy/ansible-node-exporter/issues/2)
160+
161+
**Merged pull requests:**
162+
163+
- added node exporter disabled collectors option [\#10](https://github.com/cloudalchemy/ansible-node-exporter/pull/10) ([rdemachkovych](https://github.com/rdemachkovych))
164+
165+
## [0.5.9](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2017-12-27)
166+
**Merged pull requests:**
167+
168+
- armv7l ansible arch translates to armv7 go arch [\#9](https://github.com/cloudalchemy/ansible-node-exporter/pull/9) ([anisse](https://github.com/anisse))
169+
170+
## [0.5.8](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2017-12-27)
171+
**Implemented enhancements:**
172+
173+
- Support multiple go architectures [\#5](https://github.com/cloudalchemy/ansible-node-exporter/issues/5)
174+
175+
**Merged pull requests:**
176+
177+
- Remove unused command line flags [\#8](https://github.com/cloudalchemy/ansible-node-exporter/pull/8) ([anisse](https://github.com/anisse))
178+
179+
## [0.5.7](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2017-12-15)
180+
**Merged pull requests:**
181+
182+
- update node\_exporter version [\#7](https://github.com/cloudalchemy/ansible-node-exporter/pull/7) ([paulfantom](https://github.com/paulfantom))
183+
- auto set go architecture [\#6](https://github.com/cloudalchemy/ansible-node-exporter/pull/6) ([paulfantom](https://github.com/paulfantom))
184+
185+
## [0.5.6](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2017-12-06)
186+
**Merged pull requests:**
187+
188+
- Stop pipeline on any error [\#4](https://github.com/cloudalchemy/ansible-node-exporter/pull/4) ([paulfantom](https://github.com/paulfantom))
189+
190+
## [0.5.5](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2017-11-30)
191+
## [0.5.4](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2017-11-30)
192+
## [0.5.3](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2017-11-28)
193+
**Merged pull requests:**
194+
195+
- fix CI; remove company from role description [\#1](https://github.com/cloudalchemy/ansible-node-exporter/pull/1) ([paulfantom](https://github.com/paulfantom))
196+
197+
## [0.5.1](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2017-11-09)
198+
## [0.5.0](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2017-10-16)
199+
## [0.4.3](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2017-10-12)
200+
## [0.4.2](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2017-10-05)
201+
## [0.4.1](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2017-09-26)
202+
## [0.4.0](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2017-09-20)
203+
## [0.3.3](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2017-08-09)
204+
## [0.3.4](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2017-08-09)
205+
## [0.3.2](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2017-07-26)
206+
## [0.3.1](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2017-07-26)
207+
## [0.3.0](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2017-07-21)
208+
## [0.2.0](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2017-07-21)
209+
## [0.1.1](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2017-06-14)
210+
## [0.1.2](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2017-06-14)
211+
## [0.1.0](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2017-06-06)
212+
## [0.0.2](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2017-05-18)
213+
## [0.0.1](https://galaxy.ansible.com/cloudalchemy/node-exporter) (2017-04-19)
214+
215+
216+
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*

0 commit comments

Comments
 (0)