summaryrefslogtreecommitdiff
path: root/puppet/modules/site_webapp
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2013-05-21 17:42:40 -0400
committerMicah Anderson <micah@riseup.net>2013-05-22 12:38:04 -0400
commit264fa32a719d77b15e623cc3fc4574fd04837716 (patch)
treeae991fc93c546a35623097019113dd527a7fb7a1 /puppet/modules/site_webapp
parent0f6d2ebd6467d1c793d1907d677ca374a1efe477 (diff)
change paths for leap webapp to be under /srv/leap/webapp from /srv/leap-webapp
Diffstat (limited to 'puppet/modules/site_webapp')
-rw-r--r--puppet/modules/site_webapp/files/migrate_design_documents2
-rw-r--r--puppet/modules/site_webapp/manifests/couchdb.pp8
-rw-r--r--puppet/modules/site_webapp/manifests/init.pp36
3 files changed, 23 insertions, 23 deletions
diff --git a/puppet/modules/site_webapp/files/migrate_design_documents b/puppet/modules/site_webapp/files/migrate_design_documents
index 88eb2e25..6e24aa5b 100644
--- a/puppet/modules/site_webapp/files/migrate_design_documents
+++ b/puppet/modules/site_webapp/files/migrate_design_documents
@@ -1,6 +1,6 @@
#!/bin/sh
-cd /srv/leap-webapp
+cd /srv/leap/webapp
# use admin credentials
cp config/couchdb.yml.admin config/couchdb.yml
diff --git a/puppet/modules/site_webapp/manifests/couchdb.pp b/puppet/modules/site_webapp/manifests/couchdb.pp
index 1dd346fd..7a3839c8 100644
--- a/puppet/modules/site_webapp/manifests/couchdb.pp
+++ b/puppet/modules/site_webapp/manifests/couchdb.pp
@@ -25,19 +25,19 @@ class site_webapp::couchdb {
$key_path = "${x509::variables::keys}/${cert_name}.key"
file {
- '/srv/leap-webapp/config/couchdb.yml.admin':
+ '/srv/leap/webapp/config/couchdb.yml.admin':
content => template('site_webapp/couchdb.yml.admin.erb'),
owner => leap-webapp,
group => leap-webapp,
mode => '0600';
- '/srv/leap-webapp/config/couchdb.yml.webapp':
+ '/srv/leap/webapp/config/couchdb.yml.webapp':
content => template('site_webapp/couchdb.yml.erb'),
owner => leap-webapp,
group => leap-webapp,
mode => '0600';
- '/srv/leap-webapp/logs/production.log':
+ '/srv/leap/webapp/logs/production.log':
owner => leap-webapp,
group => leap-webapp,
mode => '0666';
@@ -58,7 +58,7 @@ class site_webapp::couchdb {
}
exec { 'migrate_design_documents':
- cwd => '/srv/leap-webapp',
+ cwd => '/srv/leap/webapp',
command => '/usr/local/sbin/migrate_design_documents',
require => Exec['bundler_update'],
notify => Service['apache'];
diff --git a/puppet/modules/site_webapp/manifests/init.pp b/puppet/modules/site_webapp/manifests/init.pp
index 5c084a0c..f7a4b598 100644
--- a/puppet/modules/site_webapp/manifests/init.pp
+++ b/puppet/modules/site_webapp/manifests/init.pp
@@ -33,18 +33,18 @@ class site_webapp {
allowdupe => false,
gid => 'leap-webapp',
groups => 'ssl-cert',
- home => '/srv/leap-webapp',
+ home => '/srv/leap/webapp',
require => [ Group['leap-webapp'] ];
}
- file { '/srv/leap-webapp':
+ file { '/srv/leap/webapp':
ensure => directory,
owner => 'leap-webapp',
group => 'leap-webapp',
require => User['leap-webapp'];
}
- vcsrepo { '/srv/leap-webapp':
+ vcsrepo { '/srv/leap/webapp':
ensure => present,
revision => 'origin/master',
provider => git,
@@ -56,17 +56,17 @@ class site_webapp {
}
exec { 'bundler_update':
- cwd => '/srv/leap-webapp',
+ cwd => '/srv/leap/webapp',
command => '/bin/bash -c "/usr/bin/bundle check || /usr/bin/bundle install --path vendor/bundle"',
unless => '/usr/bin/bundle check',
user => 'leap-webapp',
timeout => 600,
- require => [ Class['bundler::install'], Vcsrepo['/srv/leap-webapp'] ],
+ require => [ Class['bundler::install'], Vcsrepo['/srv/leap/webapp'] ],
notify => Service['apache'];
}
exec { 'compile_assets':
- cwd => '/srv/leap-webapp',
+ cwd => '/srv/leap/webapp',
command => '/bin/bash -c "/usr/bin/bundle exec rake assets:precompile"',
user => 'leap-webapp',
require => Exec['bundler_update'],
@@ -74,55 +74,55 @@ class site_webapp {
}
file {
- '/srv/leap-webapp/public/provider.json':
+ '/srv/leap/webapp/public/provider.json':
content => $provider,
owner => leap-webapp, group => leap-webapp, mode => '0644';
- '/srv/leap-webapp/public/ca.crt':
+ '/srv/leap/webapp/public/ca.crt':
ensure => link,
target => '/usr/local/share/ca-certificates/leap_api.crt';
- "/srv/leap-webapp/public/${api_version}":
+ "/srv/leap/webapp/public/${api_version}":
ensure => directory,
owner => leap-webapp, group => leap-webapp, mode => '0755';
- "/srv/leap-webapp/public/${api_version}/config/":
+ "/srv/leap/webapp/public/${api_version}/config/":
ensure => directory,
owner => leap-webapp, group => leap-webapp, mode => '0755';
- "/srv/leap-webapp/public/${api_version}/config/eip-service.json":
+ "/srv/leap/webapp/public/${api_version}/config/eip-service.json":
content => $eip_service,
owner => leap-webapp, group => leap-webapp, mode => '0644';
- "/srv/leap-webapp/public/${api_version}/config/soledad-service.json":
+ "/srv/leap/webapp/public/${api_version}/config/soledad-service.json":
content => $soledad_service,
owner => leap-webapp, group => leap-webapp, mode => '0644';
- "/srv/leap-webapp/public/${api_version}/config/smtp-service.json":
+ "/srv/leap/webapp/public/${api_version}/config/smtp-service.json":
content => $smtp_service,
owner => leap-webapp, group => leap-webapp, mode => '0644';
}
try::file {
- '/srv/leap-webapp/public/favicon.ico':
+ '/srv/leap/webapp/public/favicon.ico':
ensure => 'link',
target => $webapp['favicon'];
- '/srv/leap-webapp/app/assets/stylesheets/tail.scss':
+ '/srv/leap/webapp/app/assets/stylesheets/tail.scss':
ensure => 'link',
target => $webapp['tail_scss'];
- '/srv/leap-webapp/app/assets/stylesheets/head.scss':
+ '/srv/leap/webapp/app/assets/stylesheets/head.scss':
ensure => 'link',
target => $webapp['head_scss'];
- '/srv/leap-webapp/public/img':
+ '/srv/leap/webapp/public/img':
ensure => 'link',
target => $webapp['img_dir'];
}
file {
- '/srv/leap-webapp/config/config.yml':
+ '/srv/leap/webapp/config/config.yml':
content => template('site_webapp/config.yml.erb'),
owner => leap-webapp,
group => leap-webapp,