Update doc
This commit is contained in:
parent
a2d9ffab99
commit
e2fd9da8ae
1 changed files with 19 additions and 3 deletions
22
README.md
22
README.md
|
@ -13,15 +13,31 @@ and SSH is not available, not installable or not allowed.
|
|||
|
||||
### Production
|
||||
|
||||
Adjust your environment variables in .env
|
||||
Adjust your environment variables in the `.env` file
|
||||
|
||||
TF_VAR_gandi_key="xxxxxxxx"
|
||||
TF_VAR_ssh_private_key="$HOME/.ssh/path/to/key"
|
||||
TF_VAR_ssh_public_key="$HOME/.ssh/path/to/key.pub"
|
||||
TF_VAR_domain_name="example.com"
|
||||
ANSIBLE_HOST_KEY_CHECKING=False
|
||||
ANSIBLE_VAULT_PASSWORD_FILE="$HOME/path/to/passphrase"
|
||||
|
||||
And load it
|
||||
|
||||
source ../.env
|
||||
|
||||
Then create the infrastructure:
|
||||
|
||||
cd terraform/
|
||||
terraform plan
|
||||
terraform apply
|
||||
cd ..
|
||||
|
||||
cd ../ansible
|
||||
And install everything:
|
||||
|
||||
cd ansible
|
||||
ansible-playbook -i inventories/terraform playbook.yml
|
||||
|
||||
cd ..
|
||||
|
||||
## Usage
|
||||
|
||||
|
|
Loading…
Reference in a new issue