Skip to content

Instantly share code, notes, and snippets.

@anthosz
anthosz / pepper_format.py
Created March 15, 2021 14:13 — forked from bbinet/pepper_format.py
Use salt outputters to format pepper output, see https://github.com/saltstack/pepper/issues/3
#!/home/bruno/.virtualenvs/salt/bin/python
"""
This script formats pepper output using salt outputters.
It can both format sync and async jobs, and can be used in the following ways:
```
$ pepper \* state.sls core | pepper_format.py -o highstate
$ pepper --client=local_async \* state.highstate | pepper_format.py
$ pepper_format.py 20170504160400750792
```
provider "github" {
token = "XXXXXXXXXX"
organization = "vthtest"
}
resource "github_team" "team1" {
name = "team1"
description = "Some cool team"
privacy = "closed"
}