cbickel commented on a change in pull request #3206: Refactor controller role 
to use variables for hostname and host index
URL: 
https://github.com/apache/incubator-openwhisk/pull/3206#discussion_r165297734
 
 

 ##########
 File path: ansible/roles/controller/tasks/deploy.yml
 ##########
 @@ -48,17 +56,17 @@
 
 - name: prepare controller ports
   set_fact:
-    ports_to_expose: ["{{ controller.basePort + 
groups['controllers'].index(inventory_hostname) }}:8080", "{{ 
controller.akka.cluster.basePort + 
groups['controllers'].index(inventory_hostname) }}:{{ 
controller.akka.cluster.bindPort }}"]
+    ports_to_expose: ["{{ controller.basePort + (controller_index | int) 
}}:8080", "{{ controller.akka.cluster.basePort + (controller_index | int) }}:{{ 
controller.akka.cluster.bindPort }}"]
 
 Review comment:
   Is it possible to do the `int` conversation already on defining the 
variable? Or would this result in issues on gernerating the name-String?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to