Ansible "CMDB" "Turn" of the plugin

Source: Internet
Author: User

GitHub Address: Https://github.com/fboender/ansible-cmdb

Gathering information from facts, generating a host overview

Installation
wget https://github.com/fboender/ansible-cmdb/releases/download/1.17/ansible-cmdb-1.17.tar.gztar zxf ansible-cmdb-1.17.tar.gz cd ansible-cmdb-1.17make install
Use

Generate facts information for all hosts

out/ all

Build a Web page

out/ > overview.html

Paste_image.png

The default template is html_fancy and the file is stored in/USR/LOCAL/LIB/ANSIBLE-CMDB/ANSIBLECMDB/DATA/TPL/HTML_FANCY.TPL

If facts uses a local cache,-f specifies the cache directory.

/path/to/facts/dir > overview.html

The ansible host information is counted in the form of the assets list.
Ansible-cmdb-t txt_table--columns Name,os,ip,mem,cpus out/


Paste_image.png

Output host information in CSV format

ansible-cmdb -t csv  -i hosts out/

Paste_image.png

Output SQL file, import data to MySQL or SQLite

ansible-cmdb -t sql -i hosts out/

 转自

"CMDB" of the Ansible plugin-Pinterest
http://www.jianshu.com/p/19b8d185c770

Ansible "CMDB" "Turn" of the plugin

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.