All Projects → jaimevalero → itop-utilities

jaimevalero / itop-utilities

Licence: Apache-2.0 License
Utilities scripts for itop, an open source cmdb. Empowers CMDB by connecting it to other system like Ansible.

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to itop-utilities

iTop-CN
iTop in chinese
Stars: ✭ 36 (-5.26%)
Mutual labels:  cmdb
ansible-yaml inventory
Ansible dynamic inventory reading the inventory from YAML file.
Stars: ✭ 19 (-50%)
Mutual labels:  ansible-inventory
rurality
开源运维平台设计及开发样例、CMS、RBAC、python开发教程、管理系统设计及开发样例、jenkinsfile(pipeline)/ansible使用教程,一切想到的,想不到的,应有尽有
Stars: ✭ 51 (+34.21%)
Mutual labels:  cmdb
inventoree
Inventoree leads you through the chaos of your infrastructure
Stars: ✭ 22 (-42.11%)
Mutual labels:  cmdb
ansible-dns-inventory
A dynamic inventory script for Ansible that uses DNS TXT records
Stars: ✭ 20 (-47.37%)
Mutual labels:  ansible-inventory
seal-vue
本项目为 https://github.com/hequan2017/seal 项目 前端vue版本 基于 iview-admin 2.5.0 支持 动态菜单 本项目已停止开发!因长时间未对代码进行维护,可能会造成项目在不同环境上无法部署、运行BUG等问题,请知晓!项目仅供参考!
Stars: ✭ 16 (-57.89%)
Mutual labels:  cmdb
introspector
A schema and set of tools for using SQL to query cloud infrastructure.
Stars: ✭ 61 (+60.53%)
Mutual labels:  cmdb
xcloud-dopaas
One stop solution of PaaS platform based on DevSecOps --- Based on SpringCloud/Docker/k8s/ServiceMesh(Istio), primary integrated modules: CMDB, Unified Continuous delivery of CI/CD (distributed compilation and deployment), IAM Certification Center, Unified monitoring center, Unified configuration center, Unified Distributed task scheduling cente…
Stars: ✭ 76 (+100%)
Mutual labels:  cmdb
cmdbApi
itop cmdb API
Stars: ✭ 13 (-65.79%)
Mutual labels:  cmdb
ansible-nutanix-inventory
A dynamic inventory script for Ansible that interacts with the Nutanix API
Stars: ✭ 23 (-39.47%)
Mutual labels:  ansible-inventory
syscmdb
syscmdb系统
Stars: ✭ 32 (-15.79%)
Mutual labels:  cmdb
itop FAQ
itop FAQ 中文常见问题列表
Stars: ✭ 20 (-47.37%)
Mutual labels:  cmdb
ansible-ssh
Script to connect to managed hosts using Ansible inventory and config.
Stars: ✭ 51 (+34.21%)
Mutual labels:  ansible-inventory
onix
A reactive configuration manager designed to support Infrastructure as a Code provisioning, and bi-directional configuration management providing a single source of truth across multi-cloud environments.
Stars: ✭ 89 (+134.21%)
Mutual labels:  cmdb
stree-index
使用物化路径+倒排索引实现的开源服务树核心组件
Stars: ✭ 13 (-65.79%)
Mutual labels:  cmdb
yaani
Yet another Ansible Netbox inventory
Stars: ✭ 12 (-68.42%)
Mutual labels:  ansible-inventory
seal
django-base-templates 主要为 django 开发DEMO, 支持 非前后端分离 和 前后端分离模式 。
Stars: ✭ 118 (+210.53%)
Mutual labels:  cmdb
ansible-pull-example
example skeleton repo for setting up ansible-pull infrastructure
Stars: ✭ 22 (-42.11%)
Mutual labels:  ansible-inventory
Ansible-inventory-file-examples
Examples and counter-examples of Ansible inventory files
Stars: ✭ 25 (-34.21%)
Mutual labels:  ansible-inventory
serveradmin
Configuration management database system of InnoGames
Stars: ✭ 40 (+5.26%)
Mutual labels:  cmdb

itop-utilities

Utilities scripts for itop, an open source cmdb.

Empowers CMDB by connectincg to other system like Ansible.

Script FromITOPtoAnsible.sh

This script pulls info from an ITOP cmdb to generate a JSON hosts list to be used as a Dynamic Inventory Source for ansible commands. This is very useful to perform operations on groups of hosts, according to your physical, logical or network infrastructure, or according your services, as it is defined on your cmdb.

For example, you can send commands to all machines of a given rack, or those plugged to a specific network device, or those having related open tickets. You have to define a set of hosts by using an OQL select statement.

Installation

As a prerequisite, you need an iTop instance, and an Ansible instance too, in the same or in different servers. Just copy the script to your ansible machine, in /etc/ansible, and made it executable.

 cd /etc/ansible
 wget --no-check-certificate https://github.com/jaimevalero78/itop-utilities/raw/master/FromITOPtoAnsible.sh  
 chmod +x /etc/ansible/FromITOPtoAnsible.sh

Also, you have to change the credentials for the itop instance in the script. The parameters you should change are:

# Parameters: Change this according to your itop credentials 

MY_USER=replace_for_your_itop_user
MY_PASS=replace_for_your_itop_password
ITOP_SERVER=replace_for_your_itop_server
INSTALLATION_DIRECTORY=itop-itsm
HTTPS=Y

Script parameters

Passed as enviroment variable

  • OQL = Sentence in OQL
  • FIELD = (optional) name of the field to be used as hostname

Script usage example

Perform a ping against all HP Server against the itop demo instance. http://goo.gl/FrOQdQ

cd /etc/ansible

export OQL="SELECT Server WHERE brand_name = 'HP'"
 
ansible all -i FromITOPtoAnsible.sh -m shell -m "ping" 

# The above command would try to access each of the server list : { "hosts" : [ "Server1" , "Server3" , "Server4" , "SRV1" , "SRV1" , "Web" ] }
# and try to login against it. 
# It will fail, of course. You have to configure the script to query your own itop and ansible instances!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].