From ebe6a3cbd793e5f482a4510f4a75dad50d612674 Mon Sep 17 00:00:00 2001 From: Adw8 Date: Tue, 15 Oct 2024 15:18:24 +0530 Subject: [PATCH] Add vars for handling auction requests --- service-provider-setup/README.md | 20 ++++++++++--------- service-provider-setup/setup-dns.yml | 2 +- .../configs/webapp-deployer-config.env.j2 | 2 ++ .../vars/k8s-vars.example.yml | 1 - .../vars/webapp-vars.example.yml | 2 ++ 5 files changed, 16 insertions(+), 11 deletions(-) diff --git a/service-provider-setup/README.md b/service-provider-setup/README.md index 1715d3d..8b2f343 100644 --- a/service-provider-setup/README.md +++ b/service-provider-setup/README.md @@ -96,12 +96,12 @@ To get started, follow the [installation](../README.md#installation) guide to se full_domain: "" # eg: laconic.com subdomain_prefix: "" # eg: lcn-cad service_provider_ip: "" # eg: 23.111.78.179 - do_api_token: "" # Digital Ocean access token that you generated, eg: dop_v1... + do_api_token: "" # DigitalOcean access token that you generated, eg: dop_v1... # vars/gpg-vars.yml - gpg_user_name: "" # Full name of the user for the GPG key - gpg_user_email: "" # Email address associated with the GPG key - gpg_passphrase: "" # Passphrase for securing 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_passphrase: "" # passphrase for securing the GPG key # vars/k8s-vars.yml target_host: "deployment_host" @@ -118,12 +118,14 @@ To get started, follow the [installation](../README.md#installation) guide to se chain_id: "" # chain id to use for the Laconic chain # vars/webapp-vars.yml - authority_name: "" # eg: my-org-name - cpu_reservation: "" # Minimum number of cpu cores to be used, eg: 2 - memory_reservation: "" # Minimum amount of memory in GB to be used, eg: 4G - cpu_limit: "" # Maximum number of cpu cores to be used, eg: 6 - memory_limit: "" # Maximum amount of memory in GB to be used, eg: 8G + authority_name: "" # eg: my-org-name + cpu_reservation: "" # minimum number of cpu cores to be used, eg: 2 + memory_reservation: "" # minimum amount of memory in GB to be used, eg: 4G + cpu_limit: "" # maximum number of cpu cores to be used, eg: 6 + memory_limit: "" # 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 + handle_auction_requests: "" # whether the webapp deployer should handle deployment auction requests, eg: false + auction_bid_amount: "" # bid amount for deployment auctions in alnt, eg: 50000 ``` - Update the [`hosts.ini`](./hosts.ini) file: diff --git a/service-provider-setup/setup-dns.yml b/service-provider-setup/setup-dns.yml index 03f92b5..fc46b44 100644 --- a/service-provider-setup/setup-dns.yml +++ b/service-provider-setup/setup-dns.yml @@ -119,4 +119,4 @@ data: "{{ subdomain_prefix }}-cluster-control.{{ full_domain }}" domain: "{{ full_domain }}" type: CNAME - ttl: 43200 \ No newline at end of file + ttl: 43200 diff --git a/service-provider-setup/templates/configs/webapp-deployer-config.env.j2 b/service-provider-setup/templates/configs/webapp-deployer-config.env.j2 index d769a9a..4c6d076 100644 --- a/service-provider-setup/templates/configs/webapp-deployer-config.env.j2 +++ b/service-provider-setup/templates/configs/webapp-deployer-config.env.j2 @@ -26,3 +26,5 @@ export OPENPGP_PASSPHRASE="{{ deployer_gpg_passphrase }}" export DEPLOYER_STATE="srv-test/deployments/autodeploy.state" export UNDEPLOYER_STATE="srv-test/deployments/autoundeploy.state" export UPLOAD_DIRECTORY="srv-test/uploads" +export HANDLE_AUCTION_REQUESTS={{ handle_auction_requests }} +export AUCTION_BID_AMOUNT={{ auction_bid_amount }} diff --git a/service-provider-setup/vars/k8s-vars.example.yml b/service-provider-setup/vars/k8s-vars.example.yml index 544cfdb..78e06d6 100644 --- a/service-provider-setup/vars/k8s-vars.example.yml +++ b/service-provider-setup/vars/k8s-vars.example.yml @@ -1,4 +1,3 @@ -target_host: "deployment_host" gpg_key_id: "{{ sec_key_id }}" vault_passphrase: "{{ gpg_passphrase }}" org_id: "" diff --git a/service-provider-setup/vars/webapp-vars.example.yml b/service-provider-setup/vars/webapp-vars.example.yml index 491192c..cf050d3 100644 --- a/service-provider-setup/vars/webapp-vars.example.yml +++ b/service-provider-setup/vars/webapp-vars.example.yml @@ -6,3 +6,5 @@ memory_reservation: "" cpu_limit: "6" memory_limit: "8G" deployer_gpg_passphrase: "" +handle_auction_requests: "false" +auction_bid_amount: "0"