-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove controller ag-solo, as it is obsolete
- Loading branch information
1 parent
b2bb165
commit c698e4c
Showing
6 changed files
with
21 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 17 additions & 20 deletions
37
packages/deployment/ansible/roles/init-controller/tasks/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,26 @@ | ||
- name: Synchronize vat directory | ||
synchronize: | ||
src: "{{ APPDIR }}/lib/ag-solo/vats/" | ||
dest: /usr/src/ag-solo/lib/ag-solo/vats/ | ||
dirs: yes | ||
delete: yes | ||
mode: push | ||
|
||
- name: "Initialize {{ service }}" | ||
become: yes | ||
become_user: "{{ service }}" | ||
shell: | ||
cmd: "rm -rf controller && ag-solo init controller" | ||
chdir: "/home/{{ service }}" | ||
|
||
- name: "Ensure /home/{{ service }}/.ag-pserver/wwwroot/{{ CHAIN_NAME }} exists" | ||
become: yes | ||
become_user: "{{ service }}" | ||
file: | ||
path: "/home/{{ service }}/.ag-pserver/wwwroot/{{ CHAIN_NAME }}" | ||
state: directory | ||
|
||
- name: "Clone ag-cosmos-helper-statedir to pserver" | ||
- name: "Create provisioning mnemonic" | ||
delegate_to: localhost | ||
shell: | ||
cmd: "ag-cosmos-helper keys mnemonic | tee provisioning-mnemonic.txt" | ||
register: mnemonic | ||
|
||
- name: "Create {{ service }} ag-solo key" | ||
become: yes | ||
become_user: "{{ service }}" | ||
shell: | ||
cmd: "ag-cosmos-helper --home=.{{ service }}/ag-cosmos-helper-statedir --keyring-backend=test keys add ag-solo" | ||
stdin: "{{ mnemonic.stdout_lines }}" | ||
|
||
- name: "Create ag-cosmos-helper-address" | ||
become: yes | ||
become_user: "{{ service }}" | ||
delegate_to: "{{ inventory_hostname }}" | ||
synchronize: | ||
src: "/home/{{ service }}/controller/ag-cosmos-helper-statedir/" | ||
dest: "/home/{{ service }}/.ag-pserver/ag-cosmos-helper-statedir/" | ||
shell: | ||
cmd: "ag-cosmos-helper --home=.{{ service }}/ag-cosmos-helper-statedir \ | ||
--keyring-backend=test keys show -a ag-solo > .{{ service }}/ag-cosmos-helper-address" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
--- | ||
|
||
- name: start service | ||
service: "name={{service}} state=started" | ||
|
||
service: "name={{service}} state=started enabled=yes" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
--- | ||
|
||
- name: stop service | ||
service: "name={{service}} state=stopped" | ||
|
||
service: "name={{service}} state=stopped enabled=no" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters