Compare commits
1 Commits
staticweb
...
b81372c07a
| Author | SHA1 | Date | |
|---|---|---|---|
|
b81372c07a
|
8
Vagrantfile
vendored
8
Vagrantfile
vendored
@@ -16,13 +16,9 @@ SSH_FORWARD = settings['SSH_FORWARD'] || false
|
|||||||
|
|
||||||
# Default to shell environment variable: PLAYBOOK (priority #1)
|
# Default to shell environment variable: PLAYBOOK (priority #1)
|
||||||
PLAYBOOK=ENV["PLAYBOOK"]
|
PLAYBOOK=ENV["PLAYBOOK"]
|
||||||
if !PLAYBOOK
|
if !PLAYBOOK || PLAYBOOK.empty?
|
||||||
# PLAYBOOK setting in .vagrant.yml (priority #2)
|
# PLAYBOOK setting in .vagrant.yml (priority #2)
|
||||||
PLAYBOOK = settings['PLAYBOOK'] || false
|
PLAYBOOK = settings['PLAYBOOK'] || 'default'
|
||||||
if !PLAYBOOK || PLAYBOOK.empty?
|
|
||||||
puts "[VAGRANTFILE ERROR]: Set PLAYBOOK setting in .vagrant.yml"
|
|
||||||
abort
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
Vagrant.configure("2") do |config|
|
Vagrant.configure("2") do |config|
|
||||||
|
|||||||
4
dev/default.yml
Normal file
4
dev/default.yml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
- name: Install 'default' aka nothing
|
||||||
|
hosts: all
|
||||||
|
become: true
|
||||||
|
tasks: []
|
||||||
@@ -14,7 +14,7 @@ traefik_auth: admin:$apr1$T1l.BCFz$Jyg8msXYEAUi3LLH39I9d1 # admin:admin
|
|||||||
#traefik_acme_email: realemail@example.com # Let's Encrypt settings
|
#traefik_acme_email: realemail@example.com # Let's Encrypt settings
|
||||||
#traefik_production: true
|
#traefik_production: true
|
||||||
|
|
||||||
# staticweb
|
# nginx
|
||||||
nginx_domain: nginx.vm.krislamo.org
|
nginx_domain: nginx.vm.krislamo.org
|
||||||
nginx_name: staticsite
|
nginx_name: staticsite
|
||||||
nginx_repo_url: https://git.krislamo.org/kris/example-website/
|
nginx_repo_url: https://git.krislamo.org/kris/example-website/
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
- name: Install a static web container
|
- name: Install nginx server (docker)
|
||||||
hosts: all
|
hosts: all
|
||||||
become: true
|
become: true
|
||||||
vars_files:
|
vars_files:
|
||||||
- host_vars/staticweb.yml
|
- host_vars/nginx.yml
|
||||||
roles:
|
roles:
|
||||||
- base
|
- base
|
||||||
- docker
|
- docker
|
||||||
- traefik
|
- traefik
|
||||||
- staticweb
|
- nginx
|
||||||
Reference in New Issue
Block a user