From 1fea37985d2777271e163c743e7364b62ed0e6c0 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Mon, 28 Sep 2015 11:59:28 +0200 Subject: serve static web artifacts from github repo --- global/overlay/etc/puppet/manifests/cosmos-site.pp | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'global/overlay/etc/puppet') 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' { -- cgit v1.1