Skip to content
This repository was archived by the owner on Oct 29, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Vagrant.configure("2") do |config|
config.vm.box_url = "http://files.vagrantup.com/precise64.box"

config.vm.provider "virtualbox" do |v|
v.customize ["modifyvm", :id, "--memory", 1024]
v.customize ["modifyvm", :id, "--memory", 3072]
end

# SSH Agent forwarding
Expand All @@ -13,6 +13,10 @@ Vagrant.configure("2") do |config|
## For masterless, mount your salt file root
config.vm.synced_folder "provision/salt/roots/", "/srv/"

# SSHFS -- reverse mount from within Vagrant box
config.sshfs.paths = { "/var/www/vagrant" => "../dosomething-mount" }
# config.sshfs.username = "alternateuser"

# Bare Apache httpd (http and https)
config.vm.network :forwarded_port, guest: 8888, host: 8888
config.vm.network :forwarded_port, guest: 8889, host: 8889
Expand All @@ -23,7 +27,7 @@ Vagrant.configure("2") do |config|
config.vm.network :forwarded_port, guest: 6081, host: 9999

# Tomcat with Jenkins and Solr
config.vm.network :forwarded_port, guest: 9090, host: 11111
# config.vm.network :forwarded_port, guest: 9090, host: 11111

## Use all the defaults:
config.vm.provision :salt do |salt|
Expand Down
12 changes: 2 additions & 10 deletions provision/salt/roots/salt/apache2/vhost-ssl.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,18 @@
<VirtualHost _default_:8889>
ServerAdmin webmaster@localhost

DocumentRoot /vagrant/html
DocumentRoot /var/www/vagrant/html
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /vagrant/html/>
<Directory /var/www/vagrant/html/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log

# Possible values include: debug, info, notice, warn, error, crit,
Expand Down
4 changes: 2 additions & 2 deletions provision/salt/roots/salt/apache2/vhost.conf
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<VirtualHost *:8888>
ServerAdmin webmaster@localhost

DocumentRoot /vagrant/html
DocumentRoot /var/www/vagrant/html
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /vagrant/html>
<Directory /var/www/vagrant/html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Expand Down
7 changes: 7 additions & 0 deletions provision/salt/roots/salt/dosomething.sls
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,11 @@ ssh-host-access:
- user: vagrant
- group: vagrant

webroot-internal:
cmd.run:
- name: 'tar czf /var/www/vagrant.tgz /vagrant ; cd /var/www ; tar xzf vagrant.tgz ; rm vagrant.tgz'
- unless: test -d /var/www/vagrant
- require:
- pkg: apache2

{% endif %}
4 changes: 2 additions & 2 deletions provision/salt/roots/salt/lamp-drupal.sls
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ apache2-env:
file.managed:
- name: /etc/apache2/envvars
- source: salt://apache2/envvars
- require:
- pkg: apache2

apache2:
pkg:
- installed
- require:
- file: apache2-env
file.managed:
- name: /etc/apache2/ports.conf
- source: salt://apache2/ports.conf
Expand Down
1 change: 0 additions & 1 deletion provision/salt/roots/salt/top.sls
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ base:
- utils
- lamp-drupal
- ssl
- selenium
- install
- composer
- node
Expand Down