diff --git a/README.md b/README.md index b75546a5..74d4f1d2 100644 --- a/README.md +++ b/README.md @@ -52,8 +52,8 @@ Project status: **Alpha** (see [roadmap](#roadmap) below) - [x] CI/CD platform - [x] Private container registry - [x] Distributed storage +- [x] Support multiple environments (dev, stag, prod) - [ ] Monitoring and alerting 🚧 -- [ ] Support multiple environments (dev, stag, prod) 🚧 - [ ] Automated offsite backups 🚧 - [ ] Single sign-on 🚧 diff --git a/docs/src/deployment/configuration.md b/docs/src/deployment/configuration.md index e4d23791..989359b6 100644 --- a/docs/src/deployment/configuration.md +++ b/docs/src/deployment/configuration.md @@ -5,6 +5,22 @@ Because this repository ([khuedoan/homelab](https://github.com/khuedoan/homelab)) applies GitOps practices, it's the source of truth for my homelab, so you'll need to folk it to make it yours. +## Choose the environment + +| Environment | Branch | +| ----------- | ------ | +| Production | `master` | +| Staging | `stag` | +| Development | `dev` | + +For example, if you're trying out the dev VM, use the development environment: + +```sh +git checkout dev +``` + + + ## Run the configure script Run the following script to configure the homelab: diff --git a/metal/Vagrantfile b/metal/Vagrantfile index 069decc4..fb5cfc58 100644 --- a/metal/Vagrantfile +++ b/metal/Vagrantfile @@ -4,11 +4,9 @@ inventory = YAML.load_file(File.join(__dir__, './inventories/dev.yml')) group_vars = YAML.load_file(File.join(__dir__, './group_vars/all.yml')) # ANCHOR: vm_specs -# TODO This is ridiculous for a local development environment. -# After multi-env is supported, optimize it. -cpus = 4 -memory = "10240" -disk_size = "256GB" +cpus = 2 +memory = "8192" +disk_size = "128GB" # ANCHOR_END: vm_specs Vagrant.configure("2") do |config|