Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow json injection through "svcmgr create" stdin
Example: Clone service ha3 to ha4, removing app#0 and task#0 resources and setting the app to "foo". $ sudo svcmgr -s ha3 print config --format json | \ jq 'del(."app#0",."task#0")' | \ jq '.DEFAULT.app="foo"' | \ sudo svcmgr -s ha4 create $ ha3 print status ha3 up `- instances |- nuc up idle, started `- aubergine down idle |- container#0 ....... down docker container ha3.container.0@busybox | info: can not find container id |- app#0 ..D../. n/a app0 |- sync#i0 ...O./. up rsync svc config to nodes `- task#0 ...O... n/a task $ ha4 print status ha4 down `- instances |- nuc down frozen, idle `- aubergine down frozen, idle |- container#0 ....... down docker container ha4.container.0@busybox | info: can not find container id `- sync#i0 ...O./. n/a rsync svc config to nodes info: paused, service not up
- Loading branch information
Showing
2 changed files
with
48 additions
and
7 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