Prathamesh Musale
2e0fbd82f1
Part of [Service Provider setup](https://www.notion.so/Service-provider-setup-a09e2207e1f34f3a847f7ce9713b7ac5) and [Service provider auctions for web deployments](https://www.notion.so/Service-provider-auctions-for-web-deployments-104a6b22d47280dbad51d28aa3a91d75) - Configure laconicd chain id - Configure whether deployer should handle auctions and amount to bid - Update playbook to issue wildcard cert on deploying k8s Co-authored-by: Adw8 <adwaitgharpure@gmail.com> Co-authored-by: Shreerang Kale <shreerangkale@gmail.com> Reviewed-on: #12 Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com> Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
42 lines
1.6 KiB
YAML
42 lines
1.6 KiB
YAML
- name: Setup and run fixturnet-laconicd-stack
|
|
hosts: "{{ target_host }}"
|
|
|
|
environment:
|
|
PATH: "{{ ansible_env.PATH }}:/home/{{ansible_user}}/bin"
|
|
|
|
vars_files:
|
|
- vars/laconicd-vars.yml
|
|
|
|
tasks:
|
|
- name: Clone the fixturenet-laconicd-stack repo
|
|
command: laconic-so fetch-stack git.vdb.to/cerc-io/fixturenet-laconicd-stack --pull
|
|
ignore_errors: yes
|
|
|
|
- name: Setup repos for fixturenet-laconicd
|
|
command: laconic-so --stack ~/cerc/fixturenet-laconicd-stack/stack-orchestrator/stacks/fixturenet-laconicd setup-repositories
|
|
|
|
- name: Build container images
|
|
command: laconic-so --stack ~/cerc/fixturenet-laconicd-stack/stack-orchestrator/stacks/fixturenet-laconicd build-containers --force-rebuild
|
|
|
|
- name: Generate spec file for laconicd deployment
|
|
template:
|
|
src: "./templates/specs/fixturenet-laconicd-spec.yml.j2"
|
|
dest: "fixturenet-laconicd-spec.yml"
|
|
|
|
- name: Check if the deployment directory exists
|
|
stat:
|
|
path: "fixturenet-laconicd-deployment"
|
|
register: deployment_dir
|
|
|
|
- name: Create the deployment from the spec file
|
|
command: laconic-so --stack ~/cerc/fixturenet-laconicd-stack/stack-orchestrator/stacks/fixturenet-laconicd deploy create --spec-file fixturenet-laconicd-spec.yml --deployment-dir fixturenet-laconicd-deployment
|
|
when: not deployment_dir.stat.exists
|
|
|
|
- name: Create laconicd config
|
|
template:
|
|
src: "./templates/configs/laconicd-config.env.j2"
|
|
dest: "fixturenet-laconicd-deployment/config.env"
|
|
|
|
- name: Start the deployment
|
|
command: laconic-so deployment --dir fixturenet-laconicd-deployment start
|