Skip to content

Commit bc0cff6

Browse files
dev to main (#18)
* devel Python version exclusive (#14) (#15) * devel Python version exclusive to 3.10 * change default python version to 3.10 * rename and restructure Ansible Modules (#16) * devel Python version exclusive (#14) * devel Python version exclusive to 3.10 * change default python version to 3.10 * fix: gitignore update * move swpm2 inifile generate from sap_install * sap_control_exec: rename from sapcontrol Ansible Module * sap_hdbsql: rename from hana_query Ansible Module * all: amend text and dir structure * all: remove symlinks * all: flatten modules dir * all: move tests to parent dir Co-authored-by: Rainer Leber <39616583+rainerleber@users.noreply.github.com> * Refactoring Modules, make things more clear (#17) * remove symlinks, add redirection * adding missing library exception * fix tests * change error logic * add changelog * change changelog * change galaxy yaml Co-authored-by: Sean Freeman <1815807+sean-freeman@users.noreply.github.com>
1 parent dd74f02 commit bc0cff6

Some content is hidden

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

42 files changed

+2369
-1905
lines changed

.gitignore

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,55 @@
11
/tests/output/
22
/changelogs/.plugin-cache.yaml
33

4+
# .gitignore defines files to ignore and remain untracked in Git
5+
# Each line in a gitignore file specifies a pattern, eg. directory or file extension
6+
7+
# Git should not track binary artifacts such as images, libraries, executables, archive files etc.
8+
# Until the team has mature processes, a Binary Artifacts Repository Manager is not in use.
9+
10+
# Therefore some binary artifacts are tracked in this Git repository
11+
12+
13+
# Further .gitignore templates available at:
14+
# https://github.com/github/gitignore
15+
16+
17+
# macOS OS generated files
18+
.DS_Store
19+
._*
20+
.Spotlight-V100
21+
.Trashes
22+
23+
# Windows OS generated files #
24+
ehthumbs.db
25+
Thumbs.db
26+
27+
# Compressed Archives
28+
# git has built-in compression
29+
# *.7z
30+
# *.dmg
31+
# *.gz
32+
# *.iso
33+
# *.jar
34+
# *.rar
35+
# *.tar
36+
# *.zip
37+
38+
# Binaries / Compiled source
39+
# *.com
40+
# *.class
41+
# *.dll
42+
# *.exe
43+
# *.o
44+
# *.so
45+
46+
# Logs and databases
47+
# *.log
48+
# *.sqlite
49+
50+
# VSCode
51+
.vscode
52+
453
# Byte-compiled / optimized / DLL files
554
__pycache__/
655
*.py[cod]

CHANGELOG.rst

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,33 @@ Community SAP Release Notes
55
.. contents:: Topics
66

77

8+
v1.3.0
9+
======
10+
11+
Release Summary
12+
---------------
13+
14+
This is the 1.3.0 minor release of the ``community.sap_libs`` collection.
15+
This changelog contains all changes to the modules and plugins in this collection
16+
that have been made after the previous release.
17+
18+
Minor Changes
19+
-------------
20+
21+
- License requirements are updated.
22+
- The modules purposes are described clearer.
23+
- The namespaces of the modules are removed to provide a flatter design.
24+
- hana_query - module is moved to sap_hdbsql.
25+
- sapcontrol - module is moved to sap_control_exec to have a clearer separation to other roles and references.
26+
827
v1.2.0
928
======
1029

1130
Release Summary
1231
---------------
1332

1433
This is the minor release of the ``community.sap_libs`` collection.
15-
This changelog contains changes to the modules and plugins in this collection
34+
This changelog contains all changes to the modules and plugins in this collection
1635
that have been made after the previous release.
1736

1837
Bugfixes
@@ -23,7 +42,7 @@ Bugfixes
2342
New Modules
2443
-----------
2544

26-
- sap_pyrfc - This module executes rfc functions.
45+
- sap_pyrfc - Ansible Module for use of SAP PyRFC to execute SAP RFCs (Remote Function Calls) to SAP remote-enabled function modules
2746

2847
v1.1.0
2948
======
@@ -41,7 +60,7 @@ New Modules
4160
System
4261
~~~~~~
4362

44-
- sapcontrol - Manages SAPCONTROL
63+
- sapcontrol - Ansible Module to execute SAPCONTROL
4564

4665
v1.0.0
4766
======
@@ -60,7 +79,7 @@ Database
6079
saphana
6180
^^^^^^^
6281

63-
- hana_query - Execute SQL on HANA
82+
- hana_query - Ansible Module to execute SQL on SAP HANA
6483

6584
Files
6685
~~~~~

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,14 @@ For some modules the below requirements are needed on the host that executes a m
9999
## Included content
100100

101101
- **Modules**:
102-
- [hana_query](https://docs.ansible.com/ansible/latest/collections/community/sap_libs/hana_query.html)
102+
- [sap_hdbsql](https://docs.ansible.com/ansible/latest/collections/community/sap_libs/sap_hdbsql.html)
103103
- [sap_task_list_execute](https://docs.ansible.com/ansible/latest/collections/community/sap_libs/sap_task_list_execute.html)
104104
- [sapcar_extract](https://docs.ansible.com/ansible/latest/collections/community/sap_libs/sapcar_extract.html)
105105
- [sap_company](https://docs.ansible.com/ansible/latest/collections/community/sap_libs/sap_company.html)
106106
- [sap_snote](https://docs.ansible.com/ansible/latest/collections/community/sap_libs/sap_snote.html)
107107
- [sap_user](https://docs.ansible.com/ansible/latest/collections/community/sap_libs/sap_user.html)
108108
- [sap_system_facts](https://docs.ansible.com/ansible/latest/collections/community/sap_libs/sap_system_facts.html)
109-
- [sapcontrol](https://docs.ansible.com/ansible/latest/collections/community/sap_libs/sapcontrol.html)
109+
- [sap_control_exec](https://docs.ansible.com/ansible/latest/collections/community/sap_libs/sap_control_exec.html)
110110

111111
## Using this collection
112112

changelogs/changelog.yaml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ releases:
77
fragments:
88
- 1.0.0.yml
99
modules:
10-
- description: Execute SQL on HANA
10+
- description: Ansible Module to execute SQL on SAP HANA
1111
name: hana_query
1212
namespace: database.saphana
1313
- description: This module will manage a company entities in a SAP S4HANA environment
@@ -39,7 +39,7 @@ releases:
3939
fragments:
4040
- 1.1.0.yml
4141
modules:
42-
- description: Manages SAPCONTROL
42+
- description: Ansible Module to execute SAPCONTROL
4343
name: sapcontrol
4444
namespace: system
4545
release_date: '2022-05-17'
@@ -57,7 +57,25 @@ releases:
5757
- 1.2.0.yml
5858
- 11-sap_system_facts_fix_typo.yml
5959
modules:
60-
- description: This module executes rfc functions.
60+
- description: Ansible Module for use of SAP PyRFC to execute SAP RFCs (Remote
61+
Function Calls) to SAP remote-enabled function modules
6162
name: sap_pyrfc
6263
namespace: ''
6364
release_date: '2022-07-18'
65+
1.3.0:
66+
changes:
67+
breaking_changes:
68+
minor_changes:
69+
- License requirements are updated.
70+
- The modules purposes are described clearer.
71+
- The namespaces of the modules are removed to provide a flatter design.
72+
- hana_query - module is moved to sap_hdbsql.
73+
- sapcontrol - module is moved to sap_control_exec to have a clearer separation
74+
to other roles and references.
75+
release_summary: 'This is the 1.3.0 minor release of the ``community.sap_libs``
76+
collection.
77+
This changelog contains all changes to the modules and plugins in this collection
78+
that have been made after the previous release.'
79+
fragments:
80+
- 1.3.0.yml
81+
release_date: '2022-09-09'

galaxy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
namespace: community
44
name: sap_libs
5-
version: 1.2.0
5+
version: 1.3.0
66
readme: README.md
77
authors:
88
- Rainer Leber (github.com/rainerleber)
99
- Robert Kraemer (github.com/rkpobe)
10+
- Sean Freeman (github.com/sean-freeman)
1011
description: SAP Module community collection for Ansible
1112
license_file: LICENSE
1213
tags:

meta/runtime.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,15 @@
11
---
2-
requires_ansible: '>=2.9.10'
2+
requires_ansible: ">=2.9.10"
3+
4+
plugin_routing:
5+
modules:
6+
hana_query:
7+
redirect: community.sap_libs.sap_hdbsql
8+
deprecation:
9+
removal_version: 2.0.0
10+
warning_text: Use community.sap_libs.sap_hdbsql instead.
11+
sapcontrol:
12+
redirect: community.sap_libs.sap_control_exec
13+
deprecation:
14+
removal_version: 2.0.0
15+
warning_text: Use community.sap_libs.sap_control_exec instead.

plugins/module_utils/pyrfc_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
def get_connection(module, conn_params):
3333
if not HAS_PYRFC_LIBRARY:
3434
module.fail_json(msg=missing_required_lib(
35-
"python-gitlab"), exception=PYRFC_LIBRARY_IMPORT_ERROR)
35+
"pyrfc"), exception=PYRFC_LIBRARY_IMPORT_ERROR)
3636

3737
module.warn('Connecting ... %s' % conn_params['ashost'])
3838
if "saprouter" in conn_params:

0 commit comments

Comments
 (0)