Update variables to allow easier overriding of vhosts.

This commit is contained in:
Jeff Geerling 2014-05-05 09:58:15 -05:00
parent d2401eb840
commit 0318fedaf4
5 changed files with 35 additions and 6 deletions

14
defaults/Debian.yml Normal file
View file

@ -0,0 +1,14 @@
---
apache_daemon: apache2
apache_server_root: /etc/apache2
apache_conf_path: /etc/apache2/sites-enabled
apache_packages:
- apache2
- apache2-mpm-prefork
- apache2-utils
- apache2.2-bin
- apache2.2-common
apache_vhosts:
- {servername: "local.dev", documentroot: "/var/www"}
apache_mods_enabled:
- rewrite.load

11
defaults/RedHat.yml Normal file
View file

@ -0,0 +1,11 @@
---
apache_daemon: httpd
apache_server_root: /etc/httpd
apache_conf_path: /etc/httpd/conf.d
apache_packages:
- httpd
- httpd-devel
- mod_ssl
- openssh
apache_vhosts:
- {servername: "local.dev", documentroot: "/var/www/html"}

10
defaults/main.yml Normal file
View file

@ -0,0 +1,10 @@
---
apache_enablerepo: ""
apache_listen_port: 80
apache_create_vhosts: true
apache_vhosts:
# Additional properties: 'serveradmin, extra_parameters'.
- {servername: "local.dev", documentroot: "/var/www/html"}

View file

@ -7,5 +7,3 @@ apache_packages:
- httpd-devel
- mod_ssl
- openssh
apache_vhosts:
- {servername: "local.dev", documentroot: "/var/www/html"}

View file

@ -4,7 +4,3 @@ apache_enablerepo: ""
apache_listen_port: 80
apache_create_vhosts: true
apache_vhosts:
# Additional properties: 'serveradmin, extra_parameters'.
- {servername: "local.dev", documentroot: "/var/www/html"}