Skip to content

pnovotny/selenium-grid-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

Ansible-based automation for Selenium Grid deployment.

This repository provides two roles:

Installation

Create requirements file requirements.yml:

---
- src: https://github.com/pnovotny/selenium-grid-ansible.git
  version: master

Install roles: ansible-galaxy install -r requirements.yml --roles-path <path>

Usage

The following example shows deployment of a:

  • Selenium Hub instance on host hub.example.com
  • 4 Selenium Node instances on host hub.example.com
  • 8 Selenium Node instances on hosts node1.example.com and node2.example.com

Inventory:

[selenium-hub]
hub.example.com

[selenium-nodes]
hub.example.com nodes=4
node1.example.com
node2.example.com

Playbook:

---
- hosts: selenium-hub
  roles:
    - { role: selenium-grid-ansible/selenium-hub }

- hosts: selenium-nodes
  roles:
    - { role: selenium-grid-ansible/selenium-node }

Variable file group_vars/all:

---
# common variables for Hub and Node(s):
config_dir: /etc/selenium-grid
selenium_dir: /opt/selenium-grid
selenium_version: 2.53.1
hub_port: 4444

# Node variables:
# (these can be set specifically for a particular group or host)
nodes: 8
browser_capabilities:
  -
    browser_name: firefox
    browser_version: ""
  -
    browser_name: chrome
    browser_version: ""
firefox_package: firefox
chrome_package: chromium
geckodriver_ver: 0.17.0
chromedriver_ver: 2.30

About

Ansible-based automation for Selenium Grid deployment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published