test: fix molecule tests
This commit is contained in:
parent
b12b0ba26a
commit
4c73541df7
2 changed files with 24 additions and 12 deletions
|
@ -8,18 +8,20 @@
|
|||
swarm_init: true
|
||||
swarm_networks:
|
||||
proxy:
|
||||
driver: overlay
|
||||
scope: swarm
|
||||
swarm_services:
|
||||
traefik:
|
||||
image: traefik:1.7
|
||||
image: traefik:3.0
|
||||
networks:
|
||||
- proxy
|
||||
args:
|
||||
- '--api'
|
||||
- '--docker'
|
||||
- "--providers.swarm=true"
|
||||
- "--providers.swarm.network=proxy"
|
||||
- "--entrypoints.http.address=:80"
|
||||
publish:
|
||||
- published_port: 80
|
||||
target_port: 80
|
||||
mode: host
|
||||
mounts:
|
||||
- source: /var/run/docker.sock
|
||||
target: /var/run/docker.sock
|
||||
|
@ -28,10 +30,11 @@
|
|||
networks:
|
||||
- proxy
|
||||
labels:
|
||||
traefik.enable: 'true'
|
||||
traefik.backend: whoami
|
||||
traefik.frontend.rule: 'Host:whoami'
|
||||
traefik.port: '8000'
|
||||
traefik.enable: "true"
|
||||
traefik.http.services.whoami.loadbalancer.server.port: "8000"
|
||||
traefik.http.routers.whoami.rule: "Host(`whoami`)"
|
||||
traefik.http.routers.whoami.service: whoami
|
||||
traefik.http.routers.whoami.entrypoints: http
|
||||
|
||||
pre_tasks:
|
||||
- name: Update apt cache
|
||||
|
|
|
@ -11,9 +11,18 @@ platforms:
|
|||
command: /bin/systemd
|
||||
capabilities:
|
||||
- SYS_ADMIN
|
||||
lint: |
|
||||
set -e
|
||||
yamllint .
|
||||
ansible-lint .
|
||||
verifier:
|
||||
name: testinfra
|
||||
scenario:
|
||||
test_sequence:
|
||||
- dependency
|
||||
- cleanup
|
||||
- destroy
|
||||
- syntax
|
||||
- create
|
||||
- prepare
|
||||
- converge
|
||||
- side_effect
|
||||
- verify
|
||||
- cleanup
|
||||
- destroy
|
||||
|
|
Loading…
Reference in a new issue