From 29492e94421ccf27535dc6a55f0ae30a42191c58 Mon Sep 17 00:00:00 2001 From: Adw8 Date: Fri, 20 Sep 2024 14:33:39 +0530 Subject: [PATCH] Add steps to reserve authority --- service-provider-setup/.gitignore | 1 + service-provider-setup/run-laconic-console.yml | 9 +++++++++ service-provider-setup/webapp-vars.example.yml | 1 + 3 files changed, 11 insertions(+) create mode 100644 service-provider-setup/webapp-vars.example.yml diff --git a/service-provider-setup/.gitignore b/service-provider-setup/.gitignore index 0d0eae9..ccc813f 100644 --- a/service-provider-setup/.gitignore +++ b/service-provider-setup/.gitignore @@ -1,3 +1,4 @@ dns-vars.yml k8s-vars.yml container-vars.yml +webapp-vars.yml diff --git a/service-provider-setup/run-laconic-console.yml b/service-provider-setup/run-laconic-console.yml index 037606b..9aee5c7 100644 --- a/service-provider-setup/run-laconic-console.yml +++ b/service-provider-setup/run-laconic-console.yml @@ -4,6 +4,9 @@ environment: PATH: "{{ ansible_env.PATH }}:/home/{{ansible_user}}/bin" + vars_files: + - webapp-vars.yml + tasks: - name: Clone the stack repo command: laconic-so fetch-stack git.vdb.to/cerc-io/testnet-laconicd-stack --pull @@ -64,3 +67,9 @@ - name: Start the laconic console deployment with updated config command: laconic-so deployment --dir laconic-console-deployment start + + - name: Reserve an authority + command: laconic-so deployment --dir laconic-console-deployment exec cli "laconic registry authority reserve {{authority_name}}" + + - name: Set authority using bond id + command: laconic-so deployment --dir laconic-console-deployment exec cli "laconic registry authority bond set {{authority_name}} {{BOND_ID}}" diff --git a/service-provider-setup/webapp-vars.example.yml b/service-provider-setup/webapp-vars.example.yml new file mode 100644 index 0000000..2d81901 --- /dev/null +++ b/service-provider-setup/webapp-vars.example.yml @@ -0,0 +1 @@ +authority_name: ""