Skip to content
Snippets Groups Projects
Commit 99a435b7 authored by nimrod's avatar nimrod
Browse files

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

# Conflicts:
#	.travis.yml
#	molecule.yml
#	tasks/main.yml
parents 3e1f93a9 37a52d87
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
- id: flake8 - id: flake8
- id: check-symlinks - id: check-symlinks
- repo: https://github.com/adarnimrod/ansible-pre-commit.git - repo: https://github.com/adarnimrod/ansible-pre-commit.git
sha: 0fadd691465b97db8992cfc66650f630e433324b sha: v0.5.0
hooks: hooks:
- id: ansible-syntax-check - id: ansible-syntax-check
always_run: true always_run: true
......
...@@ -4,12 +4,12 @@ python: ["2.7", "3.5"] ...@@ -4,12 +4,12 @@ python: ["2.7", "3.5"]
dist: trusty dist: trusty
sudo: True sudo: True
group: beta group: beta
services: [docker]
env: env:
global:
- VBOX_MEMORY=2048
matrix:
- platform: xenial - platform: xenial
driver: vagrant
- platform: trusty - platform: trusty
driver: vagrant
matrix: matrix:
fast_finish: True fast_finish: True
allow_failures: allow_failures:
...@@ -30,8 +30,9 @@ install: ...@@ -30,8 +30,9 @@ install:
script: script:
- pre-commit run --all-files - pre-commit run --all-files
- travis_wait 45 molecule test --driver $driver --platform $platform - travis_wait 45 molecule test --platform $platform
notifications: notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/ webhooks: https://galaxy.ansible.com/api/v1/notifications/
email: false email: false
on_failure: never
...@@ -29,9 +29,8 @@ See :code:`tests/playbook.yml`. ...@@ -29,9 +29,8 @@ See :code:`tests/playbook.yml`.
Testing Testing
------- -------
Testing requires Python 2.7 and either Docker or Vagrant and Virtualbox. Testing requires Python 2.7, Vagrant and Virtualbox. Install the Python
Install the Python dependencies, dependent roles and roles required for dependencies, dependent roles and roles required for testing:
testing:
.. code:: shell .. code:: shell
......
...@@ -8,6 +8,7 @@ galaxy_info: ...@@ -8,6 +8,7 @@ galaxy_info:
- name: Ubuntu - name: Ubuntu
versions: versions:
- xenial - xenial
- trusty
galaxy_tags: [ docker ] galaxy_tags: [ docker ]
dependencies: dependencies:
- name: python27 - name: python27
......
...@@ -25,6 +25,7 @@ vagrant: ...@@ -25,6 +25,7 @@ vagrant:
options: options:
append_platform_to_hostname: yes append_platform_to_hostname: yes
raw_config_args: raw_config_args:
- 'vm.boot_timeout = 600'
- 'vm.synced_folder ".", "/vagrant", disabled: true' - 'vm.synced_folder ".", "/vagrant", disabled: true'
- 'vbguest.auto_update = false if Vagrant.has_plugin?("vbguest")' - 'vbguest.auto_update = false if Vagrant.has_plugin?("vbguest")'
- 'landrush.enabled = false if Vagrant.has_plugin?("landrush")' - 'landrush.enabled = false if Vagrant.has_plugin?("landrush")'
...@@ -32,4 +33,5 @@ vagrant: ...@@ -32,4 +33,5 @@ vagrant:
- | - |
vm.provider "virtualbox" do |v| vm.provider "virtualbox" do |v|
v.customize "pre-boot", ["modifyvm", :id, "--hwvirtex", "off"] v.customize "pre-boot", ["modifyvm", :id, "--hwvirtex", "off"]
v.memory = ENV['VBOX_MEMORY'].to_i if ENV.has_key?('VBOX_MEMORY')
end end
ansible==2.2.1.0 ansible==2.2.1.0
testinfra==1.5.2 testinfra==1.5.3
molecule==1.19.0 molecule==1.20.0
ansible-lint==3.4.10 ansible-lint==3.4.10
pre-commit==0.11.0 pre-commit==0.12.2
piprot==0.9.7 piprot==0.9.7
python-vagrant==0.5.14 python-vagrant==0.5.14
docker-py==1.10.6
netaddr==0.7.19 netaddr==0.7.19
passlib==1.7.0 passlib==1.7.1
bcrypt==3.1.2 bcrypt==3.1.2
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment