diff --git a/scripts/populate b/scripts/populate index bcf0345..9eb24c5 100755 --- a/scripts/populate +++ b/scripts/populate @@ -1,6 +1,27 @@ +#!/bin/sh + export VAULT_ADDR=http://127.0.0.1:8200 export VAULT_TOKEN=dev-only-token -vault kv put -mount secret /user @testdata/a.json -vault kv put -mount secret /creds @testdata/b.json -vault kv put -mount secret /azure/the @testdata/c.json -vault kv put -mount secret /yolo/swag @testdata/d.json + +echo '{ + "roles": ["reader", "writer"], + "token": "abc123", + "url": "https://example.com" +}' | + vault kv put -mount secret /user - +echo '{ + "client_id": "free", + "client_secret": "palestine" +}' | + vault kv put -mount secret /creds - +echo '{ + "user": "vim", + "password": "actually-emacs" +}' | + vault kv put -mount secret /azure/the - +echo '{ + "tenant-id": "oopa", + "client-id": "gangnamn", + "client-secret": "style" +}' | + vault kv put -mount secret /yolo/swag - diff --git a/testdata/a.json b/testdata/a.json deleted file mode 100644 index dd46f41..0000000 --- a/testdata/a.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "roles": ["reader", "writer"], - "token": "abc123", - "url": "https://example.com" -} diff --git a/testdata/b.json b/testdata/b.json deleted file mode 100644 index a09b2f1..0000000 --- a/testdata/b.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "client_id": "free", - "client_secret": "palestine" -} diff --git a/testdata/c.json b/testdata/c.json deleted file mode 100644 index 23651fa..0000000 --- a/testdata/c.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "user": "vim", - "password": "actually-emacs" -} diff --git a/testdata/d.json b/testdata/d.json deleted file mode 100644 index f577ece..0000000 --- a/testdata/d.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "tenant-id": "oopa", - "client-id": "gangnamn", - "client-secret": "style" -}