|
|
@@ -34,6 +34,23 @@ node precise64 {
|
|
34
|
34
|
source => "/vagrant/sites/sandbox/deploy/apache2/vagrant.conf"
|
|
35
|
35
|
}
|
|
36
|
36
|
|
|
|
37
|
+ # Nginx in front of Apache
|
|
|
38
|
+ class { "nginx": }
|
|
|
39
|
+ nginx::resource::vhost { 'apache_rp':
|
|
|
40
|
+ ensure => present,
|
|
|
41
|
+ listen_port => 9001,
|
|
|
42
|
+ }
|
|
|
43
|
+ nginx::resource::location { 'apache-root':
|
|
|
44
|
+ ensure => present,
|
|
|
45
|
+ vhost => 'apache_rp',
|
|
|
46
|
+ location => '/',
|
|
|
47
|
+ proxy => 'http://localhost',
|
|
|
48
|
+ proxy_set_headers => {
|
|
|
49
|
+ 'REMOTE_ADDR' => '$remote_addr',
|
|
|
50
|
+ 'HTTP_HOST' => '$http_host',
|
|
|
51
|
+ },
|
|
|
52
|
+ }
|
|
|
53
|
+
|
|
37
|
54
|
# Memcached
|
|
38
|
55
|
class {"memcached": max_memory => 64 }
|
|
39
|
56
|
|
|
|
@@ -81,6 +98,10 @@ node precise64 {
|
|
81
|
98
|
venv => $virtualenv,
|
|
82
|
99
|
require => Python::Venv::Isolate[$virtualenv]
|
|
83
|
100
|
}
|
|
|
101
|
+ python::pip::requirements {"/vagrant/requirements_less.txt":
|
|
|
102
|
+ venv => $virtualenv,
|
|
|
103
|
+ require => Python::Venv::Isolate[$virtualenv]
|
|
|
104
|
+ }
|
|
84
|
105
|
exec {"install-oscar":
|
|
85
|
106
|
command => "$virtualenv/bin/python /vagrant/setup.py develop",
|
|
86
|
107
|
require => Python::Venv::Isolate[$virtualenv]
|