mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-03 15:04:02 -07:00
pacemaker_stonith: new module (#10195)
* feat(initial): Add pacemaker_stonith module and unit tests
* feat(initial): Add working changes to pacemaker_stonith
* refactor(review): Apply code review suggestions
* Apply suggestions from code review
* refactor(review): Additional code review items
* bug(cli_action): Add missing runner arguments
* Apply code review suggestions
* Apply suggestions from code review
* Apply suggestions from code review
* WIP
* Apply doc changes to pacemaker stonith
* Update plugins/modules/pacemaker_stonith.py
---------
(cherry picked from commit e43735659a
)
Co-authored-by: Dexter <45038532+munchtoast@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
19 lines
723 B
Python
19 lines
723 B
Python
# -*- coding: utf-8 -*-
|
|
# Author: Dexter Le (dextersydney2001@gmail.com)
|
|
# Largely adapted from test_redhat_subscription by
|
|
# Jiri Hnidek (jhnidek@redhat.com)
|
|
#
|
|
# Copyright (c) Dexter Le (dextersydney2001@gmail.com)
|
|
# Copyright (c) Jiri Hnidek (jhnidek@redhat.com)
|
|
#
|
|
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
from __future__ import (absolute_import, division, print_function)
|
|
__metaclass__ = type
|
|
|
|
|
|
from ansible_collections.community.general.plugins.modules import pacemaker_stonith
|
|
from .uthelper import UTHelper, RunCommandMock
|
|
|
|
UTHelper.from_module(pacemaker_stonith, __name__, mocks=[RunCommandMock])
|