Add README for setting up DNS in DigitalOcean
This commit is contained in:
parent
e7791161ed
commit
1ca0c3798d
@ -1 +1,43 @@
|
|||||||
# service-provider-setup
|
# service-provider-setup
|
||||||
|
|
||||||
|
## Configure DNS
|
||||||
|
|
||||||
|
### Prerequisites
|
||||||
|
|
||||||
|
- Buy a domain and configure nameservers to DigitalOcean
|
||||||
|
|
||||||
|
- Generate a DigitalOcean access token
|
||||||
|
|
||||||
|
### Create DNS entries in DigitalOcean
|
||||||
|
|
||||||
|
- Copy the [`dns-vars.example.yml`](./dns-vars.example.yml) vars file
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cp dns-vars.example.yml dns-vars.yml
|
||||||
|
```
|
||||||
|
|
||||||
|
- Enter the `dns-vars.yml` file
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# primary domain for which DNS records will be managed
|
||||||
|
# eg: laconic.com
|
||||||
|
domain: ""
|
||||||
|
|
||||||
|
# specific prefix for subdomains
|
||||||
|
# eg: lcn-cad
|
||||||
|
subdomain_prefix: ""
|
||||||
|
|
||||||
|
# The IP address to be used for the A record of the cluster control machine
|
||||||
|
# eg: 23.111.78.179
|
||||||
|
cluster_control_ip: ""
|
||||||
|
|
||||||
|
# DigitalOcean access token
|
||||||
|
# eg: dop_v1...
|
||||||
|
do_api_token: ""
|
||||||
|
```
|
||||||
|
|
||||||
|
- Run the [`setup-dns.yml`](./setup-dns.yml) ansible playbook to create the necessary DNS entries in DigitalOcean
|
||||||
|
|
||||||
|
```bash
|
||||||
|
ansible-playbook setup-dns.yml
|
||||||
|
```
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
domain: ""
|
domain: ""
|
||||||
subdomain: ""
|
subdomain_prefix: ""
|
||||||
subdomain_cluster_control: "{{ subdomain }}-cluster-control"
|
subdomain_cluster_control: "{{ subdomain_prefix }}-cluster-control"
|
||||||
cluster_control_ip: ""
|
cluster_control_ip: ""
|
||||||
do_api_token: ""
|
do_api_token: ""
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
domain: "test.wireitin.com"
|
domain: "test.wireitin.com"
|
||||||
subdomain: "dss-ind"
|
subdomain_prefix: "dss-ind"
|
||||||
subdomain_cluster_control: "{{ subdomain }}-cluster-control"
|
subdomain_cluster_control: "{{ subdomain_prefix }}-cluster-control"
|
||||||
cluster_control_ip: "64.227.134.44"
|
cluster_control_ip: "64.227.134.44"
|
||||||
do_api_token: ""
|
do_api_token: ""
|
||||||
|
Loading…
Reference in New Issue
Block a user