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

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

# Conflicts:
#	molecule.yml
#	tasks/main.yml
#	tests/playbook.yml
parents b3c2aa4d a653ed5f
No related branches found
No related tags found
No related merge requests found
---
language: python
python: "2.7"
python: ["2.7", "3.4"]
dist: trusty
sudo: false
sudo: True
group: beta
services: [docker]
env:
- platform: openbsd60
driver: vagrant
- &openbsd59 platform=openbsd59 driver=vagrant
- driver: docker
platform: all
matrix:
fast_finish: True
allow_failures:
- python: "3.4"
- env: *openbsd59
cache:
- pip
- directories:
- $HOME/.pre-commit
install:
- sudo apt-get update
- sudo apt-get install -y linux-headers-$(uname -r) virtualbox
- wget https://releases.hashicorp.com/vagrant/1.9.1/vagrant_1.9.1_x86_64.deb
- sudo dpkg -i vagrant_1.9.1_x86_64.deb
- pip install -r tests/requirements.txt | cat
- ansible-galaxy install git+file://$(pwd),$(git rev-parse --abbrev-ref HEAD) -p .molecule/roles
- molecule dependency
script:
- pre-commit run --all-files
- molecule test --driver docker
- molecule test --driver $driver --platform $platform
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/
......
......@@ -2,7 +2,7 @@
library = library
host_key_checking = False
retry_files_enabled = False
roles_path = .molecule/roles:.molecule/../roles:../:../../
roles_path = ../:.molecule/roles:.molecule/../roles:../../
command_warnings = True
deprecation_warnings = True
callback_whitelist = profile_tasks
......
......@@ -13,20 +13,34 @@ vagrant:
providers:
- name: virtualbox
type: virtualbox
options:
cpus: 1
platforms:
- name: openbsd
box: kaorimatz/openbsd-6.0-amd64
- name: openbsd60
box: fnichol/openbsd-6.0-i386
- name: openbsd59
box: fnichol/openbsd-5.9-i386
- name: xenial
box: ubuntu/xenial32
- name: trusty
box: ubuntu/trusty32
- name: jessie
box: debian/jessie64
box: debian/jessie32
- name: wheezy
box: debian/wheezy32
instances:
- name: deploy-key
options:
append_platform_to_hostname: yes
raw_config_args:
- 'vm.synced_folder ".", "/vagrant", disabled: true'
- 'vbguest.auto_update = false'
- 'landrush.enabled = false'
- 'landrush_ip.override = false'
- 'vbguest.auto_update = false if Vagrant.has_plugin?("vbguest")'
- 'landrush.enabled = false if Vagrant.has_plugin?("landrush")'
- 'landrush_ip.override = false if Vagrant.has_plugin?("landrush")'
- |
vm.provider "virtualbox" do |v|
v.customize "pre-boot", ["modifyvm", :id, "--hwvirtex", "off"]
end
docker:
containers:
......@@ -58,3 +72,9 @@ docker:
environment:
DEBIAN_FRONTEND: noninteractive
container: docker
- name: deploy-key-wheezy
image: debian
image_version: wheezy
environment:
DEBIAN_FRONTEND: noninteractive
container: docker
---
# tasks file for deploy-key
- name: Assertions
assert:
that:
......
---
- hosts: deploy-key-openbsd
- hosts: deploy-key-openbsd*
gather_facts: false
roles: [adarnimrod.openbsd-bootstrap]
roles: [openbsd-bootstrap]
- hosts: deploy-key-xenial
gather_facts: false
roles: [adarnimrod.debian-bootstrap]
roles: [debian-bootstrap]
- hosts: all
tasks:
pre_tasks:
- name: Create SSH keypair
local_action: command ssh-keygen -t rsa -N '' -f files/id_rsa
run_once: True
......@@ -27,9 +27,6 @@
service:
name: ssh
state: started
- hosts: all
strategy: free
roles:
- role: deploy-key
deploy_key: '{{ lookup("file", "id_rsa") }}'
......
ansible==2.2.0.0
testinfra==1.4.5
molecule==1.16.1
ansible-lint==3.4.7
pre-commit==0.9.4
ansible==2.2.1.0
testinfra==1.5.2
molecule==1.17.3
ansible-lint==3.4.10
pre-commit==0.10.1
piprot==0.9.7
python-vagrant==0.5.14
docker-py==1.10.6
netaddr==0.7.19
passlib==1.7.0
bcrypt==3.1.2
---
- src: adarnimrod.openbsd-bootstrap
name: openbsd-bootstrap
- src: adarnimrod.debian-bootstrap
name: debian-bootstrap
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment