Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scylla role: support for 2022.2 (5.1) #232

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ansible-scylla-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ jobs:
#- ubuntu1604
#- ubuntu1804
- ubuntu2004
#- ubuntu2004-2
- ubuntu2004-enterprise
- ubuntu2004-enterprise-2
- ubuntu2004-enterprise-3
defaults:
run:
working-directory: ansible-scylla-node
Expand Down
22 changes: 22 additions & 0 deletions ansible-scylla-node/molecule/ubuntu2004-2/INSTALL.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
*******
Docker driver installation guide
*******

Requirements
============

* Docker Engine

Install
=======

Please refer to the `Virtual environment`_ documentation for installation best
practices. If not using a virtual environment, please consider passing the
widely recommended `'--user' flag`_ when invoking ``pip``.

.. _Virtual environment: https://virtualenv.pypa.io/en/latest/
.. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site

.. code-block:: bash
$ pip install 'molecule[docker]'
96 changes: 96 additions & 0 deletions ansible-scylla-node/molecule/ubuntu2004-2/molecule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
---
dependency:
name: galaxy
enabled: false
options:
role-file: requirements.yml
driver:
name: docker
platforms:
- name: node1
image: jrei/systemd-ubuntu:20.04
privileged: true
command: /lib/systemd/systemd
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup
groups:
- scylla
docker_networks:
- name: scylla
ipam_config:
- subnet: "10.11.0.0/16"
gateway: "10.11.0.254"
networks:
- name: "scylla"
ipv4_address: "10.11.0.2"
- name: node2
image: jrei/systemd-ubuntu:20.04
privileged: true
command: /lib/systemd/systemd
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup
groups:
- scylla
networks:
- name: "scylla"
ipv4_address: "10.11.0.3"
- name: node3
image: jrei/systemd-ubuntu:20.04
privileged: true
command: /lib/systemd/systemd
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup
groups:
- scylla
networks:
- name: "scylla"
ipv4_address: "10.11.0.4"
provisioner:
name: ansible
env:
ANSIBLE_LIBRARY: $PWD/../example-playbooks/async_extra/library
ANSIBLE_ACTION_PLUGINS: $PWD/../example-playbooks/async_extra/action_plugins
log: True
options:
vvv: True
inventory:
group_vars:
scylla:
scylla_deb_repos:
- "http://downloads.scylladb.com/deb/ubuntu/scylla-5.2.list"
scylla_edition: "oss"
scylla_version: "latest"
scylla_io_probe: false
io_properties:
disks:
- mountpoint: "/var/lib/scylla/data"
read_iops: 2000
read_bandwidth: 10000000
write_iops: 1000
write_bandwidth: 1000000
scylla_seeds:
- "10.11.0.2"
dc: "test_dc"
rack: "test_rack"
skip_coredump: True
skip_sysconfig: True
cpuset_command: "scylla_cpuset_setup --smp 1"
# skip_cpuset: True
# devmode: True
# skip_ntp: True
skip_swap: True
scylla_manager_deb_repo_url: "http://downloads.scylladb.com/deb/ubuntu/scylladb-manager-2.6-bionic.list"
playbooks:
converge: ../shared/converge.yml
prepare: ../shared/prepare.yml
scenario:
test_sequence:
- dependency
- lint
- syntax
- create
- prepare
- converge
- verify
verifier:
name: ansible
9 changes: 9 additions & 0 deletions ansible-scylla-node/molecule/ubuntu2004-2/verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
# This is an example playbook to execute Ansible tests.

- name: Verify
hosts: all
tasks:
- name: Example assertion
assert:
that: true
28 changes: 28 additions & 0 deletions ansible-scylla-node/molecule/ubuntu2004-enterprise-2/INSTALL.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
*******
Docker driver installation guide
*******

Requirements
============

* Docker Engine

Install
=======

Please refer to the `Virtual environment`_ documentation for installation best
practices. If not using a virtual environment, please consider passing the
widely recommended `'--user' flag`_ when invoking ``pip``.

.. _Virtual environment: https://virtualenv.pypa.io/en/latest/
.. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site

.. code-block:: bash

$ pip install 'molecule[docker]'

requirements can be regenerated using:

pip-compile --output-file=requirements-dev.txt requirements-dev.in

pip-compile --output-file=requirements.txt requirements.in
96 changes: 96 additions & 0 deletions ansible-scylla-node/molecule/ubuntu2004-enterprise-2/molecule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
---
dependency:
name: galaxy
enabled: false
options:
role-file: requirements.yml
driver:
name: docker
platforms:
- name: node1
image: jrei/systemd-ubuntu:20.04
privileged: true
command: /lib/systemd/systemd
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup
groups:
- scylla
docker_networks:
- name: scylla
ipam_config:
- subnet: "10.11.0.0/16"
gateway: "10.11.0.254"
networks:
- name: "scylla"
ipv4_address: "10.11.0.2"
- name: node2
image: jrei/systemd-ubuntu:20.04
privileged: true
command: /lib/systemd/systemd
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup
groups:
- scylla
networks:
- name: "scylla"
ipv4_address: "10.11.0.3"
- name: node3
image: jrei/systemd-ubuntu:20.04
privileged: true
command: /lib/systemd/systemd
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup
groups:
- scylla
networks:
- name: "scylla"
ipv4_address: "10.11.0.4"
provisioner:
name: ansible
env:
ANSIBLE_LIBRARY: $PWD/../example-playbooks/async_extra/library
ANSIBLE_ACTION_PLUGINS: $PWD/../example-playbooks/async_extra/action_plugins
log: True
options:
vvv: True
inventory:
group_vars:
scylla:
scylla_deb_repos:
- "http://downloads.scylladb.com/deb/ubuntu/scylla-2022.1.list"
scylla_edition: "enterprise"
scylla_version: "latest"
scylla_io_probe: false
io_properties:
disks:
- mountpoint: "/var/lib/scylla/data"
read_iops: 2000
read_bandwidth: 10000000
write_iops: 1000
write_bandwidth: 1000000
scylla_seeds:
- "10.11.0.2"
dc: "test_dc"
rack: "test_rack"
skip_coredump: True
skip_sysconfig: True
cpuset_command: "scylla_cpuset_setup --smp 1"
#skip_cpuset: True
#devmode: True
# skip_ntp: True
skip_swap: True
scylla_manager_deb_repo_url: "http://downloads.scylladb.com/deb/ubuntu/scylladb-manager-2.6-bionic.list"
playbooks:
converge: ../shared/converge.yml
prepare: ../shared/prepare.yml
scenario:
test_sequence:
- dependency
- lint
- syntax
- create
- prepare
- converge
- verify
verifier:
name: ansible
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
# This is an example playbook to execute Ansible tests.

- name: Verify
hosts: all
tasks:
- name: Example assertion
assert:
that: true
28 changes: 28 additions & 0 deletions ansible-scylla-node/molecule/ubuntu2004-enterprise-3/INSTALL.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
*******
Docker driver installation guide
*******

Requirements
============

* Docker Engine

Install
=======

Please refer to the `Virtual environment`_ documentation for installation best
practices. If not using a virtual environment, please consider passing the
widely recommended `'--user' flag`_ when invoking ``pip``.

.. _Virtual environment: https://virtualenv.pypa.io/en/latest/
.. _'--user' flag: https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site

.. code-block:: bash

$ pip install 'molecule[docker]'

requirements can be regenerated using:

pip-compile --output-file=requirements-dev.txt requirements-dev.in

pip-compile --output-file=requirements.txt requirements.in
Loading
Loading