nabarun
18df60a291
Part of [Service Provider setup](https://www.notion.so/Service-provider-setup-a09e2207e1f34f3a847f7ce9713b7ac5) - Added ansible playbooks for: - Adding a new user with passwordless sudo - Configuring DNS records - Setting up the system with required packages and gpg key - Deploying k8s - Setting up container registry - Setting up laconicd and laconic-console - Setting up and starting webapp-deployer-api and webapp-deployer-ui - TODOs: - Mount gpg keys in webapp-deployer-api container Co-authored-by: Adw8 <adwaitgharpure@gmail.com> Reviewed-on: #10
34 lines
1.4 KiB
YAML
34 lines
1.4 KiB
YAML
- name: Setup and run fixturnet-laconicd-stack
|
|
hosts: "{{ target_host }}"
|
|
|
|
environment:
|
|
PATH: "{{ ansible_env.PATH }}:/home/{{ansible_user}}/bin"
|
|
|
|
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 over 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: Start the deployment
|
|
command: laconic-so deployment --dir fixturenet-laconicd-deployment start
|