Add translations to start.fp.o

Sijis Aviles sijis.aviles at gmail.com
Thu Nov 26 05:59:37 UTC 2009


I'm setting up translations for start.fp.o website
(https://fedorahosted.org/fedora-infrastructure/ticket/537).

I've already have start.fp.o on the fedora-web repo configured and
working for using genshi so that translations can be setup. Before i
commit those changes I want to make sure I have puppet setup
accordingly for the new setup. This is what i have setup on puppet:

---
diff --git a/modules/fedora-web/files/syncStatic.sh
b/modules/fedora-web/files/syncStatic.sh
index 17a773d..1ddc357 100755
--- a/modules/fedora-web/files/syncStatic.sh
+++ b/modules/fedora-web/files/syncStatic.sh
@@ -52,8 +52,10 @@ fi
 /bin/cp -ad out/* /var/lib/puppet/application/talk.fedoraproject.org/
 cd ..

+cd start.fedoraproject.org
+/bin/rm -rf /var/lib/puppet/application/start.fedoraproject.org/*
+make > /dev/null 2>&1
 if [ ! -f /var/lib/puppet/application/start.fedoraproject.org ]; then
    mkdir -p /var/lib/puppet/application/start.fedoraproject.org
 fi
-/bin/cp -ad start.fedoraproject.org/* \
-    /var/lib/puppet/application/start.fedoraproject.org/
+/bin/cp -ad out/* /var/lib/puppet/application/start.fedoraproject.org/
diff --git a/modules/fedora-web/manifests/init.pp
b/modules/fedora-web/manifests/init.pp
index 6dd0e47..bc3ebae 100644
--- a/modules/fedora-web/manifests/init.pp
+++ b/modules/fedora-web/manifests/init.pp
@@ -133,6 +133,16 @@ define fedora-web::start::proxy($website) {
         notify  => Service["httpd"],
         require => Httpd::Website[$website],
     }
+
+    file { "/etc/httpd/conf.d/$website/languages.conf":
+        owner   => "root",
+        group   => "root",
+        mode    => 0644,
+        source  => "puppet:///fedora-web/start-languages.conf",
+        notify  => Service["httpd"],
+        require => Httpd::Website[$website],
+    }
+
 }

 define fedora-web::talk::proxy($website) {
---

I've also copied start.fedoraproject.org/httpd/conf/languages.conf.in
into the modules/fedora-web/files/ directory and change the
DOCUMENTROOT path

Does all this look correct or am i missing something?

Thanks,

Sijis




More information about the websites mailing list