Selaa lähdekoodia

correcciones menores

Luciano Andrade 7 vuotta sitten
vanhempi
commit
a3a5593736
2 muutettua tiedostoa jossa 8 lisäystä ja 7 poistoa
  1. 4 6
      tools/playbook.yml
  2. 4 1
      tools/src/Release.php

+ 4 - 6
tools/playbook.yml

@@ -15,12 +15,10 @@
   connection: local
   tags: start_mysql
   tasks:
-    - name: Docker-compse build 
+    - name: Docker build
       command: "docker-compose build"
-    - name: Docker-compse pull
-      command: "docker-compose pull"
     - name: Docker mysql up
-      command: "docker-compose up -d mysql"
+      command: "docker-command pull mysql ; docker-compose up -d mysql"
 
 - name: Configure mysql database. Tag=configure_mysql
   hosts: mysql
@@ -31,7 +29,7 @@
     - name: Wait for docker mysql be ready
       wait_for_connection:
 
-    - name: Wait for mysql db to be ready
+    - name: Wait for mysql be ready
       wait_for:
         host: 127.0.0.1
         port: 3306
@@ -175,7 +173,7 @@
 
     - name: Load redirections
       set_fact:
-        uris: "{{ uris }} --redirect_uri=http://{{ item }}.{{ lookup('env', 'DOMAIN') }}.flowdat.com/login_check"
+        uris: "{{ uris }} --redirect_uri=http://{{ item }}.{{ lookup('env', 'CLIENT') }}.flowdat.com/login_check"
       with_items: "{{ lookup('env', 'MODULES_INSTALL').split(',') }}"
 
     - name: Create oauth client

+ 4 - 1
tools/src/Release.php

@@ -703,7 +703,7 @@ class Release extends Command
 
         $composer
         ->addService($module)
-        ->image("grafana/grafana:4.6.0")
+        ->image("grafana/grafana:3.1.1")
         ->addLinks("mysql")
         ->restart($this->_docker_restart_default)
         ->addEnv_file("running.env")
@@ -774,6 +774,7 @@ class Release extends Command
         ->addLinks("amqp")
         ->addLinks("nginx", $this->getDomain("base"))
         ->addEnv_file("running.env")
+        ->addEnv_file("hosts.env")
         ->addEnviroment("AMQP_KEY", "base")
         ->addVolumes("./base/", "/opt/base");
 
@@ -802,6 +803,7 @@ class Release extends Command
         ->addLinks("amqp")
         ->addLinks("nginx", $this->getDomain("base"))
         ->addEnv_file("running.env")
+        ->addEnv_file("hosts.env")
         ->addEnviroment("AMQP_KEY", "ftth")
         ->addVolumes("./ftth/", "/opt/ftth");
 
@@ -816,6 +818,7 @@ class Release extends Command
         ->addLinks("amqp")
         ->addLinks("nginx", $this->getDomain("base"))
         ->addEnv_file("running.env")
+        ->addEnv_file("hosts.env")
         ->addEnviroment("AMQP_KEY", "stats")
         ->addVolumes("./stats/", "/opt/stats");
     }