Skip to content

Commit 9787868

Browse files
authored
Merge pull request #53 from sap-linuxlab/dev
merge dev to main for release 1.3.0
2 parents 157027e + e07f371 commit 9787868

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+3093
-2606
lines changed

.github/workflows/ansible-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212

1313
- name: Ansible Lint Action
14-
uses: ansible-community/ansible-lint-action@v6.0.2
14+
uses: ansible/ansible-lint@v6

CHANGELOG.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,24 @@ community.sap\_launchpad Release Notes
44

55
.. contents:: Topics
66

7+
v1.3.0
8+
======
9+
10+
Release Summary
11+
---------------
12+
13+
Refactor Ansible Modules and adjust for ansible-core 2.19.
14+
15+
Minor Changes
16+
-------------
17+
- collection: Refactor all Ansible Modules (https://github.com/sap-linuxlab/community.sap_launchpad/pull/51)
18+
- sap_software_download: Update for ansible-core 2.19 (https://github.com/sap-linuxlab/community.sap_launchpad/pull/49)
19+
20+
Bugfixes
21+
--------
22+
- sap_software_download: Fix for failed checksums not correctly retrying (https://github.com/sap-linuxlab/community.sap_launchpad/pull/50)
23+
24+
725
v1.2.1
826
======
927

LICENSE

100755100644
File mode changed.

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,11 @@ See [Installing collections](https://docs.ansible.com/ansible/latest/collections
7373
### Ansible Modules
7474
| Name | Summary |
7575
| :-- | :-- |
76-
| [sap_launchpad.software_center_download](./docs/module_software_center_download.md) | Search and download SAP Software file |
77-
| [sap_launchpad.maintenance_planner_files](./docs/module_maintenance_planner_files.md) | Get list of files from Maintenance Planner |
78-
| [sap_launchpad.maintenance_planner_stack_xml_download](./docs/module_maintenance_planner_stack_xml_download.md) | Get stack file from Maintenance Planner |
76+
| [sap_launchpad.software_center_download](./docs/module_software_center_download.md) | Downloads software from the SAP Software Center |
77+
| [sap_launchpad.maintenance_planner_files](./docs/module_maintenance_planner_files.md) | Retrieves a list of files from an SAP Maintenance Planner transaction|
78+
| [sap_launchpad.maintenance_planner_stack_xml_download](./docs/module_maintenance_planner_stack_xml_download.md) | Downloads the stack.xml file from an SAP Maintenance Planner transaction |
79+
| [sap_launchpad.license_keys](./docs/module_license_keys.md) | Creates systems and license keys |
80+
| [sap_launchpad.systems_info](./docs/module_systems_info.md) | Retrieves information about SAP systems |
7981

8082
### Ansible Roles
8183
| Name | Summary |

changelogs/changelog.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
ancestor: null
22
releases:
3+
1.3.0:
4+
release_date: '2025-09-23'
5+
changes:
6+
release_summary: Refactor Ansible Modules and adjust for ansible-core 2.19
7+
minor_changes:
8+
- collection - Refactor all Ansible Modules (https://github.com/sap-linuxlab/community.sap_launchpad/pull/51)
9+
- sap_software_download - Update for ansible-core 2.19 (https://github.com/sap-linuxlab/community.sap_launchpad/pull/49)
10+
bugfixes:
11+
- sap_software_download - Fix for failed checksums not correctly retrying (https://github.com/sap-linuxlab/community.sap_launchpad/pull/50)
12+
13+
1.2.1:
14+
release_date: '2025-06-11'
15+
changes:
16+
release_summary: Various bug fixes
17+
bugfixes:
18+
- software_center_download - Improved logic for skipping existing files and getting valid filename (https://github.com/sap-linuxlab/community.sap_launchpad/pull/40)
19+
- sap_software_download - Add SLES 16 python313 support and update changelog (https://github.com/sap-linuxlab/community.sap_launchpad/pull/41)
20+
321
1.2.0:
422
release_date: '2025-04-04'
523
changes:

docs/DEVELOPER_NOTES.md

Lines changed: 10 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ It is recommended to install dependencies in venv that can be removed after exec
5151
```
5252
5353
### Installation of dependencies with Python system default
54+
**NOTE:** Python modules are installed as packages to avoid `externally-managed-environment` error.
5455
```yaml
5556
- name: Example play to install prerequisites with Python system default
5657
hosts: all
@@ -62,14 +63,15 @@ It is recommended to install dependencies in venv that can be removed after exec
6263
- python311-pip
6364
state: present
6465
65-
- name: Install Python modules to Python system default
66-
ansible.builtin.pip:
67-
name:
68-
- wheel
69-
- urllib3
70-
- requests
71-
- beautifulsoup4
72-
- lxml
66+
- name: Install Python module packages
67+
ansible.builtin.package:
68+
name:
69+
- python311-wheel
70+
- python311-urllib3
71+
- python311-requests
72+
- python311-beautifulsoup4
73+
- python311-lxml
74+
state: present
7375
```
7476

7577
## Additional execution methods
@@ -110,42 +112,3 @@ ansible-playbook --timeout 60 ./sample-playbook.yml \
110112
--connection 'ssh' --user "$target_user" --inventory "$target_host," --private-key "$target_private_key_file" \
111113
--ssh-extra-args="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ProxyCommand='ssh -W %h:%p $bastion_user@$bastion_host -p $bastion_port -i $bastion_private_key_file -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null'"
112114
```
113-
114-
## Execution of Python Modules directly
115-
### Setup local Python environment
116-
```shell
117-
# Change directory to Python scripts source
118-
cd ./plugins
119-
120-
# Create isolated Python (protect system Python)
121-
pyenv install 3.9.6
122-
pyenv virtualenv 3.9.6 sap_launchpad
123-
pyenv activate sap_launchpad
124-
125-
# Install Python Modules to current Python environment
126-
pip3 install beautifulsoup4 lxml requests
127-
128-
# Run Python, import Python Modules and run Python Functions
129-
python3
130-
```
131-
132-
### Execute Python Functions
133-
```python
134-
>>> from module_utils.sap_id_sso import sap_sso_login
135-
>>> from module_utils.sap_launchpad_software_center_download_runner import *
136-
>>>
137-
>>> # Debug
138-
>>> # from module_utils.sap_api_common import debug_https
139-
>>> # debug_https()
140-
>>>
141-
>>> ## Perform API login requests to SAP Support
142-
>>> username='S0000000'
143-
>>> password='password'
144-
>>> sap_sso_login(username, password)
145-
>>> ## Perform API activity requests to SAP Support (e.g. software search without deduplication, and download software)
146-
>>> query_result = search_software_filename("HCMT_057_0-80003261.SAR",'')
147-
>>> download_software(*query_result, output_dir='/tmp')
148-
...
149-
>>> ## API responses from SAP Support
150-
>>> exit()
151-
```

0 commit comments

Comments
 (0)