<div class="socmaildefaultfont" dir="ltr" style="font-family:Arial;font-size:10.5pt" ><div dir="ltr" > </div>
<div dir="ltr" >Thank you for the detail guidance, Elizabeth.</div>
<div dir="ltr" >We have had the first version of puppet module in github[1].</div>
<div dir="ltr" >We hope to move it to openstack infra.</div>
<div dir="ltr" > </div>
<div dir="ltr" >@<span style="font-size: 10.5pt;" >Emilien, can I get your support to </span><a href="https://review.openstack.org/#/c/274090/" >https://review.openstack.org/#/c/274090/</a> ?<br>The patch is to create the puppet module repository under openstack-infra.</div>
<div dir="ltr" >Thank you.</div>
<div dir="ltr" > </div>
<div dir="ltr" ><div>Best regards<br>Ying Chun Guo (Daisy)</div>
<div> </div>
<div>[1] <a href="https://github.com/eumel8/translation_checksite" >https://github.com/eumel8/translation_checksite</a></div>
<div> </div>
<div> </div>
<blockquote data-history-content-modified="1" style="border-left:solid #aaaaaa 2px; margin-left:5px; padding-left:5px; direction:ltr; margin-right:0px" >----- Original message -----<br>From: "Elizabeth K. Joseph" <lyz@princessleia.com><br>To: Ying Chun Guo/China/IBM@IBMCN<br>Cc: OpenStack Infra <openstack-infra@lists.openstack.org><br>Subject: Re: [OpenStack-Infra] Translation check website<br>Date: Tue, Nov 24, 2015 4:02 AM<br> 
<div><font face="Default Monospace,Courier New,Courier,monospace" size="2" >On Thu, Nov 19, 2015 at 12:22 AM, Ying Chun Guo <guoyingc@cn.ibm.com> wrote:<br>> Hello, openstack-infra team<br>><br>> I'm going to start to work of translation check website.<br>> The spec is<br>> <a href="http://git.openstack.org/cgit/openstack-infra/infra-specs/tree/specs/translation_check_site.rst" target="_blank" >http://git.openstack.org/cgit/openstack-infra/infra-specs/tree/specs/translation_check_site.rst</a><br>><br>> Akihiro MOTOKI has created some scripts/configuration files to set up a<br>> personal check website used by Japanese team.<br>> I think I could refer to his work, change the scripts/config as needed, and<br>> set up the check website on top of Openstack infra.<br>> I have a few questions about how to set up these scripts/config.<br>> Please help to guide me to finish this work.<br>><br>> 1. Which repo and which folder should I add those scripts/config files ?<br>><br>> The scripts are in <a href="https://github.com/amotoki/horizon-i18n-tools" target="_blank" >https://github.com/amotoki/horizon-i18n-tools</a>.<br>> These scripts are used to pull translations, and change the language drop<br>> down list of Horizon.<br><br>I'll bring this up at the -infra meeting on Tuesday so others can look<br>at this thread and chime in, but we have a couple options here.<br><br>These scripts can either be put in your new i18n repository,<br>particularly if they'll be broadly useful to other people:<br><br><a href="http://git.openstack.org/cgit/openstack/i18n/" target="_blank" >http://git.openstack.org/cgit/openstack/i18n/</a><br><br>Or they can be included in the puppet-translations_checksite project<br>that we create (more below).<br><br>> The config files are in <a href="https://github.com/amotoki/ansible-i18n-devstack/" target="_blank" >https://github.com/amotoki/ansible-i18n-devstack/</a><br>> They are Ansible jobs to pull devstack, populates local.conf, pulls<br>> horizon-i18n-tools and setup a cron to retrieve the latest translation.<br>><br>> I think I need to change the codes as needed, and then upload them to<br>> somewhere.<br>> Does openstack infra use Ansible ?<br><br>Not for service deployment, we'll need to do this in Puppet.<br><br>You can use both Akihiro's instructions and also look at how we deploy<br>devstack ourselves using devstack-gate<br><a href="https://git.openstack.org/cgit/openstack-infra/devstack-gate/tree/" target="_blank" >https://git.openstack.org/cgit/openstack-infra/devstack-gate/tree/</a> in<br>order to come up with a puppet module that runs all the commands we<br>want.<br><br>> Where to store them ?<br><br>We'll want to create an infra puppet module specifically for this<br>project. You can look at the puppet-infra-cookiecutter module as an<br>example: <a href="https://git.openstack.org/cgit/openstack-infra/puppet-infra-cookiecutter/tree/" target="_blank" >https://git.openstack.org/cgit/openstack-infra/puppet-infra-cookiecutter/tree/</a><br><br>> 2. When pulling the latest translations, there are two choices.<br>> One is to pull from Horizon repo, the other is to pull from Zanata.<br>> Which one do you suggest ? Lyz may help to answer this question.<br>> If pulling from Zanata, could I get a sample of script to install Zanata<br>> client ?<br><br>In order for this check site to be as useful as possible, we'll want<br>to pull them from Zanata just like Akihiro used to do with Transifex<br>on his instance.<br><br>Documentation for the zanata-cli can be found here:<br><a href="http://docs.zanata.org/projects/zanata-client/en/latest/" target="_blank" >http://docs.zanata.org/projects/zanata-client/en/latest/</a><br><br>In the puppet manifest you'll want to make sure you install the zanata<br>client, you can see a Puppet example of including the client on a<br>system here: <a href="http://git.openstack.org/cgit/openstack-infra/system-config/tree/modules/openstack_project/manifests/proposal_slave.pp" target="_blank" >http://git.openstack.org/cgit/openstack-infra/system-config/tree/modules/openstack_project/manifests/proposal_slave.pp</a><br><br>Some of the translations scripts we've written can be found in<br>project-config jenkins scripts (see ones that include "translation" in<br>the script name):<br><a href="https://git.openstack.org/cgit/openstack-infra/project-config/tree/jenkins/scripts" target="_blank" >https://git.openstack.org/cgit/openstack-infra/project-config/tree/jenkins/scripts</a><br><br>> 3. How to get a machine to set up the website ?<br><br>Once the puppet module is complete, you'll contact one of us on the<br>infra team (probably me) and I'll launch the server.<br><br>A couple notes:<br><br>1. We'll want to refresh this instance regularly (weekly?), so you'll<br>want a cron job to run unstack.sh weekly or so and then recreate the<br>devstack instance. We'll also want to keep an eye on how this goes,<br>since unstack.sh is not a perfect script and we may need to recreate<br>the instance from scratch now and then.<br><br>2. We also want to pull the translations regularly (daily?), so you'll<br>want a cron job to run the zanata-cli script for the translations in<br>Horizon<br><br>> 4. How to get a domain name ? for example: translation-test.openstack.org ?<br><br>This will be created when I bring up the server in step 3. We don't<br>have a name for it yet, but should probably update the spec when we<br>decide upon one.<br><br>--<br>Elizabeth Krumbach Joseph || Lyz || pleia2</font><br> </div></blockquote></div></div><BR>