mirror of
https://github.com/puppetlabs/infinitory.git
synced 2026-01-26 10:18:41 -05:00
14 lines
301 B
Python
Executable file
14 lines
301 B
Python
Executable file
#!/usr/bin/env python3
|
|
|
|
import sys
|
|
import subprocess
|
|
|
|
puppetdb = sys.argv[1]
|
|
token = sys.argv[2]
|
|
bucket = sys.argv[3]
|
|
|
|
# Generate the report
|
|
subprocess.check_call(
|
|
["infinitory", "--host", puppetdb, "--token", token, "--bucket", bucket,
|
|
"--output", "/output/infinitory"],
|
|
timeout=300)
|