-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scylla-node: molecule tests for 2022.1, 2022.2
- Loading branch information
Showing
10 changed files
with
396 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
28
ansible-scylla-node/molecule/ubuntu2004-enterprise-2/INSTALL.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
96
ansible-scylla-node/molecule/ubuntu2004-enterprise-2/molecule.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
9 changes: 9 additions & 0 deletions
9
ansible-scylla-node/molecule/ubuntu2004-enterprise-2/verify.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
28
ansible-scylla-node/molecule/ubuntu2004-enterprise-3/INSTALL.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.