Skip to content
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
2 changes: 2 additions & 0 deletions .config/ansible-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ exclude_paths:
- .github/
- .idea/
- .tox/
- collections/
# Note: rhel-8 playbooks are not part of this test suite (not supported on RHEL 8)
4 changes: 3 additions & 1 deletion .config/cspell-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,6 @@ ONESHELL
HASAP
selectattr
equalto
crmsh
crmsh
sapstart
INSTANCENAME
34 changes: 31 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,37 @@ It is designed to test S4/HANA Clusters comprising of 2 or more nodes where SAP
Download the collection as part of the test project and make sure that the inventory file is modified to include your machines which are subjected to these tests.
In order for the tests to work correctly ensure that SAP HA Interface for SAP ABAP application server instances managed by RHEL HA Add-On is configured. This link can be followed to configure the same: https://access.redhat.com/solutions/3606101

## Collection Dependancies

This collection is dependant on
### Setup and Configuration

1. **Install Collection Dependencies:**
```bash
ansible-galaxy collection install -r requirements.yml
```

2. **Configure Inventory:**
- Edit `tests/inventory/x86_64.yml` or `tests/inventory/ppc64le.yml` to include your cluster nodes
- Ensure `ansible_user` is set correctly for each host (default is `root`)

3. **Ansible Configuration:**
- The project includes an `ansible.cfg` file in the root directory with pre-configured paths
- All paths are relative, so no user-specific customization is needed
- The configuration automatically finds:
- Collections in the current directory and `./collections` subdirectory
- Roles in the collection structure
- System-wide collections and roles

4. **Running Tests:**
```bash
# Run a specific test
ansible-playbook -i tests/inventory/x86_64.yml ansible_collections/sap/cluster_qa/playbooks/test09.yml

# Run all tests (test01 through test09, skipping test07)
ansible-playbook -i tests/inventory/x86_64.yml ansible_collections/sap/cluster_qa/playbooks/run_all_tests.yml
```

## Collection Dependencies

This collection is dependent on
- `sap.sap_operations` collection modules

### Ansible Core Compatibility
Expand Down
23 changes: 23 additions & 0 deletions ansible.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[defaults]
# Inventory path relative to this config file location
inventory = tests/inventory
# Remote user for SSH connections - customize if needed
remote_user = root
ask_pass = false
timeout = 60
force_color = 1
# stdout_callback = yaml
bin_ansible_callbacks = true
# Collections paths: current directory (.), user home, system paths
# These paths are relative to where ansible.cfg is located
# Note: Collections should be installed via: ansible-galaxy collection install -r requirements.yml
collections_paths = .:~/.ansible/collections:/usr/share/ansible/collections
# Roles path: local collection roles, user home, system paths
roles_path = ansible_collections/sap/cluster_qa/roles:~/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles

[privilege_escalation]
become = true
become_method = sudo
become_user = root
become_ask_pass = false

2 changes: 0 additions & 2 deletions ansible_collections/sap/cluster_qa/galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ tags:

dependencies:
"sap.sap_operations": ">=2.10.0"
"ansible.posix": ">=1.5.4"
"community.general": ">=7.3.0"

repository: https://github.com/redhat-sap/ha-cluster-qa

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading