Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lenovo/ansible-role-lxca-inventory
Ansible Role to get inventory data of managed elements from Lenovo xClarity Administratr.
https://github.com/lenovo/ansible-role-lxca-inventory
Last synced: about 2 months ago
JSON representation
Ansible Role to get inventory data of managed elements from Lenovo xClarity Administratr.
- Host: GitHub
- URL: https://github.com/lenovo/ansible-role-lxca-inventory
- Owner: lenovo
- License: bsd-3-clause
- Created: 2018-03-14T13:15:14.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-03T06:46:36.000Z (over 1 year ago)
- Last Synced: 2024-07-18T01:13:59.190Z (3 months ago)
- Language: Python
- Size: 41 KB
- Stars: 3
- Watchers: 6
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.BSD
Awesome Lists containing this project
README
Ansible Role: Lenovo LXCA Inventory
=========Ansible Role to collect get inventory data of managed elements from Lenovo
xClarity Administratr.Requirements
------------- Ansible version 2.4.2 or later ([Ansible installation
documentation](http://docs.ansible.com/ansible/intro_installation.html))- Python Client for Lenovo xClarity Administratr.([LXCA Python Client
v2.5.0](https://github.com/lenovo/pylxca))pip install pylxca
Role Variables
--------------
Available variables are listed below, along with description:Variable | Description
--- | ---
uuid | uuid of device
id | id of job
update_list | update list for tasks
discover_ip | discover specific ipSupported Tags
--------------
Supported tags are listed below, along with description:tags | Description
--- | ---
chassis | chassis details
cmms | cmms details
nodes | nodes details
discover | discover using slp
fans | fans details
fanmuxes | fanmux details
jobs | job details
lxcalog | lxca log
powersupplies | powersupply details
scalablesystem | scalablesystem details
switches | switch details
tasks | task details and update
users | user details
ffdc | ffdc for uuidDependencies
------------Connectivity with Lenovo xClarity Administrator.
Example Playbook
----------------To execute an Ansible playbook, use the following command:
```
ansible-playbook -e "lxca_user= lxca_password=
lxca_url=https://" inventory.yml -vvvv
```
-vvv is an optional verbos command that helps identify what is happening during
playbook execution.- name: get nodes data from LXCA
hosts: localhost
connection: local
tasks:
- name: get nodes
pylxca_module:
login_user: "{{ lxca_user }}"
login_password: "{{ lxca_password }}"
auth_url: "{{ lxca_url }}"
command_options: nodes
register: rslt
tags:
- nodes