https://github.com/devops-rob/boundary-census
https://github.com/devops-rob/boundary-census
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/devops-rob/boundary-census
- Owner: devops-rob
- Created: 2023-03-02T11:45:41.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-13T11:10:24.000Z (almost 3 years ago)
- Last Synced: 2025-04-08T22:01:57.595Z (10 months ago)
- Language: Go
- Size: 8.33 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Boundary Census
## Configuration
The configuration file for the server is specified as HCL, below is an example config file that contains all the possible
fields.
```hcl
config "controller" {
nomad {
address = "http://localhost:4646"
token = "abc123"
region = "myregion"
namespace = "mynamespace"
}
boundary {
username = "nic"
password = "password"
address = "http://myaddress.com"
org_id = "myorg"
auth_method_id = "123"
default_project = "hashicorp"
default_groups = ["developers"]
}
}
```
## Mocks
To re-generate the mock used for testing run the following command:
```shell
make generate_mocks
```
## Setup Local Nomad, Boundary, Consul
To setup and configure a local Nomad, Boundary, and Consul server use the following command:
```shell
shipyard run ./shipyard
```
You can determine the local addresses for the Boundary, Consul, and Nomad clusters by running:
```
shipyard output
```
These can also be set as environment variables with the following command:
```
eval $(shipyard env)
```
## Running
To run the server you can use the following command:
```shell
go run main.go -config=./example_config.hcl
```