Add ansible playbook to automate service provider setup #10
1
service-provider-setup/.gitignore
vendored
1
service-provider-setup/.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
dns-vars.yml
|
dns-vars.yml
|
||||||
k8s-vars.yml
|
k8s-vars.yml
|
||||||
container-vars.yml
|
container-vars.yml
|
||||||
|
webapp-vars.yml
|
||||||
|
@ -4,6 +4,9 @@
|
|||||||
environment:
|
environment:
|
||||||
PATH: "{{ ansible_env.PATH }}:/home/{{ansible_user}}/bin"
|
PATH: "{{ ansible_env.PATH }}:/home/{{ansible_user}}/bin"
|
||||||
|
|
||||||
|
vars_files:
|
||||||
|
- webapp-vars.yml
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Clone the stack repo
|
- name: Clone the stack repo
|
||||||
command: laconic-so fetch-stack git.vdb.to/cerc-io/testnet-laconicd-stack --pull
|
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
|
- name: Start the laconic console deployment with updated config
|
||||||
command: laconic-so deployment --dir laconic-console-deployment start
|
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}}"
|
||||||
|
1
service-provider-setup/webapp-vars.example.yml
Normal file
1
service-provider-setup/webapp-vars.example.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
authority_name: ""
|
Loading…
Reference in New Issue
Block a user