This repository has been archived by the owner on Aug 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add all-zones option for apply and upgrade commands
- Loading branch information
Showing
32 changed files
with
236 additions
and
175 deletions.
There are no files selected for viewing
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# using sail to do operations | ||
|
||
```bash | ||
$ sail list-components -p foobar | ||
|
||
$ sail conf-create -t mytarget -z myzone -p foobar --hosts 127.0.0.1 | ||
|
||
$ sail apply -t mytarget -z myzone | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
- name: foobar-api | ||
hosts: "{{ _ansiblepattern_foobar_api | default('foobar-api') }}" | ||
any_errors_fatal: false | ||
gather_facts: true | ||
become: false | ||
roles: | ||
- role: foobar-api | ||
tags: | ||
- foobar-api | ||
- foobar-api-foobar-api | ||
tags: | ||
- play-foobar-api | ||
- name: foobar-backend | ||
hosts: "{{ _ansiblepattern_foobar_backend | default('foobar-backend') }}" | ||
any_errors_fatal: false | ||
gather_facts: true | ||
become: false | ||
roles: | ||
- role: foobar-backend | ||
tags: | ||
- foobar-backend | ||
- foobar-backend-foobar-backend | ||
tags: | ||
- play-foobar-backend | ||
- name: foobar-cache | ||
hosts: "{{ _ansiblepattern_foobar_cache | default('foobar-cache') }}" | ||
any_errors_fatal: false | ||
gather_facts: true | ||
become: false | ||
roles: | ||
- role: foobar-cache | ||
tags: | ||
- foobar-cache | ||
- foobar-cache-foobar-cache | ||
tags: | ||
- play-foobar-cache | ||
- name: foobar-db | ||
hosts: "{{ _ansiblepattern_foobar_db | default('foobar-db') }}" | ||
any_errors_fatal: false | ||
gather_facts: true | ||
become: false | ||
roles: | ||
- role: foobar-db | ||
tags: | ||
- foobar-db | ||
- foobar-db-foobar-db | ||
tags: | ||
- play-foobar-db | ||
- name: foobar-web | ||
hosts: "{{ _ansiblepattern_foobar_web | default('foobar-web') }}" | ||
any_errors_fatal: false | ||
gather_facts: true | ||
become: false | ||
roles: | ||
- role: foobar-web | ||
tags: | ||
- foobar-web | ||
- foobar-web-foobar-web | ||
tags: | ||
- play-foobar-web |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# foobar | ||
|
||
Hello, this is foobar. | ||
|
||
You can use `sail` to deploy this product. |
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
foobar-web: | ||
version: "v0.0.1" | ||
enabled: true | ||
external: false | ||
form: "server" | ||
services: | ||
http-web: | ||
scheme: "http" | ||
port: 80 | ||
https-web: | ||
scheme: "https" | ||
port: 443 | ||
|
||
foobar-api: | ||
version: "v0.0.2" | ||
enabled: true | ||
external: false | ||
form: "server" | ||
services: | ||
default: | ||
scheme: http | ||
port: 8080 | ||
|
||
foobar-backend: | ||
version: "v0.0.3" | ||
enabled: true | ||
external: false | ||
form: "server" | ||
|
||
foobar-db: | ||
version: "v0.0.4" | ||
enabled: false | ||
external: true | ||
form: "server" | ||
services: | ||
default: | ||
scheme: "tcp" | ||
host: "mysql-xyz.some-cloud.com" | ||
port: 3306 | ||
|
||
foobar-cache: | ||
version: "v0.0.5" | ||
enabled: true | ||
external: false | ||
form: "server" | ||
services: | ||
default: | ||
scheme: "tcp" | ||
port: 6309 |
2 changes: 1 addition & 1 deletion
2
...ts/foobar/roles/foobar-api/tasks/main.yml → ...s/foobar/roles/foobar-api/tasks/main.yaml
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,4 +1,4 @@ | ||
--- | ||
- name: real task | ||
- name: tasks for foobar-api | ||
debug: | ||
msg: install/config/start foobar-api |
2 changes: 1 addition & 1 deletion
2
...oobar/roles/foobar-backend/tasks/main.yml → ...obar/roles/foobar-backend/tasks/main.yaml
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,4 +1,4 @@ | ||
--- | ||
- name: real task | ||
- name: tasks for foobar-backend | ||
debug: | ||
msg: install/config/start foobar-backend |
2 changes: 1 addition & 1 deletion
2
.../foobar/roles/foobar-cache/tasks/main.yml → ...foobar/roles/foobar-cache/tasks/main.yaml
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,4 +1,4 @@ | ||
--- | ||
- name: real task | ||
- name: tasks for foobar-cache | ||
debug: | ||
msg: install/config/start foobar-cache |
2 changes: 1 addition & 1 deletion
2
...cts/foobar/roles/foobar-db/tasks/main.yml → ...ts/foobar/roles/foobar-db/tasks/main.yaml
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,4 +1,4 @@ | ||
--- | ||
- name: real task | ||
- name: tasks for foobar-db | ||
debug: | ||
msg: install/config/start foobar-db |
2 changes: 1 addition & 1 deletion
2
...ts/foobar/roles/foobar-web/tasks/main.yml → ...s/foobar/roles/foobar-web/tasks/main.yaml
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,4 +1,4 @@ | ||
--- | ||
- name: real task | ||
- name: tasks for foobar-web | ||
debug: | ||
msg: install/config/start foobar-web |
File renamed without changes.
File renamed without changes.
Empty file.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
installDir: /opt | ||
dataDir: /data | ||
timezone: "Asia/Shanghai" |
File renamed without changes.
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
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
File renamed without changes.
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
Oops, something went wrong.