Add steps to clean up service provider setup #14

Merged
nabarun merged 6 commits from deep-stack/testnet-ops:ag-update-setup into main 2024-10-23 06:53:08 +00:00
6 changed files with 27 additions and 31 deletions
Showing only changes of commit 6d529c9c05 - Show all commits

View File

@ -33,39 +33,36 @@
```bash ```bash
# vars/dns-vars.yml # vars/dns-vars.yml
full_domain: "" # eg: laconic.com full_domain: "" # eg: laconic.com
subdomain_prefix: "" # eg: lcn-cad service_provider_ip: "" # eg: 23.111.78.179
service_provider_ip: "" # eg: 23.111.78.179 do_api_token: "" # DigitalOcean access token that you generated, eg: dop_v1...
do_api_token: "" # DigitalOcean access token that you generated, eg: dop_v1...
# vars/gpg-vars.yml # vars/gpg-vars.yml
gpg_user_name: "" # full name of the user for the GPG key gpg_user_name: "" # full name of the user for the GPG key
gpg_user_email: "" # email address associated with the GPG key gpg_user_email: "" # email address associated with the GPG key
gpg_passphrase: "" # passphrase for securing the GPG key gpg_passphrase: "" # passphrase for securing the GPG key
# vars/k8s-vars.yml # vars/k8s-vars.yml
target_host: "deployment_host" org_id: "" # eg: lcn
org_id: "" # eg: lcn location_id: "" # eg: cad
location_id: "" # eg: cad support_email: "" # eg: support@laconic.com
base_domain: "" # eg: laconic
support_email: "" # eg: support@laconic.com
# vars/container-vars.yml # vars/container-vars.yml
container_registry_username: "" # username to login to the container registry container_registry_username: "" # username to login to the container registry
container_registry_password: "" # password to login to the container registry container_registry_password: "" # password to login to the container registry
# vars/laconicd-vars.yml # vars/laconicd-vars.yml
chain_id: "" # chain id to use for the Laconic chain chain_id: "" # chain id to use for the Laconic chain
# vars/webapp-vars.yml # vars/webapp-vars.yml
authority_name: "" # eg: my-org-name authority_name: "" # eg: laconic-authority
cpu_reservation: "" # minimum number of cpu cores to be used, eg: 2 cpu_reservation: "1" # minimum number of cpu cores to be used, eg: 2
memory_reservation: "" # minimum amount of memory in GB to be used, eg: 4G memory_reservation: "2G" # minimum amount of memory in GB to be used, eg: 4G
cpu_limit: "" # maximum number of cpu cores to be used, eg: 6 cpu_limit: "6" # maximum number of cpu cores to be used, eg: 6
memory_limit: "" # maximum amount of memory in GB to be used, eg: 8G memory_limit: "8G" # maximum amount of memory in GB to be used, eg: 8G
deployer_gpg_passphrase: "" # passphrase for creating GPG key used by webapp-deployer, eg: SECRET deployer_gpg_passphrase: "" # passphrase for creating GPG key used by webapp-deployer, eg: SECRET
handle_auction_requests: "" # whether the webapp deployer should handle deployment auction requests, eg: true handle_auction_requests: "true" # whether the webapp deployer should handle deployment auction requests, eg: true
auction_bid_amount: "" # bid amount for deployment auctions in alnt, eg: 500000 auction_bid_amount: "100000" # bid amount for deployment auctions in alnt, eg: 500000
``` ```
- Update the [`hosts.ini`](./hosts.ini) file: - Update the [`hosts.ini`](./hosts.ini) file:

View File

@ -124,10 +124,10 @@
src: ./templates/k8s.yml.j2 src: ./templates/k8s.yml.j2
dest: "{{ ansible_env.HOME }}/service-provider-template/group_vars/{{ org_id }}_{{ location_id }}/k8s.yml" dest: "{{ ansible_env.HOME }}/service-provider-template/group_vars/{{ org_id }}_{{ location_id }}/k8s.yml"
- name: Copy wildcard-pwa-{{ base_domain }}.yaml to the remote VM - name: Copy wildcard template to the remote VM
template: template:
src: ./templates/wildcard-pwa-example.yml.j2 src: ./templates/wildcard-pwa-example.yml.j2
dest: "{{ ansible_env.HOME }}/service-provider-template/files/manifests/wildcard-pwa-{{ base_domain }}.yaml" dest: "{{ ansible_env.HOME }}/service-provider-template/files/manifests/wildcard-pwa-{{ full_domain | replace('.', '-') }}.yaml"
- name: Delete old wildcard-pwa file - name: Delete old wildcard-pwa file
file: file:

View File

@ -52,4 +52,4 @@ k8s_manifests:
# initiate wildcard cert # initiate wildcard cert
- name: pwa.{{ full_domain }} - name: pwa.{{ full_domain }}
type: file type: file
source: wildcard-pwa-{{ base_domain }}.yaml source: wildcard-pwa-{{ full_domain | replace('.', '-') }}.yaml

View File

@ -1,5 +1,5 @@
full_domain: "" full_domain: ""
subdomain_prefix: "" subdomain_prefix: "{{ org_id }}-{{ location_id }}"
subdomain_cluster_control: "{{ subdomain_prefix }}-cluster-control" subdomain_cluster_control: "{{ subdomain_prefix }}-cluster-control"
service_provider_ip: "" service_provider_ip: ""
do_api_token: "" do_api_token: ""

View File

@ -2,6 +2,5 @@ gpg_key_id: "{{ sec_key_id }}"
vault_passphrase: "{{ gpg_passphrase }}" vault_passphrase: "{{ gpg_passphrase }}"
org_id: "" org_id: ""
location_id: "" location_id: ""
base_domain: ""
support_email: "" support_email: ""
ansible_ssh_extra_args: '-o StrictHostKeyChecking=no' ansible_ssh_extra_args: '-o StrictHostKeyChecking=no'

View File

@ -1,10 +1,10 @@
ALICE_PK: "{{ ALICE_PK }}" ALICE_PK: "{{ ALICE_PK }}"
BOND_ID: "{{ BOND_ID }}" BOND_ID: "{{ BOND_ID }}"
authority_name: "" authority_name: ""
cpu_reservation: "" cpu_reservation: "1"
memory_reservation: "" memory_reservation: "2G"
cpu_limit: "6" cpu_limit: "6"
memory_limit: "8G" memory_limit: "8G"
deployer_gpg_passphrase: "" deployer_gpg_passphrase: ""
handle_auction_requests: "false" handle_auction_requests: "true"
auction_bid_amount: "0" auction_bid_amount: "100000"