Skip to content
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

Release galaxy-1.36.1 #84

Merged
merged 1 commit into from
Jul 12, 2024
Merged
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
286 changes: 152 additions & 134 deletions docs/CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace: sap

name: sap_operations

version: 1.36.0
version: 1.36.1

readme: README.md

Expand Down
3 changes: 2 additions & 1 deletion roles/general_preconfigure/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
# If not, see <https://www.gnu.org/licenses/>.

---
general_preconfigure_tmpfs_size_gb: "
general_preconfigure_tmpfs_size_gb: "\
{{ ((0.75 * (ansible_facts['memtotal_mb'] | default(0) + ansible_facts['swaptotal_mb'] | default(0))) / 1024)
| round | int }}"
general_preconfigure_reboot: postpone
general_preconfigure_reboot_timeout: 3600
27 changes: 27 additions & 0 deletions roles/general_preconfigure/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-FileCopyrightText: 2024 Red Hat, Project Atmosphere
#
# Copyright 2024 Red Hat, Project Atmosphere
#
# This program is free software: you can redistribute it and/or modify it under the terms of the GNU
# General Public License as published by the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# You should have received a copy of the GNU General Public License along with this program.
# If not, see <https://www.gnu.org/licenses/>.

---
- name: Reboot
ansible.builtin.reboot:
reboot_timeout: "{{ general_preconfigure_reboot_timeout }}"
become: true
become_user: root
12 changes: 9 additions & 3 deletions roles/general_preconfigure/meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ argument_specs:
none - no reboot will be be required after role applied,
role will not install packages that might require reboot. Not all requirements can be fulfilled that way.
List of packages to be skipped see <https://access.redhat.com/solutions/27943>
postpone - (default behavior) reboot might be required after packages installation by the role,
role will not reboot machine, role will not notify reboot action, in this case reboot has to be handled separately by the user.
now - role will force reboot of the host at the end of the execution - this is not idempotent and reboot will be forced each time role is executed.
postpone - (default behavior) role will not flush handlers at the end of execution, but reboot handler will be notified,
in this case this is a user obligation to flush handlers (and thus reboot the host).
now - role will flush handlers at the end of the execution - this is might not be desirable,
in situations when another role that requires reboot will run after.
type: str
required: false
default: postpone
Expand All @@ -48,6 +49,11 @@ argument_specs:
type: str
default: "{% raw %}{{ ((0.75 * (ansible_facts['memtotal_mb'] + ansible_facts['swaptotal_mb'])) / 1024) | round | int }}{% endraw %}"
required: false
general_preconfigure_reboot_timeout:
description: Timeout for reboot handler, see how reboot is handled in general_preconfigure_reboot parameter description
type: int
required: false
default: 3600

__limitations__:
options: {}
Expand Down
4 changes: 2 additions & 2 deletions roles/general_preconfigure/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,6 @@
ansible.builtin.include_tasks:
file: "rhel-{{ ansible_facts['distribution_major_version'] }}.yml"

- name: Reboot (if reboot = now)
ansible.builtin.reboot:
- name: Flush handlers (if reboot = now)
ansible.builtin.meta: flush_handlers
when: general_preconfigure_reboot == 'now'
2 changes: 2 additions & 0 deletions roles/general_preconfigure/tasks/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
skip_broken: "{{ general_preconfigure_packages_skip_broken }}"
become: true
become_user: root
notify: Reboot

- name: Install package groups
ansible.builtin.dnf:
Expand All @@ -41,3 +42,4 @@
skip_broken: "{{ general_preconfigure_packages_skip_broken }}"
become: true
become_user: root
notify: Reboot
8 changes: 4 additions & 4 deletions roles/general_preconfigure/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
---
general_preconfigure_major_version: "{{ ansible_facts['distribution_major_version'] }}"
general_preconfigure_architecture: "{{ ansible_facts['architecture'] }}"
general_preconfigure_kernel_parameters: "
general_preconfigure_kernel_parameters: "\
{{
general_preconfigure_kernel_parameters_mapping\
[ansible_facts['distribution_major_version']]
Expand Down Expand Up @@ -57,21 +57,21 @@ general_preconfigure_services:
state: started
enabled: true

general_preconfigure_packages: "
general_preconfigure_packages: "\
{{
general_preconfigure_packages_mapping\
[general_preconfigure_major_version]\
[general_preconfigure_architecture]
}}"

general_preconfigure_package_groups: "
general_preconfigure_package_groups: "\
{{
general_preconfigure_package_groups_mapping\
[general_preconfigure_major_version]\
[general_preconfigure_architecture]
}}"

general_preconfigure_selinux: "
general_preconfigure_selinux: "\
{{
general_preconfigure_selinux_mapping\
[general_preconfigure_major_version]
Expand Down
4 changes: 2 additions & 2 deletions roles/hana_preconfigure/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

---
hana_preconfigure_tuned_profile: sap-hana
hana_preconfigure_packages: "
hana_preconfigure_packages: "\
{{
hana_preconfigure_packages_mapping\
[ansible_facts['distribution_major_version']]\
Expand All @@ -46,7 +46,7 @@ hana_preconfigure_services:
enabled: false
state: stopped

hana_preconfigure_kernel_parameters: "
hana_preconfigure_kernel_parameters: "\
{{
hana_preconfigure_kernel_parameters_mapping\
[ansible_facts['distribution_major_version']]\
Expand Down
Loading