Skip to content

Commit 1a81180

Browse files
committed
Mkdocs
1 parent 7b94174 commit 1a81180

6 files changed

Lines changed: 570 additions & 0 deletions

File tree

docs/dev.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
## Contributions
2+
3+
If you wish to contribute code, please consider the following:
4+
5+
* Code should be reasonably PEP8-like. I'm not too strict on this.
6+
* One logical change per merge request.
7+
* By putting in a merge request or putting code in comments, you automatically
8+
grant me permission to include this code in ansible-cmdb under the license
9+
(GPLv3) that ansible-cmdb uses. The copyright for contributed code is
10+
retained by the contributor.
11+
* Please don't be disappointed or angry if your contributions end up unused.
12+
It's not that they aren't appreciated, but I can be somewhat strict when it
13+
comes to code quality, feature creep, etc.
14+
15+
When in doubt, just open a pull request and post a comment on what you're
16+
unclear of, and we'll figure it out.
17+
18+
19+
# License
20+
21+
Ansible-cmdb is licensed under the GPLv3:
22+
23+
This program is free software: you can redistribute it and/or modify
24+
it under the terms of the GNU General Public License as published by
25+
the Free Software Foundation, either version 3 of the License, or
26+
(at your option) any later version.
27+
28+
This program is distributed in the hope that it will be useful,
29+
but WITHOUT ANY WARRANTY; without even the implied warranty of
30+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31+
GNU General Public License for more details.
32+
33+
You should have received a copy of the GNU General Public License
34+
along with this program. If not, see <http://www.gnu.org/licenses/>.
35+
36+
For the full license, see the LICENSE file.
37+
38+
# History
39+
40+
Ansible-cmdb started as a short Python script, which I [blogged
41+
about](http://www.electricmonk.nl/log/2015/01/21/host-inventory-overview-using-ansibles-facts/).
42+
43+
[Cris van Pelt](https://melkfl.es/) then took that and expanded it into a HTML
44+
page. Eventually I forked it to Github and made it public, adding features.
45+
[Many people collaborated](https://github.com/fboender/ansible-cmdb/graphs/contributors) to
46+
make Ansible-cmdb into what it is today.

docs/faq.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## Solaris machines have no disk information
2+
3+
Ansible currently does not include disk size information for Solaris hosts. As
4+
such, we can't include it in the output of Ansible-cmdb. See issue #24 for more
5+
information.
6+

docs/index.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
## About
2+
3+
[Ansible-cmdb](https://github.com/fboender/ansible-cmdb) takes the output of
4+
Ansible's [fact
5+
gathering](http://docs.ansible.com/ansible/latest/modules/setup_module.html)
6+
and converts it into a static HTML overview page (and other things) containing
7+
system configuration information.
8+
9+
It supports multiple types of output (html, csv, sql, etc) and extending
10+
information gathered by Ansible with custom data. For each host it also shows
11+
the groups, host variables, custom variables and machine-local facts.
12+
13+
## Example output
14+
15+
![](https://raw.githubusercontent.com/fboender/ansible-cmdb/master/contrib/screenshot-overview.png)
16+
17+
![](https://raw.githubusercontent.com/fboender/ansible-cmdb/master/contrib/screenshot-detail.png)
18+
19+
[HTML example](https://rawgit.com/fboender/ansible-cmdb/master/example/html_fancy.html) output.
20+
21+
## Output formats
22+
23+
Supported output formats / templates:
24+
25+
* Fancy HTML (`--template html_fancy`), as seen in the screenshots above.
26+
* Fancy HTML Split (`--template html_fancy_split`), with each host's details
27+
in a separate file (for large number of hosts).
28+
* CSV (`--template csv`), the trustworthy and flexible comma-separated format.
29+
* JSON (`--template json`), a dump of all facts in JSON format.
30+
* Markdown (`--template markdown`), useful for copy-pasting into Wiki's and
31+
such.
32+
* Markdown Split ('--template markdown_split'), with each host's details
33+
in a seperate file (for large number of hosts).
34+
* SQL (`--template sql`), for importing host facts into a (My)SQL database.
35+
* Plain Text table (`--template txt_table`), for the console gurus.
36+
* and of course, any custom template you're willing to make.

docs/installation.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
## Requirements
2+
3+
Ansible-cmdb requires **Python v2.7+ / 3.0+**.
4+
5+
In theory, it should work on any system that can run Python, including BSD,
6+
Linux, Windows, Solaris and MacOS. In practice, ansible-cmdb is developed on
7+
Ubuntu 16.04 and tested on the latest stable versions of Debian, Ubuntu and
8+
Centos.
9+
10+
## Installation
11+
12+
13+
Ansible-cmdb can be installed using `pip`, the [Python package
14+
manager](https://pypi.org/project/pip/). There are also stand-alone packages
15+
for various Linux distributions. Alternatively, you can use brew or plain old
16+
`make install`.
17+
18+
### Through Pip
19+
20+
For **installation via Pip**:
21+
22+
Install `pip` [for your distribution](https://packaging.python.org/install_requirements_linux/)
23+
if you don't have it yet.
24+
25+
Install Ansible-cmdb through Pip:
26+
27+
sudo pip install ansible-cmdb
28+
29+
You can also upgrade Ansible-cmdb through Pip:
30+
31+
sudo pip install --upgrade ansible-cmdb
32+
33+
### Through distribution packages
34+
35+
Get the package for your distribution from the [Releases
36+
page](https://github.com/fboender/ansible-cmdb/releases) (Not required for
37+
MacOS X install)
38+
39+
For **Debian / Ubuntu** systems:
40+
41+
sudo dpkg -i ansible-cmdb*.deb
42+
43+
For **Redhat / Centos** systems:
44+
45+
sudo yum --disablerepo=* install ansible-cmdb*.rpm
46+
47+
For **Arch** systems:
48+
49+
[aur/ansible-cmdb](https://aur.archlinux.org/packages/ansible-cmdb/), but it
50+
is out-of-date.
51+
52+
### For other systems
53+
54+
For **MacOS X** systems:
55+
56+
brew install ansible-cmdb
57+
58+
For **Other** systems:
59+
60+
tar -vxzf ansible-cmdb*.tar.gz
61+
cd ansible-cmdb*
62+
sudo make install
63+
64+
Installation from **Git** repository:
65+
66+
git clone git@github.com:fboender/ansible-cmdb.git
67+
cd ansible-cmdb
68+
sudo make install
69+
70+

0 commit comments

Comments
 (0)