mirror of
https://github.com/puppetlabs/infinitory.git
synced 2026-01-26 02:08:41 -05:00
(DIO-834) Refactor to use pdb queries, output to GCS Bucket
This commit is contained in:
parent
854daa0d46
commit
fd1ad61fce
9 changed files with 107 additions and 60 deletions
31
README.md
Normal file
31
README.md
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
SRE Inventory Report
|
||||
====================
|
||||
|
||||
Generate a report on SRE inventory, including hosts, roles, and
|
||||
services.
|
||||
|
||||
## Running in Docker
|
||||
|
||||
```
|
||||
docker run -e GOOGLE_APPLICATION_CREDENTIALS=$GOOGLE_APPLICATION_CREDENTIALS -e BUCKET=<GCP_BUCKET_NAME> -e TOKEN=<PDB_ACCESS_TOKEN> -v /tmp:/output:rw --add-host <pdb-host>:<pdb-hostip> infinitory-app
|
||||
```
|
||||
|
||||
Using `GOOGLE_APPLICATION_CREDENTIALS` may require an extra volume mount in some cases:
|
||||
|
||||
```
|
||||
-v /path/to/creds.json:/creds.json
|
||||
```
|
||||
|
||||
...where your ENV variable points to that file:
|
||||
|
||||
```
|
||||
export GOOGLE_APPLICATION_CREDENTIALS=/creds.json
|
||||
```
|
||||
|
||||
## Developing
|
||||
|
||||
Use python setup.py develop to install dependencies
|
||||
|
||||
Run in Dev:
|
||||
|
||||
bin/infinitory -h pdb.ops.puppetlabs.net -t <pdb-access-token> -o /tmp/output -b <gcs-bucket-name>
|
||||
Loading…
Add table
Add a link
Reference in a new issue