Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jpmens/cattled
This is !NOCOWS for Ansible: a repo of a cattle daemon. a miniscule http server to test custom hardcoded credentials; you probably do NOT want this, particularly as it contains cows!
https://github.com/jpmens/cattled
Last synced: 1 day ago
JSON representation
This is !NOCOWS for Ansible: a repo of a cattle daemon. a miniscule http server to test custom hardcoded credentials; you probably do NOT want this, particularly as it contains cows!
- Host: GitHub
- URL: https://github.com/jpmens/cattled
- Owner: jpmens
- License: bsd-2-clause
- Created: 2021-11-14T08:31:46.000Z (almost 3 years ago)
- Default Branch: trunk
- Last Pushed: 2023-10-05T14:53:35.000Z (about 1 year ago)
- Last Synced: 2024-10-15T00:26:22.146Z (22 days ago)
- Language: Go
- Homepage:
- Size: 35.1 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## cattled
a miniscule http server for Ansible and AWX trainings in order to test the `uri` module and custom credentials.
```console
$ ansible alice -m uri -a "url=http://localhost:10000/cow"
alice | SUCCESS => {
"changed": false,
"connection": "close",
"content_length": "52",
"content_type": "application/json",
"cookies": {},
"cookies_string": "",
"date": "Sun, 14 Nov 2021 09:45:18 GMT",
"elapsed": 0,
"json": {
"breed": "Irish Moiled",
"id": 30,
"origin": "Ireland"
},
"msg": "OK (52 bytes)",
"redirected": false,
"status": 200,
"url": "http://localhost:10000/cow"
}
```### with basic auth (`/secret`)
return a `text/plain` payload which also contains the hostname
```console
$ curl -i -u cow:milk localhost:10000/secret
HTTP/1.1 200 OK
Content-Type: application/json
Date: Thu, 05 Oct 2023 14:49:37 GMT
Content-Length: 163{"url":"https://en.wikipedia.org/wiki/Hey_Diddle_Diddle","rhyme":"Hey diddle diddle, The cat and the fiddle, The cow jumped over the moon","instance":"rabbit"}
```