From 4eac089924bcf877f1c97b374384201a25db0cff Mon Sep 17 00:00:00 2001 From: Todd Zullinger Date: Mon, 23 Nov 2009 15:25:41 -0500 Subject: [PATCH] fedora-web: Display hosting sponsor in the sidebar --- modules/fedora-web/manifests/init.pp | 11 ++++++++++- modules/fedora-web/templates/sponsor.conf.erb | 1 + 2 files changed, 11 insertions(+), 1 deletions(-) create mode 100644 modules/fedora-web/templates/sponsor.conf.erb diff --git a/modules/fedora-web/manifests/init.pp b/modules/fedora-web/manifests/init.pp index 9820327..6dd0e47 100644 --- a/modules/fedora-web/manifests/init.pp +++ b/modules/fedora-web/manifests/init.pp @@ -104,7 +104,16 @@ define fedora-web::proxy($website) { notify => Service["httpd"], require => Httpd::Website[$website], } - + + # Sponsors configuration + file { "/etc/httpd/conf.d/$website/sponsor.conf": + owner => "root", + group => "root", + mode => 0644, + content => template('fedora-web/sponsor.conf.erb'), + notify => Service["httpd"], + require => Httpd::Website[$website], + } } define fedora-web::start::proxy($website) { diff --git a/modules/fedora-web/templates/sponsor.conf.erb b/modules/fedora-web/templates/sponsor.conf.erb new file mode 100644 index 0000000..c5d1384 --- /dev/null +++ b/modules/fedora-web/templates/sponsor.conf.erb @@ -0,0 +1 @@ +Alias /static/js/sponsor.js /srv/web/<%= website %>/static/js/sponsors/<%= sponsor %>.js -- 1.6.5.3