Skip to content

Collection Readme update and preparation for 1.2.0 release #34

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

Merged
merged 6 commits into from
Apr 4, 2025
Merged
Show file tree
Hide file tree
Changes from 4 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
62 changes: 51 additions & 11 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,36 +1,76 @@
===================================
community.sap_launchpad Release Notes
community.sap\_launchpad Release Notes
===================================

.. contents:: Topics

v1.2.0
======

Release Summary
---------------

Enhancements to Modules and introduction of new Ansible Role.

Minor Changes
-------------
- software_center_download: Add option to search for latest packages (https://github.com/sap-linuxlab/community.sap_launchpad/pull/28)
- maintenance_planner modules: Add option to use Display ID instead of name (https://github.com/sap-linuxlab/community.sap_launchpad/pull/31)
- sap_software_download: New role for downloading software (https://github.com/sap-linuxlab/community.sap_launchpad/pull/32)
- Collection Readme update and preparation for 1.2.0 release (https://github.com/sap-linuxlab/community.sap_launchpad/pull/34)

v1.1.0
Bugfixes
--------

- fix: cache gigya sdk build number (https://github.com/sap-linuxlab/community.sap_launchpad/pull/33)


v1.1.1
======

Release Summary
---------------

| Release Date: 2023-11-28
| Community contribution Ansible Module systems_info to query registered systems in me.sap.com
| Community contribution Ansible Module license_keys to create systems and license keys on me.sap.com/licensekey
Various bug fixes

Bugfixes
--------
- Append logic for Account Temporarily Locked Out
- Fix errors in the example file

v1.0.1

v1.1.0 (2023-11-28)
======

Release Summary
---------------

| Release Date: 2023-09-14
| Fix for handling old password prompt
Community contribution with new Ansible Modules `systems_info` and `license_keys``

Minor Changes
-------------

- Create/update systems and license keys (https://github.com/sap-linuxlab/community.sap_launchpad/pull/16)


v1.0.1 (2023-09-14)
======

Release Summary
---------------

Various bug fixes

Bugfixes
--------

- Fix for handling old password prompt


v1.0.0
v1.0.0 (2023-08-22)
======

Release Summary
---------------

| Release Date: 2023-08-22
| Initial Release on Galaxy
Initial Release on Galaxy
157 changes: 89 additions & 68 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,108 +1,129 @@
# community.sap_launchpad Ansible Collection ![Ansible Lint](https://github.com/sap-linuxlab/community.sap_launchpad/actions/workflows/ansible-lint.yml/badge.svg?branch=main)
# community.sap_launchpad Ansible Collection

This Ansible Collection executes basic SAP.com Support operations tasks.
![Ansible Lint](https://github.com/sap-linuxlab/community.sap_launchpad/actions/workflows/ansible-lint.yml/badge.svg?branch=main)

## Functionality
## Description

This Ansible Collection executes basic SAP.com Support operations tasks, including:
This Ansible Collection executes download of SAP Software.

- **Software Center Catalog**
- Search and Download of SAP software center catalog files
- Search and Extraction of SAP software center catalog information
- **Maintenance Planner**
- Lookup and download files from an existing 'New Implementation' MP Transaction and Stack, using SAP software center's download basket
Included role and modules cover range of options:
- Preparation of environment before download.
- Download of specific SAP Software files.
- Download of alternative SAP Software files if specific was not available.
- Download of SAP Software files from existing Maintenance Plan transaction.
- Download of Stack file from existing Maintenance Plan transaction.

## Contents

An Ansible Playbook can call either an Ansible Role, or the individual Ansible Modules for handling the API calls to various SAP Support Portal API capabilities:
- **Ansible Roles** (runs multiple Ansible Modules)
- **Ansible Modules** (and adjoining Python Functions)
## Requirements

For further information regarding the development, code structure and execution workflow please read the [Development documentation](./docs/DEVELOPMENT.md).
### Control Nodes
| Type | Version |
| :--- | :--- |
| Operating system | Any operating system with required Python and Ansible versions |
| Python | 3.11 or higher |
| Ansible | 9.9 or higher |
| Ansible-core | 2.16 or higher |

Within this Ansible Collection, there are various Ansible Modules.

#### Ansible Modules
### Managed Nodes
| Type | Version |
| :--- | :--- |
| Operating system | SUSE Linux Enterprise Server 15 SP5+, 16 <br> Red Hat Enterprise Linux 8.x, 9.x, 10.x |
| Python | 3.11 or higher (SUSE) <br> 3.9 or higher (Red Hat) |

| Name &emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp; | Summary |
| :-- | :-- |
| [sap_launchpad.software_center_download](./docs/module_software_center_download.md) | search for files and download |
| [sap_launchpad.maintenance_planner_files](./docs/module_maintenance_planner_files.md) | maintenance planner files retrieval |
| [sap_launchpad.maintenance_planner_stack_xml_download](./docs/module_maintenance_planner_stack_xml_download.md) | maintenance planner stack xml download |
**NOTE: Operating system needs to have access to required package repositories either directly or via subscription registration.**

## Execution

### Credentials - SAP User ID
## Installation Instructions

SAP software installation media must be obtained from SAP directly, and requires valid license agreements with SAP in order to access these files.
### Installation
Install this collection with Ansible Galaxy command:
```console
ansible-galaxy collection install community.sap_launchpad
```

An SAP Company Number (SCN) contains one or more Installation Number/s, providing licences for specified SAP Software. When an SAP User ID is created within the SAP Customer Number (SCN), the administrator must provide SAP Download authorizations for the SAP User ID.
Optionally you can include collection in requirements.yml file and include it together with other collections using: `ansible-galaxy collection install -r requirements.yml`
Requirements file need to be maintained in following format:
```yaml
collections:
- name: community.sap_launchpad
```

When an SAP User ID (e.g. S-User) is enabled with and part of an SAP Universal ID, then the `sap_launchpad` Ansible Collection **must** use:
- the SAP User ID
- the password for login with the SAP Universal ID
### Upgrade
Installed Ansible Collection will not be upgraded automatically when Ansible package is upgraded.

In addition, if a SAP Universal ID is used then the recommendation is to check and reset the SAP User ID ‘Account Password’ in the [SAP Universal ID Account Manager](https://account.sap.com/manage/accounts), which will help to avoid any potential conflicts.
To upgrade the collection to the latest available version, run the following command:
```console
ansible-galaxy collection install community.sap_launchpad --upgrade
```

For further information regarding connection errors, please see the FAQ section [Errors with prefix 'SAP SSO authentication failed - '](./docs/FAQ.md#errors-with-prefix-sap-sso-authentication-failed---).
You can also install a specific version of the collection, when you encounter issues with latest version. Please report these issues in affected Role repository if that happens.
Example of downgrading collection to version 1.0.0:
```
ansible-galaxy collection install community.sap_launchpad:==1.0.0
```

### Execution examples
See [Installing collections](https://docs.ansible.com/ansible/latest/collections_guide/collections_installing.html) for more details on installation methods.

There are various methods to execute the Ansible Collection, dependant on the use case. For more information, see [Execution examples with code samples](./docs/EXEC_EXAMPLES.md) and the summary below:

| Execution Scenario | Use Case | Target |
| --- | --- | --- |
| Ansible Playbook <br/>-> source Ansible Collection <br/>-> execute Ansible Task <br/>--> run Ansible Module <br/>---> run Python/Bash Functions | Simple executions with a few activities | Localhost or Remote |
| Ansible Playbook <br/>-> source Ansible Collection <br/>-> execute Ansible Task <br/>--> run Ansible Role <br/>---> run Ansible Module <br/>----> run Python/Bash Functions <br/>--> run Ansible Role<br/>---> ... | Complex executions with various interlinked activities;<br/> run in parallel or sequentially | Localhost or Remote |
| Python/Bash Functions | Simple testing or non-Ansible use cases | Localhost |
## Contents

---
### Ansible Modules
| Name | Summary |
| :-- | :-- |
| [sap_launchpad.software_center_download](./docs/module_software_center_download.md) | Search and download SAP Software file |
| [sap_launchpad.maintenance_planner_files](./docs/module_maintenance_planner_files.md) | Get list of files from Maintenance Planner |
| [sap_launchpad.maintenance_planner_stack_xml_download](./docs/module_maintenance_planner_stack_xml_download.md) | Get stack file from Maintenance Planner |

## Requirements, Dependencies and Testing
### Ansible Roles
| Name | Summary |
| :-- | :-- |
| [sap_software_download](./roles/sap_software_download/README.md) | Prepare environment and download SAP Software files or Maintenance Plan transaction files |

### Operating System requirements

Designed for Linux operating systems, e.g. RHEL.
## Testing
This Ansible Collection was tested across different Operating Systems and SAP products.

This role has not been tested and amended for SAP NetWeaver Application Server instantiations on IBM AIX or Windows Server.
| Type | Version |
| :--- | :--- |
| Operating system | SUSE Linux Enterprise Server 15 SP5+, 16 <br> Red Hat Enterprise Linux 8.x, 9.x, 10.x |
| Python | 3.11, 3.12 |
| Ansible | 9, 10, 11 |
| Ansible-core | 2.16, 2.17, 2.18 |

Assumptions for executing this role include:
- Registered OS License and OS Package repositories are available (from the relevant content delivery network of the OS vendor)
- Simultaneous Ansible Playbook executions will require amendment of Ansible Variable name `softwarecenter_search_list` shown in execution samples (containing the list of installation media to download). This avoids accidental global variable clashes from occuring in Ansible Playbooks executed from the same controller host with an inline Ansible Inventory against 'all' target hosts.

### Python requirements
## Contributing
You can find more information about ways you can contribute at [sap-linuxlab website](https://sap-linuxlab.github.io/initiative_contributions/).

Execution/Controller/Management host:
- Python 3

Target host:
- Python 3, with Python Modules `beautifulsoup4 lxml requests` (see [Execution examples with code samples](./docs/EXEC_EXAMPLES.md))
## Support
You can report any issues using [Issues](https://github.com/sap-linuxlab/community.sap_launchpad/issues) section.

### Testing on execution/controller host

**Tests with Ansible Core release versions:**
- Ansible Core 2.11.5 community edition
## Release Notes and Roadmap
You can find the release notes of this collection in [Changelog file](./CHANGELOG.rst)

**Tests with Python release versions:**
- Python 3.9.7 (i.e. CPython distribution)

**Tests with Operating System release versions:**
- RHEL 8.4
- macOS 11.6 (Big Sur), with Homebrew used for Python 3.x via PyEnv
## Further Information

### Testing on target/remote host
### Credentials - SAP S-User

**Tests with Operating System release versions:**
- RHEL 8.2 for SAP
SAP software files must be obtained from SAP directly, and requires valid license agreements with SAP in order to access these files.

**Tests with Python release versions:**
- Python 3.6.x (i.e. CPython distribution), default for RHEL 8.x and SLES 15.x
- Python 3.8.x (i.e. CPython distribution)
An SAP Company Number (SCN) contains one or more Installation Number/s, providing licenses for specified SAP Software. When an SAP User ID is created within the SAP Customer Number (SCN), the administrator must provide SAP Download authorizations for the SAP User ID.

## License
When an SAP User ID (e.g. S-User) is enabled with and part of an SAP Universal ID, then the `sap_launchpad` Ansible Collection **must** use:
- the SAP User ID
- the password for login with the SAP Universal ID

- [Apache 2.0](./LICENSE)
In addition, if a SAP Universal ID is used then the recommendation is to check and reset the SAP User ID ‘Account Password’ in the [SAP Universal ID Account Manager](https://account.sap.com/manage/accounts), which will help to avoid any potential conflicts.

## Contributors
For further information regarding connection errors, please see the FAQ section [Errors with prefix 'SAP SSO authentication failed - '](./docs/FAQ.md#errors-with-prefix-sap-sso-authentication-failed---).

**Multi Factor Authentication is not supported.**

Contributors to the Ansible Roles within this Ansible Collection, are shown within [/docs/contributors](./docs/CONTRIBUTORS.md).
### Variable Precedence Rules
Please follow [Ansible Precedence guidelines](https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_variables.html#variable-precedence-where-should-i-put-a-variable) on how to pass variables when using this collection.

## License
[Apache 2.0](./LICENSE)
3 changes: 3 additions & 0 deletions docs/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@
- **Sean Freeman** - Origin developer of Python API constructs, and project owner
- **SVA GmbH - System Vertrieb Alexander GmbH**
- **Rainer Leber** - User acceptance testing
- **SUSE**
- SUSE SAP Emerging Technology Solutions
- **Marcel Mamula** - Developer of Ansible Collection
78 changes: 0 additions & 78 deletions docs/DEVELOPMENT.md

This file was deleted.

Loading