-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#58 Prepare test data before start working on the feature
- Loading branch information
Showing
6 changed files
with
112 additions
and
0 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
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,6 @@ | ||
There are 2 env variables which control where the `vmx` looks for the application config and SSH config. | ||
|
||
They are: `VMX_HOME` and `VMX_SSH_CONFIG_HOME`. | ||
|
||
So the data in this directory is used for testing when the corresponding env variables set to point to `config` and | ||
`ssh` inner directories correspondingly. |
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,16 @@ | ||
[logs] | ||
command=cat logs/app.log | ||
|
||
[app-logs] | ||
command=tail -f -n 10 logs/app.log | ||
|
||
[follow-logs] | ||
workingdir=/opt/app1 | ||
command=tail -f -n 10 logs/app1.log | ||
follow=true | ||
|
||
[redeploy!] | ||
command=./redeploy.sh | ||
|
||
[disk-space] | ||
command=df -h |
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,6 @@ | ||
[all] | ||
workingdir=/opt/app | ||
|
||
# | ||
[app2-prod*] | ||
workingdir=/opt/app2 |
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,38 @@ | ||
# dev | ||
[dev] | ||
app-dev1 | ||
db-dev1 | ||
|
||
[dev-db] | ||
db-dev1 | ||
|
||
# prod | ||
[prod] | ||
app1-prod1 | ||
app1-prod2 | ||
db-prod1 | ||
db-prod2 | ||
|
||
[prod-db] | ||
db-prod1 | ||
db-prod2 | ||
|
||
[prod-app1] | ||
app1-prod1 | ||
app1-prod2 | ||
|
||
[prod-app2] | ||
app2-prod1 | ||
app2-prod2 | ||
|
||
[all-db:children] | ||
dev-db | ||
prod-db | ||
|
||
[prod-app:children] | ||
prod-app1 | ||
prod-app2 | ||
|
||
[all-prod:children] | ||
prod-app | ||
prod-db |
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,24 @@ | ||
Host app-dev1 | ||
User vmx | ||
Hostname 192.168.1.1 | ||
Host db-dev1 | ||
User vmx | ||
Hostname 192.168.1.2 | ||
Host app1-prod1 | ||
User vmx | ||
Hostname 192.168.1.3 | ||
Host app1-prod2 | ||
User vmx | ||
Hostname 192.168.1.4 | ||
Host db-prod1 | ||
User vmx | ||
Hostname 192.168.1.5 | ||
Host db-prod2 | ||
User vmx | ||
Hostname 192.168.1.6 | ||
Host app2-prod1 | ||
User vmx | ||
Hostname 192.168.1.7 | ||
Host app2-prod2 | ||
User vmx | ||
Hostname 192.168.1.8 |