Skip to content
Snippets Groups Projects
Commit 25f1134b authored by nimrod's avatar nimrod
Browse files

Merge branch 'master' of /home/nimrod/Documents/Shore/Ansible/example

parents 99a9d6ad 32fb0312
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@
- id: flake8
- id: check-symlinks
- repo: https://github.com/adarnimrod/ansible-pre-commit.git
sha: 0fadd691465b97db8992cfc66650f630e433324b
sha: v0.5.0
hooks:
- id: ansible-syntax-check
always_run: true
......@@ -30,6 +30,6 @@
name: piprot
description: Check up-to-date Python requirements
language: system
entry: piprot --quiet --outdated tests/requirements.txt
entry: piprot --outdated tests/requirements.txt
files: requirements.txt
always_run: true
---
language: python
python: ["2.7", "3.4"]
python: ["2.7", "3.5"]
dist: trusty
sudo: True
group: beta
services: [docker]
env:
- platform: openbsd60
driver: vagrant
- &openbsd59 platform=openbsd59 driver=vagrant
- &openbsd56 platform=openbsd56 driver=vagrant
- &openbsd59 platform=openbsd59
- &openbsd56 platform=openbsd56
- platform: xenial
driver: vagrant
- platform: trusty
driver: vagrant
- &jessie platform=jessie driver=vagrant
- &wheezy platform=wheezy driver=vagrant
- &jessie platform=jessie
- &wheezy platform=wheezy
- platform: precise
driver: vagrant
- driver: docker
platform: all
- &stretch platform=stretch
matrix:
fast_finish: True
allow_failures:
- python: "3.4"
- python: "3.5"
- env: *openbsd59
- env: *openbsd56
- env: *jessie
- env: *wheezy
- env: *stretch
cache:
- pip
- directories:
......@@ -44,7 +39,7 @@ install:
script:
- pre-commit run --all-files
- molecule test --driver $driver --platform $platform
- molecule test --platform $platform
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/
......
......@@ -29,9 +29,8 @@ See :code:`tests/playbook.yml`.
Testing
-------
Testing requires Python 2.7 and either Docker or Vagrant and Virtualbox.
Install the Python dependencies, dependent roles and roles required for
testing:
Testing requires Python 2.7, Vagrant and Virtualbox. Install the Python
dependencies, dependent roles and roles required for testing:
.. code:: shell
......
......@@ -26,12 +26,14 @@ vagrant:
box: ubuntu/xenial32
- name: trusty
box: ubuntu/trusty32
- name: jessie
box: debian/jessie32
- name: wheezy
box: debian/wheezy32
- name: precise
box: hashicorp/precise32
- name: stretch
box: remram/debian-9-i386
- name: jessie
box: deb/jessie-i386
- name: wheezy
box: bmorg/debian-wheezy-i386
instances:
- name: python27
options:
......@@ -45,42 +47,3 @@ vagrant:
vm.provider "virtualbox" do |v|
v.customize "pre-boot", ["modifyvm", :id, "--hwvirtex", "off"]
end
docker:
containers:
- name: python27-precise
image: ubuntu
image_version: precise
environment:
DEBIAN_FRONTEND: noninteractive
container: docker
- name: python27-trusty
image: ubuntu
image_version: trusty
environment:
DEBIAN_FRONTEND: noninteractive
container: docker
- name: python27-xenial
image: ubuntu
image_version: xenial
environment:
DEBIAN_FRONTEND: noninteractive
container: docker
- name: python27-wheezy
image: debian
image_version: wheezy
environment:
DEBIAN_FRONTEND: noninteractive
container: docker
- name: python27-jessie
image: debian
image_version: jessie
environment:
DEBIAN_FRONTEND: noninteractive
container: docker
- name: python27-stretch
image: debian
image_version: stretch
environment:
DEBIAN_FRONTEND: noninteractive
container: docker
---
- hosts: python27-openbsd*
gather_facts: False
roles: [openbsd-bootstrap]
gather_facts: false
roles:
- openbsd-bootstrap
- role: users
users: []
users_use_sudo: True
users_lock_root_ssh: False
- hosts: python27-xenial
gather_facts: False
roles: [debian-bootstrap]
- hosts: [pytho27-xenial, python27-wheezy, python27-precise]
gather_facts: false
roles:
- debian-bootstrap
- role: users
users: []
users_use_sudo: True
users_lock_root_ssh: False
- hosts: all
roles:
......
ansible==2.2.0.0
testinfra==1.5.1
molecule==1.17.3
ansible-lint==3.4.9
pre-commit==0.10.1
ansible==2.2.1.0
testinfra==1.5.3
molecule==1.19.1
ansible-lint==3.4.10
pre-commit==0.12.2
piprot==0.9.7
python-vagrant==0.5.14
docker-py==1.10.6
netaddr==0.7.18
netaddr==0.7.19
passlib==1.7.0
bcrypt==3.1.2
......@@ -3,3 +3,5 @@
name: openbsd-bootstrap
- src: adarnimrod.debian-bootstrap
name: debian-bootstrap
- src: adarnimrod.users
name: users
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment