asagage.orion-node-manage
orion-node-manage
=========
This role provides the orion_node_manage module, which is used for managing nodes in Orion. You can unmanage, remanage, or decommission nodes with it. It's useful for stopping alerts during maintenance of systems managed by Orion. For more details, check the module file at ./library/orion_node_manage.py
.
Requirements
This module will install all the necessary pip packages that it needs.
Example Playbook
It's recommended to run this on your local machine like this:
- name: Setup Local Solarwinds
hosts: localhost
gather_facts: no
roles:
- { role: asagage.orion-node-manage }
- name: Solarwinds Manage Nodes
hosts: all
tasks:
- name: Unmanage node via IP Address
local_action:
module: orion_node_manage
ip_address: hostvars[inventory_hostname]['ansible_default_ipv4']['address']
state: unmanaged
username: "{{ sw_username }}"
password: "{{ sw_password }}"
hostname: "{{ sw_hostname }}"
- name: Unmanage node via DNS Name
local_action:
module: orion_node_manage
dns_name: "{{inventory_hostname}}"
state: unmanaged
username: "{{ sw_username }}"
password: "{{ sw_password }}"
hostname: "{{ sw_hostname }}"
- name: Remanage node via IP Address
local_action:
module: orion_node_manage
ip_address: hostvars[inventory_hostname]['ansible_default_ipv4']['address']
state: managed
username: "{{ sw_username }}"
password: "{{ sw_password }}"
hostname: "{{ sw_hostname }}"
- name: Remanage node via DNS Name
local_action:
module: orion_node_manage
dns_name: "{{inventory_hostname}}"
state: managed
username: "{{ sw_username }}"
password: "{{ sw_password }}"
hostname: "{{ sw_hostname }}"
- name: Decommission node via IP Address
local_action:
module: orion_node_manage
ip_address: hostvars[inventory_hostname]['ansible_default_ipv4']['address']
state: decommissioned
username: "{{ sw_username }}"
password: "{{ sw_password }}"
hostname: "{{ sw_hostname }}"
License
MIT
Author Information
Asa Gage @asagage
Informazioni sul progetto
Provides a module to manage/unmanage nodes in Solarwinds Orion
Installa
ansible-galaxy install asagage.orion-node-manage
Licenza
mit
Download
35.8k
Proprietario