-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from aarnaud/master
Add peer port config + new options
- Loading branch information
Showing
14 changed files
with
158 additions
and
45 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,26 @@ | ||
services: docker | ||
|
||
env: | ||
- PLATFORM=debian-wheezy | ||
- PLATFORM=debian-jessie | ||
- PLATFORM=ubuntu-precise | ||
- PLATFORM=ubuntu-trusty | ||
- distribution: ubuntu | ||
version: bionic | ||
- distribution: ubuntu | ||
version: xenial | ||
- distribution: debian | ||
version: stretch | ||
- distribution: debian | ||
version: jessie | ||
|
||
sudo: required | ||
|
||
language: python | ||
|
||
services: | ||
- docker | ||
before_install: | ||
- 'sudo docker pull ${distribution}:${version}' | ||
- 'sudo docker build --no-cache --rm --file=tests/Dockerfile.${distribution}-${version} --tag=${distribution}-${version}:ansible tests' | ||
|
||
script: | ||
- docker build -f tests/$PLATFORM.Dockerfile -t test-$PLATFORM . && docker run --name $PLATFORM test-$PLATFORM | ||
- container_id=$(mktemp) | ||
- 'sudo docker run --detach --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro --volume="${PWD}":/etc/ansible/roles/testing_role:ro ${distribution}-${version}:ansible > "${container_id}"' | ||
- 'sudo docker exec "$(cat ${container_id})" env ANSIBLE_FORCE_COLOR=1 ansible-playbook -v /etc/ansible/roles/testing_role/tests/test.yml --syntax-check' | ||
- 'sudo docker exec "$(cat ${container_id})" env ANSIBLE_FORCE_COLOR=1 ansible-playbook -v /etc/ansible/roles/testing_role/tests/test.yml' | ||
- 'sudo docker rm -f "$(cat ${container_id})"' |
This file contains 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 contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
|
||
- name: "reload systemd" | ||
systemd: | ||
name: transmission-daemon.service | ||
daemon_reload: yes |
This file contains 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 contains 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 contains 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 contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM debian:jessie | ||
|
||
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
libffi-dev \ | ||
libssl-dev \ | ||
python-dev \ | ||
python-pip \ | ||
git \ | ||
systemd \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN pip install --upgrade setuptools && pip install ansible | ||
|
||
RUN mkdir -p /etc/ansible && echo "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts | ||
|
||
ENTRYPOINT ["/bin/systemd"] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM debian:stretch | ||
|
||
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
libffi-dev \ | ||
libssl-dev \ | ||
python-dev \ | ||
python-pip \ | ||
git \ | ||
systemd \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN pip install --upgrade setuptools && pip install ansible | ||
|
||
RUN mkdir -p /etc/ansible && echo "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts | ||
|
||
ENTRYPOINT ["/bin/systemd"] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM ubuntu:bionic | ||
|
||
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
libffi-dev \ | ||
libssl-dev \ | ||
python-dev \ | ||
python-pip \ | ||
python-pkg-resources \ | ||
git \ | ||
systemd \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN pip2 install --upgrade pip setuptools wheel && pip2 install ansible && mkdir -p /etc/ansible/ | ||
|
||
RUN echo "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts | ||
|
||
ENTRYPOINT ["/bin/systemd"] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM ubuntu:xenial | ||
|
||
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
libffi-dev \ | ||
libssl-dev \ | ||
python-dev \ | ||
python-pip \ | ||
python-pkg-resources \ | ||
git \ | ||
systemd \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN pip2 install --upgrade pip setuptools wheel && pip2 install ansible && mkdir -p /etc/ansible/ | ||
|
||
RUN echo "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts | ||
|
||
ENTRYPOINT ["/bin/systemd"] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.