vv-p.selenoid-systemd

Selenoid with Systemd and Ansible

License Build Status

Before You Begin

Selenoid does not automatically download Docker images. This playbook is designed to do that. You'll need to install the docker-py python package before you run the playbook, as I cannot assume how you're managing your Python packages. For more details on managing Docker images, check out the docker_image ansible module documentation.

How to Install It?

You can install this role using ansible-galaxy:

ansible-galaxy install -c vv-p.selenoid-systemd -p ./

Alternatively, you can download it via git:

git clone https://github.com/vv-p/selenoid-systemd.git

How to Use It?

Create your own playbook file, check the environment variables in defaults/main.yml, and run the following commands:

cat > selenoid.yml << EOF
---
- hosts: selenoid

  roles:
    - selenoid-systemd
EOF
ansible-playbook -b -i hosts selenoid.yml

Variables

Default variable values are stored in the defaults/main.yml file:

selenoid_ui: false
selenoid_vnc: false
selenoid_shmSize: 268435456
selenoid_tmpSize: 512m
selenoid_varSize: 128m
selenoid_timezone: "Europe/Moscow"
selenoid_port: 4444
selenoid_ui_port: 8080
selenoid_browsers:
  - name: "chrome"
    default: "66.0"
    versions:
      - "66.0"
      - "65.0"
  - name: "firefox"
    default: "59.0"
    versions:
      - "59.0"
      - "58.0"
  - name: "opera"
    default: "52.0"
    versions:
      - "52.0"
      - "51.0"

For more information, check the official documentation here: Selenoid Documentation.

You can override these values in your playbook file like this:

- hosts: all
  vars:
    selenoid_ui: true
    selenoid_vnc: true
      - name: "chrome"
        default: "66.0"
        versions:
          - "66.0"
          - "65.0"

  roles:
    - selenoid-systemd

Or you can pass them as command-line arguments:

ansible-playbook -b -i hosts selenoid.yml --extra-vars "selenoid_vnc=true"

Check the Ansible documentation for more details.

Questions and Answers:

How to Check Selenoid (or Selenoid-UI) Status?

systemctl status selenoid

How to Start or Stop Selenoid (Selenoid-UI)?

systemctl start selenoid
systemctl stop selenoid

Where Are the Selenoid Logs?

journalctl -u selenoid -f
Informazioni sul progetto

Install and run selenoid and selenoid-ui on a single host with systemd

Installa
ansible-galaxy install vv-p.selenoid-systemd
Licenza
mit
Download
166
Proprietario