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

add support ansible-core 2.17.1 and astra linux #16

Merged
merged 2 commits into from
Sep 11, 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
2 changes: 0 additions & 2 deletions library/cartridge_apply_app_config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3

import json
import os
import uuid
Expand Down
2 changes: 0 additions & 2 deletions library/cartridge_bootstrap_vshard.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3

from ansible.module_utils.helpers import Helpers as helpers

argument_spec = {
Expand Down
2 changes: 0 additions & 2 deletions library/cartridge_check_cluster_issues.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3

from ansible.module_utils.helpers import Helpers as helpers

argument_spec = {
Expand Down
2 changes: 0 additions & 2 deletions library/cartridge_check_instance_not_running.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3

from ansible.module_utils.helpers import Helpers as helpers

argument_spec = {
Expand Down
2 changes: 0 additions & 2 deletions library/cartridge_check_instance_state.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3

from ansible.module_utils.helpers import Helpers as helpers

argument_spec = {
Expand Down
2 changes: 0 additions & 2 deletions library/cartridge_check_members_alive.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3

from ansible.module_utils.helpers import Helpers as helpers

argument_spec = {
Expand Down
2 changes: 0 additions & 2 deletions library/cartridge_check_members_status_alive.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3

from ansible.module_utils.helpers import Helpers as helpers

argument_spec = {
Expand Down
2 changes: 0 additions & 2 deletions library/cartridge_configure_app_config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3

from ansible.module_utils.helpers import Helpers as helpers

argument_spec = {
Expand Down
2 changes: 0 additions & 2 deletions library/cartridge_configure_auth.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3

from ansible.module_utils.helpers import Helpers as helpers

argument_spec = {
Expand Down
2 changes: 0 additions & 2 deletions library/cartridge_configure_failover.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3

from ansible.module_utils.helpers import Helpers as helpers

argument_spec = {
Expand Down
2 changes: 0 additions & 2 deletions library/cartridge_connect_to_membership.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3

from ansible.module_utils.helpers import Helpers as helpers

argument_spec = {
Expand Down
2 changes: 0 additions & 2 deletions library/cartridge_edit_topology.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3

import time

from ansible.module_utils.helpers import Helpers as helpers
Expand Down
2 changes: 0 additions & 2 deletions library/cartridge_eval.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3

from ansible.module_utils.helpers import Helpers as helpers

argument_spec = {
Expand Down
2 changes: 0 additions & 2 deletions library/cartridge_failover_promote.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/python3

from ansible.module_utils.helpers import Helpers as helpers

argument_spec = {
Expand Down
2 changes: 0 additions & 2 deletions library/cartridge_get_alive_not_expelled_instance.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3

import socket

from ansible.module_utils.helpers import Helpers as helpers
Expand Down
2 changes: 0 additions & 2 deletions library/cartridge_get_control_instance.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3

from ansible.module_utils.helpers import Helpers as helpers

argument_spec = {
Expand Down
2 changes: 0 additions & 2 deletions library/cartridge_get_disabled_instances.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3

from ansible.module_utils.helpers import Helpers as helpers

argument_spec = {
Expand Down
2 changes: 0 additions & 2 deletions library/cartridge_get_dist_dirs_to_remove.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3

import os
import re

Expand Down
2 changes: 0 additions & 2 deletions library/cartridge_get_facts_for_machines.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3

from ansible.module_utils.helpers import Helpers as helpers

argument_spec = {
Expand Down
2 changes: 0 additions & 2 deletions library/cartridge_get_instance_info.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3

import os

from ansible.module_utils.helpers import Helpers as helpers
Expand Down
2 changes: 0 additions & 2 deletions library/cartridge_get_needs_restart.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3

import os

from ansible.module_utils.helpers import Helpers as helpers
Expand Down
2 changes: 0 additions & 2 deletions library/cartridge_get_package_info.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3

import os
import re
import subprocess
Expand Down
2 changes: 0 additions & 2 deletions library/cartridge_get_scenario_steps.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3

import os

from ansible.module_utils.helpers import Helpers as helpers
Expand Down
2 changes: 0 additions & 2 deletions library/cartridge_get_systemd_units_info.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3

import os

from ansible.module_utils.basic import AnsibleModule
Expand Down
2 changes: 0 additions & 2 deletions library/cartridge_patch_instance_in_runtime.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3

from copy import deepcopy

from ansible.module_utils.helpers import Helpers as helpers
Expand Down
2 changes: 0 additions & 2 deletions library/cartridge_validate_config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env python3

import os
import re

Expand Down
2 changes: 1 addition & 1 deletion tasks/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

- name: 'Check that OS family is supported'
assert:
that: ansible_os_family in ["RedHat", "Debian", "Altlinux"]
that: ansible_os_family in ["RedHat", "Debian", "Altlinux", "Astra Linux (Orel)"]
fail_msg: 'Deploy to {{ ansible_os_family }} distributions is not supported yet'
quiet: true
when: ansible_os_family is defined
Expand Down