Re: Add translations to start.fp.o

2009-12-05 Thread Ricky Zhou
On 2009-11-25 11:59:37 PM, Sijis Aviles wrote:
 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:
Hey, sorry for the slow response.  The changes look fine to me, and we 
can test them out on staging first if we want to be sure.  I'll probably 
be pretty swamped for the next 1.5 weeks of so, but can we talk sometime 
after then to get this all setup?

Thanks,
Ricky


pgpkamRaVtzBy.pgp
Description: PGP signature
-- 
Fedora-websites-list mailing list
Fedora-websites-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-websites-list


Re: Add translations to start.fp.o

2009-12-05 Thread Sijis Aviles
On Sat, Dec 5, 2009 at 9:21 PM, Ricky Zhou ri...@fedoraproject.org wrote:
 On 2009-11-25 11:59:37 PM, Sijis Aviles wrote:
 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:
 Hey, sorry for the slow response.  The changes look fine to me, and we
 can test them out on staging first if we want to be sure.  I'll probably
 be pretty swamped for the next 1.5 weeks of so, but can we talk sometime
 after then to get this all setup?

 Thanks,
 Ricky


Yeah, we can go over this after you are done. That's fine by me.

Sijis

-- 
Fedora-websites-list mailing list
Fedora-websites-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-websites-list


Add translations to start.fp.o

2009-11-26 Thread Sijis Aviles
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 21
 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

-- 
Fedora-websites-list mailing list
Fedora-websites-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-websites-list