Commit d7984abbb4240e9416eeebec01ca2eee5ed7459a

Authored by Alexandre Chapellon
1 parent 2df236d1c5
Exists in master and in 1 other branch rheltarget

some more fixes

yml/roles/selenium/handlers/main.yml
1 1 ---
2   -- name: Restart Selenium Hub
  2 +- name: Restart Selenium hub
3 3 service:
4 4 name: selenium-hub
5   - state: started
  5 + state: restarted
6 6 enabled: yes
7 7  
8 8 - name: Restart Selenium node
9 9 service:
10 10 name: selenium-node
11   - state: started
  11 + state: restarted
12 12 enabled: yes
13 13  
... ...
yml/roles/selenium/templates/sysvinit-hub
... ... @@ -11,11 +11,10 @@ LOG_FILE="$SELENIUM_DIR/selenium-hub.log"
11 11 SELENIUM_PORT={{ selenium_hub_portnumber }}
12 12  
13 13 MAX_MEMORY="-Xmx1G"
14   -STACK_SIZE="-Xss1024k"
15 14  
16 15 DAEMON_OPTS="$MAX_MEMORY -jar $JAR_FILE -log $LOG_FILE -role hub -newSessionWaitTimeout 5000 -timeout 300 -port $SELENIUM_PORT"
17 16  
18   -NAME=selenium
  17 +NAME=selenium-hub
19 18  
20 19 case "$1" in
21 20 start)
... ...
yml/roles/selenium/templates/sysvinit-node
... ... @@ -13,12 +13,11 @@ SELENIUM_PORT={{ selenium_hub_portnumber }}
13 13 XVFB_RUN=/usr/bin/xvfb-run
14 14  
15 15 MAX_MEMORY="-Xmx1G"
16   -STACK_SIZE="-Xss1024k"
17 16  
18 17 DAEMON_OPTS="$MAX_MEMORY -jar $JAR_FILE -log $LOG_FILE -role node -hub http://${SELENIUM_HUB}:${SELENIUM_PORT}/grid/register -maxSession 500 -browser browserName=firefox,platform=ANY,maxInstances={{ ansible_processor_cores * 2 }} -port 5559 -avoidProxy"
19   -XSERVER_ARGS="{{ xserver_res }}"
  18 +XSERVER_ARGS="-screen 0 {{ xserver_res }}"
20 19  
21   -NAME=selenium
  20 +NAME=selenium-node
22 21  
23 22 case "$1" in
24 23 start)
... ...