summaryrefslogtreecommitdiff
path: root/global/overlay/etc/puppet
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2015-09-28 11:59:28 +0200
committerLeif Johansson <leifj@sunet.se>2015-09-28 11:59:28 +0200
commit1fea37985d2777271e163c743e7364b62ed0e6c0 (patch)
treec2e6e6fa49b940345ba30da814298d4c45e6a392 /global/overlay/etc/puppet
parent07e25e929adbcc7a35914f241c2231bf826ea69f (diff)
serve static web artifacts from github repo
Diffstat (limited to 'global/overlay/etc/puppet')
-rw-r--r--global/overlay/etc/puppet/manifests/cosmos-site.pp22
1 files changed, 21 insertions, 1 deletions
diff --git a/global/overlay/etc/puppet/manifests/cosmos-site.pp b/global/overlay/etc/puppet/manifests/cosmos-site.pp
index ccf1bd9..aaa8bb4 100644
--- a/global/overlay/etc/puppet/manifests/cosmos-site.pp
+++ b/global/overlay/etc/puppet/manifests/cosmos-site.pp
@@ -1,4 +1,4 @@
-# This manifest is managed using cosmos
+ This manifest is managed using cosmos
Exec {
path => "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
@@ -928,6 +928,16 @@ node 'web-a1.sunet.se' {
volumes => ['/data/kalturabilling/kalturausers.csv:/kalturausers.csv'],
env => ['KALTURA_CUSTOMERS=/kalturausers.csv','SCRIPT_NAME=/kalturabilling']
}
+ vcsrepo { '/data/static_sunet_se':
+ ensure => present,
+ provider => git,
+ source => 'git://github.com/SUNET/static_sunet_se.git'
+ } ->
+ sunet::docker_run {'static_sunet_se':
+ image => 'docker.sunet.se/static-cors',
+ ports => ['8002:80'],
+ volumes => ['/data/static_sunet_se:/usr/local/apache2/htdocs']
+ }
}
node 'web-a2.sunet.se' {
@@ -937,6 +947,16 @@ node 'web-a2.sunet.se' {
sp_hostname => 'www.sunet.se',
mysql_user => 'wordpress'
}
+ vcsrepo { '/data/static_sunet_se':
+ ensure => present,
+ provider => git,
+ source => 'git://github.com/SUNET/static_sunet_se.git'
+ } ->
+ sunet::docker_run {'static_sunet_se':
+ image => 'docker.sunet.se/static-cors',
+ ports => ['8002:80'],
+ volumes => ['/data/static_sunet_se:/usr/local/apache2/htdocs']
+ }
}
node 'ca.sunet.se' {