Rename scenario to extra_opts indicating flexible use
This commit is contained in:
parent
0a8c460122
commit
3237335b6d
11 changed files with 24 additions and 12 deletions
1
molecule/extra_opts/Dockerfile.j2
Symbolic link
1
molecule/extra_opts/Dockerfile.j2
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../generic_files/Dockerfile.j2
|
||||
26
molecule/extra_opts/INSTALL.rst
Normal file
26
molecule/extra_opts/INSTALL.rst
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
*******
|
||||
Docker driver installation guide
|
||||
*******
|
||||
|
||||
Requirements
|
||||
============
|
||||
|
||||
* General molecule dependencies (see https://molecule.readthedocs.io/en/latest/installation.html)
|
||||
* Docker Engine
|
||||
* docker-py
|
||||
* docker
|
||||
|
||||
Install
|
||||
=======
|
||||
|
||||
Ansible < 2.6
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ sudo pip install docker-py
|
||||
|
||||
Ansible >= 2.6
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ sudo pip install docker
|
||||
58
molecule/extra_opts/molecule.yml
Normal file
58
molecule/extra_opts/molecule.yml
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
---
|
||||
driver:
|
||||
name: docker
|
||||
lint:
|
||||
name: yamllint
|
||||
platforms:
|
||||
- name: ${MOLECULE_SCENARIO_NAME}-cds
|
||||
hostname: ${MOLECULE_SCENARIO_NAME}-cds
|
||||
image: debian:stretch
|
||||
networks:
|
||||
- name: ${MOLECULE_SCENARIO_NAME}-borg
|
||||
groups:
|
||||
- extra_opts
|
||||
- name: ${MOLECULE_SCENARIO_NAME}-sds
|
||||
hostname: ${MOLECULE_SCENARIO_NAME}-sds
|
||||
image: debian:stretch
|
||||
networks:
|
||||
- name: ${MOLECULE_SCENARIO_NAME}-borg
|
||||
groups:
|
||||
- borgbackup_servers
|
||||
provisioner:
|
||||
name: ansible
|
||||
inventory:
|
||||
group_vars:
|
||||
all:
|
||||
borgbackup_appendonly: true
|
||||
borgbackup_servers:
|
||||
- fqdn: ${MOLECULE_SCENARIO_NAME}-sds
|
||||
user: borgds
|
||||
type: normal
|
||||
home: /var/backup/
|
||||
pool: repos
|
||||
options: ""
|
||||
host_vars:
|
||||
${MOLECULE_SCENARIO_NAME}-cds:
|
||||
borgbackup_passphrase: soo6Uabiex
|
||||
borgbackup_include:
|
||||
- "/etc"
|
||||
- "/root"
|
||||
- "/var/log"
|
||||
- "/home"
|
||||
- "/var/cache"
|
||||
borgbackup_exclude:
|
||||
- "/var/cache/apt"
|
||||
borgbackup_pre_commands:
|
||||
- "dpkg --get-selections"
|
||||
borgbackup_post_commands:
|
||||
- "apt list"
|
||||
lint:
|
||||
name: ansible-lint
|
||||
scenario:
|
||||
name: extra_opts
|
||||
verifier:
|
||||
name: testinfra
|
||||
options:
|
||||
verbose: true
|
||||
lint:
|
||||
name: flake8
|
||||
1
molecule/extra_opts/playbook.yml
Symbolic link
1
molecule/extra_opts/playbook.yml
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../generic_files/playbook.yml
|
||||
1
molecule/extra_opts/prepare.yml
Symbolic link
1
molecule/extra_opts/prepare.yml
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../generic_files/prepare.yml
|
||||
1
molecule/extra_opts/restore.sh.j2
Symbolic link
1
molecule/extra_opts/restore.sh.j2
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../generic_files/restore.sh.j2
|
||||
1
molecule/extra_opts/side_effect.yml
Symbolic link
1
molecule/extra_opts/side_effect.yml
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../generic_files/side_effect.yml
|
||||
1
molecule/extra_opts/tests
Symbolic link
1
molecule/extra_opts/tests
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../generic_files/tests
|
||||
Loading…
Add table
Add a link
Reference in a new issue