Skip to content

Commit

Permalink
Test both location and vhost with all supported options.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdebock committed Dec 31, 2018
1 parent 68f13e3 commit 5e3c9db
Show file tree
Hide file tree
Showing 21 changed files with 293 additions and 178 deletions.
34 changes: 22 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,22 @@ This example is taken from `molecule/default/playbook.yml`:
become: yes

vars:
httpd_applications:
- name: myapplication
location: /myapplication
httpd_locations:
- name: mylocation1
location: /mylocation1
backend_url: http://localhost:8080/myapplication
- name: myotherapp
location: myotherapp
backend_url: http://localhost:8080/myotherapp
- name: fedoraproxy
location: fedoraproxy
backend_url: http://dl.fedoraproject.org/pub/fedora/linux/
httpd_vhosts:
- name: myvhost1
servername: www1.example.com
documentroot: /var/www/html/www1.example.com
- name: myvhost2
servername: www2.example.com
documentroot: /var/www/html/www2.example.com
backend_url: http://www.example.com/
- name: myvhost3
servername: www3.example.com
documentroot: /var/www/html/www3.example.com
backend_url: http://www.example.com/
remote: http://localhost:3128/

roles:
Expand Down Expand Up @@ -137,9 +143,13 @@ To test on Amazon EC2, configure [~/.aws/credentials](https://docs.aws.amazon.co
There are many specific scenarios available, please have a look in the `molecule/` directory.

Run the [ansible-galaxy](https://github.com/ansible/galaxy-lint-rules) and [my](https://github.com/robertdebock/ansible-lint-rules) lint rules if you want your change to be merges:
```
ansible-lint -r /path/to/galaxy-lint-rules/rules .
ansible-lint -r /path/to/ansible-lint-rules/rules .

```shell
git clone https://github.com/ansible/ansible-lint.git /tmp/ansible-lint
ansible-lint -r /tmp/ansible-lint/lib/ansiblelint/rules .
git clone https://github.com/robertdebock/ansible-lint /tmp/my-ansible-lint
ansible-lint -r /tmp/my-ansible-lint/rules .
```

License
Expand Down
24 changes: 15 additions & 9 deletions molecule/alpine-edge/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,22 @@
become: yes

vars:
httpd_applications:
- name: myapplication
location: /myapplication
httpd_locations:
- name: mylocation1
location: /mylocation1
backend_url: http://localhost:8080/myapplication
- name: myotherapp
location: myotherapp
backend_url: http://localhost:8080/myotherapp
- name: fedoraproxy
location: fedoraproxy
backend_url: http://dl.fedoraproject.org/pub/fedora/linux/
httpd_vhosts:
- name: myvhost1
servername: www1.example.com
documentroot: /var/www/html/www1.example.com
- name: myvhost2
servername: www2.example.com
documentroot: /var/www/html/www2.example.com
backend_url: http://www.example.com/
- name: myvhost3
servername: www3.example.com
documentroot: /var/www/html/www3.example.com
backend_url: http://www.example.com/
remote: http://localhost:3128/

roles:
Expand Down
24 changes: 15 additions & 9 deletions molecule/alpine-latest/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,22 @@
become: yes

vars:
httpd_applications:
- name: myapplication
location: /myapplication
httpd_locations:
- name: mylocation1
location: /mylocation1
backend_url: http://localhost:8080/myapplication
- name: myotherapp
location: myotherapp
backend_url: http://localhost:8080/myotherapp
- name: fedoraproxy
location: fedoraproxy
backend_url: http://dl.fedoraproject.org/pub/fedora/linux/
httpd_vhosts:
- name: myvhost1
servername: www1.example.com
documentroot: /var/www/html/www1.example.com
- name: myvhost2
servername: www2.example.com
documentroot: /var/www/html/www2.example.com
backend_url: http://www.example.com/
- name: myvhost3
servername: www3.example.com
documentroot: /var/www/html/www3.example.com
backend_url: http://www.example.com/
remote: http://localhost:3128/

roles:
Expand Down
24 changes: 15 additions & 9 deletions molecule/archlinux/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,22 @@
become: yes

vars:
httpd_applications:
- name: myapplication
location: /myapplication
httpd_locations:
- name: mylocation1
location: /mylocation1
backend_url: http://localhost:8080/myapplication
- name: myotherapp
location: myotherapp
backend_url: http://localhost:8080/myotherapp
- name: fedoraproxy
location: fedoraproxy
backend_url: http://dl.fedoraproject.org/pub/fedora/linux/
httpd_vhosts:
- name: myvhost1
servername: www1.example.com
documentroot: /var/www/html/www1.example.com
- name: myvhost2
servername: www2.example.com
documentroot: /var/www/html/www2.example.com
backend_url: http://www.example.com/
- name: myvhost3
servername: www3.example.com
documentroot: /var/www/html/www3.example.com
backend_url: http://www.example.com/
remote: http://localhost:3128/

roles:
Expand Down
24 changes: 15 additions & 9 deletions molecule/centos-6/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,22 @@
become: yes

vars:
httpd_applications:
- name: myapplication
location: /myapplication
httpd_locations:
- name: mylocation1
location: /mylocation1
backend_url: http://localhost:8080/myapplication
- name: myotherapp
location: myotherapp
backend_url: http://localhost:8080/myotherapp
- name: fedoraproxy
location: fedoraproxy
backend_url: http://dl.fedoraproject.org/pub/fedora/linux/
httpd_vhosts:
- name: myvhost1
servername: www1.example.com
documentroot: /var/www/html/www1.example.com
- name: myvhost2
servername: www2.example.com
documentroot: /var/www/html/www2.example.com
backend_url: http://www.example.com/
- name: myvhost3
servername: www3.example.com
documentroot: /var/www/html/www3.example.com
backend_url: http://www.example.com/
remote: http://localhost:3128/

roles:
Expand Down
24 changes: 15 additions & 9 deletions molecule/centos-latest/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,22 @@
become: yes

vars:
httpd_applications:
- name: myapplication
location: /myapplication
httpd_locations:
- name: mylocation1
location: /mylocation1
backend_url: http://localhost:8080/myapplication
- name: myotherapp
location: myotherapp
backend_url: http://localhost:8080/myotherapp
- name: fedoraproxy
location: fedoraproxy
backend_url: http://dl.fedoraproject.org/pub/fedora/linux/
httpd_vhosts:
- name: myvhost1
servername: www1.example.com
documentroot: /var/www/html/www1.example.com
- name: myvhost2
servername: www2.example.com
documentroot: /var/www/html/www2.example.com
backend_url: http://www.example.com/
- name: myvhost3
servername: www3.example.com
documentroot: /var/www/html/www3.example.com
backend_url: http://www.example.com/
remote: http://localhost:3128/

roles:
Expand Down
24 changes: 15 additions & 9 deletions molecule/debian-latest/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,22 @@
become: yes

vars:
httpd_applications:
- name: myapplication
location: /myapplication
httpd_locations:
- name: mylocation1
location: /mylocation1
backend_url: http://localhost:8080/myapplication
- name: myotherapp
location: myotherapp
backend_url: http://localhost:8080/myotherapp
- name: fedoraproxy
location: fedoraproxy
backend_url: http://dl.fedoraproject.org/pub/fedora/linux/
httpd_vhosts:
- name: myvhost1
servername: www1.example.com
documentroot: /var/www/html/www1.example.com
- name: myvhost2
servername: www2.example.com
documentroot: /var/www/html/www2.example.com
backend_url: http://www.example.com/
- name: myvhost3
servername: www3.example.com
documentroot: /var/www/html/www3.example.com
backend_url: http://www.example.com/
remote: http://localhost:3128/

roles:
Expand Down
24 changes: 15 additions & 9 deletions molecule/debian-stable/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,22 @@
become: yes

vars:
httpd_applications:
- name: myapplication
location: /myapplication
httpd_locations:
- name: mylocation1
location: /mylocation1
backend_url: http://localhost:8080/myapplication
- name: myotherapp
location: myotherapp
backend_url: http://localhost:8080/myotherapp
- name: fedoraproxy
location: fedoraproxy
backend_url: http://dl.fedoraproject.org/pub/fedora/linux/
httpd_vhosts:
- name: myvhost1
servername: www1.example.com
documentroot: /var/www/html/www1.example.com
- name: myvhost2
servername: www2.example.com
documentroot: /var/www/html/www2.example.com
backend_url: http://www.example.com/
- name: myvhost3
servername: www3.example.com
documentroot: /var/www/html/www3.example.com
backend_url: http://www.example.com/
remote: http://localhost:3128/

roles:
Expand Down
24 changes: 15 additions & 9 deletions molecule/debian-unstable/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,22 @@
become: yes

vars:
httpd_applications:
- name: myapplication
location: /myapplication
httpd_locations:
- name: mylocation1
location: /mylocation1
backend_url: http://localhost:8080/myapplication
- name: myotherapp
location: myotherapp
backend_url: http://localhost:8080/myotherapp
- name: fedoraproxy
location: fedoraproxy
backend_url: http://dl.fedoraproject.org/pub/fedora/linux/
httpd_vhosts:
- name: myvhost1
servername: www1.example.com
documentroot: /var/www/html/www1.example.com
- name: myvhost2
servername: www2.example.com
documentroot: /var/www/html/www2.example.com
backend_url: http://www.example.com/
- name: myvhost3
servername: www3.example.com
documentroot: /var/www/html/www3.example.com
backend_url: http://www.example.com/
remote: http://localhost:3128/

roles:
Expand Down
24 changes: 15 additions & 9 deletions molecule/default/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,22 @@
become: yes

vars:
httpd_applications:
- name: myapplication
location: /myapplication
httpd_locations:
- name: mylocation1
location: /mylocation1
backend_url: http://localhost:8080/myapplication
- name: myotherapp
location: myotherapp
backend_url: http://localhost:8080/myotherapp
- name: fedoraproxy
location: fedoraproxy
backend_url: http://dl.fedoraproject.org/pub/fedora/linux/
httpd_vhosts:
- name: myvhost1
servername: www1.example.com
documentroot: /var/www/html/www1.example.com
- name: myvhost2
servername: www2.example.com
documentroot: /var/www/html/www2.example.com
backend_url: http://www.example.com/
- name: myvhost3
servername: www3.example.com
documentroot: /var/www/html/www3.example.com
backend_url: http://www.example.com/
remote: http://localhost:3128/

roles:
Expand Down
24 changes: 15 additions & 9 deletions molecule/ec2/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,22 @@
become: yes

vars:
httpd_applications:
- name: myapplication
location: /myapplication
httpd_locations:
- name: mylocation1
location: /mylocation1
backend_url: http://localhost:8080/myapplication
- name: myotherapp
location: myotherapp
backend_url: http://localhost:8080/myotherapp
- name: fedoraproxy
location: fedoraproxy
backend_url: http://dl.fedoraproject.org/pub/fedora/linux/
httpd_vhosts:
- name: myvhost1
servername: www1.example.com
documentroot: /var/www/html/www1.example.com
- name: myvhost2
servername: www2.example.com
documentroot: /var/www/html/www2.example.com
backend_url: http://www.example.com/
- name: myvhost3
servername: www3.example.com
documentroot: /var/www/html/www3.example.com
backend_url: http://www.example.com/
remote: http://localhost:3128/

roles:
Expand Down
Loading

0 comments on commit 5e3c9db

Please sign in to comment.