Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonzeolla/policy-as-code
A Policy as Code lab
https://github.com/jonzeolla/policy-as-code
Last synced: about 6 hours ago
JSON representation
A Policy as Code lab
- Host: GitHub
- URL: https://github.com/jonzeolla/policy-as-code
- Owner: JonZeolla
- Created: 2023-10-21T22:36:35.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-01T02:42:37.000Z (8 months ago)
- Last Synced: 2024-04-01T03:39:24.308Z (8 months ago)
- Language: Shell
- Size: 136 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Policy as Code Lab
## Getting Started
Run the lab setup container.
```bash
docker run -it --network host -v /:/host jonzeolla/labs:policy-as-code
```You'll be prompted to provide your IP, and setup will continue automatically from there.
## Customizing
If you need to pass custom arguments to the `ansible-playbook` command in the `entrypoint.sh`, pass in the arguments as an env var named `ANSIBLE_CUSTOM_ARGS`.
You can specify a custom user by setting the `HOST_USER` environment variable inside the container.
Additionally, if you want to specify your IP non-interactively, pass in a `CLIENT_IP` environment variable.
## Updating
Standard updates are automated to run twice a week and open a PR if anything changes (via `task update`). If you need to rebase the branches of any related demo
repos (as defined under `hack/demo-repos.yml`) then run `task update-demo-repos`.