Initial collection structure
Migrated from legacy playbook repo into Ansible collection format: Roles (171 total): - common: 44 roles (fact gathering, SSH setup, utilities) - configuration: 32 roles (system config, networking, satellite) - provisioning: 16 roles (VMware, Azure, physical server deployment) - security: 15 roles (OpenSCAP hardening, certificates, AD integration) - monitoring: 12 roles (Zabbix, logging agents, metrics) - networking: 12 roles (DNS, DHCP, network interfaces) - satellite: 4 roles (Pulp/Satellite management) - misc: 36 roles (various utilities) Playbooks (159 total): - provisioning: 14 playbooks - azure: 13 playbooks - configuration: 22 playbooks - maintenance: 10 playbooks - security: 10 playbooks - monitoring: 9 playbooks - vcenter: 6 playbooks - networking: 7 playbooks - misc: 65 playbooks
This commit is contained in:
39
roles/misc/upgrade-gluster/README.md
Normal file
39
roles/misc/upgrade-gluster/README.md
Normal file
@@ -0,0 +1,39 @@
|
||||
Pre-Gluster upgrade
|
||||
=========
|
||||
|
||||
This role is designed to ease the upgrade process. It shuts down Gluster "properly" so it can be upgraded using yum.
|
||||
|
||||
Requirements
|
||||
------------
|
||||
|
||||
No requirements, uses Systemd and Command modules.
|
||||
|
||||
Role Variables
|
||||
--------------
|
||||
|
||||
No variables.
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
It's suggested you run the [yum-update role](https://github.EXAMPLE-CORP.COM/Linux/ansible-playbooks/tree/master/roles/yum-update) afterwards
|
||||
|
||||
Example Playbook
|
||||
----------------
|
||||
|
||||
- hosts: all
|
||||
become: yes
|
||||
become_method: sudo
|
||||
roles:
|
||||
- upgrade-gluster
|
||||
- yum-update
|
||||
|
||||
License
|
||||
-------
|
||||
|
||||
BSD
|
||||
|
||||
Author Information
|
||||
------------------
|
||||
|
||||
Created by the UFST Linux team
|
||||
2
roles/misc/upgrade-gluster/defaults/main.yml
Normal file
2
roles/misc/upgrade-gluster/defaults/main.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
# defaults file for upgrade-gluster
|
||||
2
roles/misc/upgrade-gluster/handlers/main.yml
Normal file
2
roles/misc/upgrade-gluster/handlers/main.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
# handlers file for upgrade-gluster
|
||||
57
roles/misc/upgrade-gluster/meta/main.yml
Normal file
57
roles/misc/upgrade-gluster/meta/main.yml
Normal file
@@ -0,0 +1,57 @@
|
||||
galaxy_info:
|
||||
author: your name
|
||||
description: your description
|
||||
company: your company (optional)
|
||||
|
||||
# If the issue tracker for your role is not on github, uncomment the
|
||||
# next line and provide a value
|
||||
# issue_tracker_url: http://example.com/issue/tracker
|
||||
|
||||
# Some suggested licenses:
|
||||
# - BSD (default)
|
||||
# - MIT
|
||||
# - GPLv2
|
||||
# - GPLv3
|
||||
# - Apache
|
||||
# - CC-BY
|
||||
license: license (GPLv2, CC-BY, etc)
|
||||
|
||||
min_ansible_version: 1.2
|
||||
|
||||
# If this a Container Enabled role, provide the minimum Ansible Container version.
|
||||
# min_ansible_container_version:
|
||||
|
||||
# Optionally specify the branch Galaxy will use when accessing the GitHub
|
||||
# repo for this role. During role install, if no tags are available,
|
||||
# Galaxy will use this branch. During import Galaxy will access files on
|
||||
# this branch. If Travis integration is configured, only notifications for this
|
||||
# branch will be accepted. Otherwise, in all cases, the repo's default branch
|
||||
# (usually master) will be used.
|
||||
#github_branch:
|
||||
|
||||
#
|
||||
# platforms is a list of platforms, and each platform has a name and a list of versions.
|
||||
#
|
||||
# platforms:
|
||||
# - name: Fedora
|
||||
# versions:
|
||||
# - all
|
||||
# - 25
|
||||
# - name: SomePlatform
|
||||
# versions:
|
||||
# - all
|
||||
# - 1.0
|
||||
# - 7
|
||||
# - 99.99
|
||||
|
||||
galaxy_tags: []
|
||||
# List tags for your role here, one per line. A tag is a keyword that describes
|
||||
# and categorizes the role. Users find roles by searching for tags. Be sure to
|
||||
# remove the '[]' above, if you add tags to this list.
|
||||
#
|
||||
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
|
||||
# Maximum 20 tags per role.
|
||||
|
||||
dependencies: []
|
||||
# List your role dependencies here, one per line. Be sure to remove the '[]' above,
|
||||
# if you add dependencies to this list.
|
||||
21
roles/misc/upgrade-gluster/tasks/main.yml
Normal file
21
roles/misc/upgrade-gluster/tasks/main.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
# tasks file for upgrade-gluster
|
||||
- name: Stop Gluster Daemon
|
||||
systemd:
|
||||
name: glusterd
|
||||
state: stopped
|
||||
|
||||
- name: Kill abandoned glusterfs processes
|
||||
command: pkill glusterfs
|
||||
register: result
|
||||
failed_when: result is failed and result.stdout != ""
|
||||
|
||||
- name: Kill abandoned glusterfs daemon processes
|
||||
command: pkill glusterfsd
|
||||
register: result
|
||||
failed_when: result is failed and result.stdout != ""
|
||||
|
||||
- name: Kill abandoned gsync daemon processes
|
||||
command: pkill gsyncd.py
|
||||
register: result
|
||||
failed_when: result is failed and result.stdout != ""
|
||||
2
roles/misc/upgrade-gluster/tests/inventory
Normal file
2
roles/misc/upgrade-gluster/tests/inventory
Normal file
@@ -0,0 +1,2 @@
|
||||
localhost
|
||||
|
||||
5
roles/misc/upgrade-gluster/tests/test.yml
Normal file
5
roles/misc/upgrade-gluster/tests/test.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
- hosts: localhost
|
||||
remote_user: root
|
||||
roles:
|
||||
- upgrade-gluster
|
||||
2
roles/misc/upgrade-gluster/vars/main.yml
Normal file
2
roles/misc/upgrade-gluster/vars/main.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
# vars file for upgrade-gluster
|
||||
Reference in New Issue
Block a user