Add test coverage with aliases.
This commit is contained in:
36
test/fixtures/deploy_with_aliases.yml
vendored
Normal file
36
test/fixtures/deploy_with_aliases.yml
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
# helper aliases
|
||||
chicago_hosts: &chicago_hosts
|
||||
hosts:
|
||||
- 1.1.1.1
|
||||
- 1.1.1.2
|
||||
tokyo_hosts: &tokyo_hosts
|
||||
hosts:
|
||||
- 1.1.1.3
|
||||
- 1.1.1.4
|
||||
web_common: &web_common
|
||||
env:
|
||||
ROLE: "web"
|
||||
traefik: true
|
||||
|
||||
# actual config
|
||||
service: app
|
||||
image: dhh/app
|
||||
servers:
|
||||
web:
|
||||
<<: *chicago_hosts
|
||||
<<: *web_common
|
||||
web_tokyo:
|
||||
<<: *tokyo_hosts
|
||||
<<: *web_common
|
||||
workers:
|
||||
cmd: bin/jobs
|
||||
<<: *chicago_hosts
|
||||
workers_tokyo:
|
||||
cmd: bin/jobs
|
||||
<<: *tokyo_hosts
|
||||
env:
|
||||
REDIS_URL: redis://x/y
|
||||
registry:
|
||||
server: registry.digitalocean.com
|
||||
username: user
|
||||
password: pw
|
||||
Reference in New Issue
Block a user