Skip to content

Commit

Permalink
Merge pull request #4 from machacekondra/sap_operations
Browse files Browse the repository at this point in the history
Rename to sap.sap_operations
  • Loading branch information
kksat committed Oct 7, 2022
2 parents 8c621a6 + 72ed24b commit ca6a9fa
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Ansible Collection - sap.operations
# Ansible Collection - sap.sap_operations

This collection contains modules and plugins to assist in automating SAP day 2 operations with Ansible.
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace: sap

# The name of the collection. Has the same character restrictions as 'namespace'
name: operations
name: sap_operations

# The version of the collection. Must be compatible with semantic versioning
version: 1.0.0
Expand Down
8 changes: 4 additions & 4 deletions plugins/modules/parameter_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,18 @@

EXAMPLES = r"""
- name: Use module with local socket on target machine
sap.operations.parameter_info:
sap.sap_operations.parameter_info:
instance_number: "0"
- name: Fetch values of all parameters
sap.operations.parameter_info:
sap.sap_operations.parameter_info:
username: "npladm"
password: "secret123!"
hostname: "sap.system.example.com"
instance_number: "0"
- name: Fetch values of DIR_CT_RUN parameter
sap.operations.parameter_info:
sap.sap_operations.parameter_info:
username: "npladm"
password: "secret123!"
hostname: "sap.system.example.com"
Expand All @@ -92,7 +92,7 @@


from ansible.module_utils.basic import AnsibleModule
from ansible_collections.sap.operations.plugins.module_utils import soap
from ansible_collections.sap.sap_operations.plugins.module_utils import soap


def soap_client(hostname, username, password, ca_file, secure, instance):
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/rolling_kernel_switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@

EXAMPLES = r"""
- name: Run the system update
sap.operations.rolling_kernel_switch:
sap.sap_operations.rolling_kernel_switch:
username: "npladm"
password: "secret123!"
hostname: "sap.system.example.com"
Expand All @@ -88,7 +88,7 @@


from ansible.module_utils.basic import AnsibleModule
from ansible_collections.sap.operations.plugins.module_utils import soap
from ansible_collections.sap.sap_operations.plugins.module_utils import soap


def soap_client(
Expand Down
12 changes: 6 additions & 6 deletions plugins/modules/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,17 @@

EXAMPLES = r"""
- name: Start the service and wait for service to be available using unix socket
sap.operations.service:
sap.sap_operations.service:
instance_number: "0"
- name: Start the service and wait for service to be available using username/password
sap.operations.service:
sap.sap_operations.service:
username: "npladm"
password: "secret123!"
hostname: "sap.system.example.com"
- name: Start the service and do not wait for service to be up and running
sap.operations.service:
sap.sap_operations.service:
username: "npladm"
password: "secret123!"
hostname: "sap.system.example.com"
Expand All @@ -95,14 +95,14 @@
wait: false
- name: Stop the service and wait for termination
sap.operations.service:
sap.sap_operations.service:
username: "npladm"
password: "secret123!"
hostname: "sap.system.example.com"
state: stopped
- name: Stop the service and do not wait
sap.operations.service:
sap.sap_operations.service:
username: "npladm"
password: "secret123!"
hostname: "sap.system.example.com"
Expand All @@ -128,7 +128,7 @@


from ansible.module_utils.basic import AnsibleModule
from ansible_collections.sap.operations.plugins.module_utils import soap
from ansible_collections.sap.sap_operations.plugins.module_utils import soap


def soap_client(
Expand Down
8 changes: 4 additions & 4 deletions plugins/modules/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,19 +88,19 @@

EXAMPLES = r"""
- name: Use module with local socket on target machine
sap.operations.system:
sap.sap_operations.system:
instance_number: "0"
- name: Start system
sap.operations.system:
sap.sap_operations.system:
username: "npladm"
password: "secret123!"
hostname: "sap.system.example.com"
instance_number: "0"
state: started
- name: Stop system
sap.operations.system:
sap.sap_operations.system:
username: "npladm"
password: "secret123!"
hostname: "sap.system.example.com"
Expand All @@ -127,7 +127,7 @@


from ansible.module_utils.basic import AnsibleModule
from ansible_collections.sap.operations.plugins.module_utils import soap
from ansible_collections.sap.sap_operations.plugins.module_utils import soap


def soap_client(
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/system_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

EXAMPLES = r"""
- name: Fetch system info
sap.operations.system_info:
sap.sap_operations.system_info:
username: "npladm"
password: "secret123!"
hostname: "sap.system.example.com"
Expand All @@ -92,7 +92,7 @@


from ansible.module_utils.basic import AnsibleModule
from ansible_collections.sap.operations.plugins.module_utils import soap
from ansible_collections.sap.sap_operations.plugins.module_utils import soap


def soap_client(hostname, username, password, ca_file, secure, instance):
Expand Down
2 changes: 1 addition & 1 deletion roles/sap_kernel_update/tasks/init.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
- name: Fetch kernel path
sap.operations.parameter_info:
sap.sap_operations.parameter_info:
name: "DIR_CT_RUN"
instance_number: "{{ sap_kernel_update_instance }}"
register: __sap_kernel_update_sapexedb_sar_file
Expand Down
2 changes: 1 addition & 1 deletion roles/sap_kernel_update/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
when: sap_kernel_update_kernel_path is not defined

- name: Fetch the ABAP instances
sap.operations.system_info:
sap.sap_operations.system_info:
instance_number: "{{ sap_kernel_update_instance }}"
feature: "ABAP"
register: __sap_kernel_update_apab_systems
Expand Down
4 changes: 2 additions & 2 deletions roles/sap_kernel_update/tasks/normal_kernel_upgrade.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- name: Stop SAP system
sap.operations.system:
sap.sap_operations.system:
state: stopped
instance_number: "{{ sap_kernel_update_instance }}"

Expand Down Expand Up @@ -28,6 +28,6 @@
when: sap_kernel_updated_result is changed

- name: Start SAP system
sap.operations.system:
sap.sap_operations.system:
state: started
instance_number: "{{ sap_kernel_update_instance }}"
2 changes: 1 addition & 1 deletion roles/sap_kernel_update/tasks/rolling_kernel_upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
when: sap_kernel_updated_result is changed

- name: Update SAP system
sap.operations.rolling_kernel_switch:
sap.sap_operations.rolling_kernel_switch:
instance_number: "{{ sap_kernel_update_instance }}"

0 comments on commit ca6a9fa

Please sign in to comment.