firmament-bash
Version:
Firmament module for interpreting commands in JSON files using bash
36 lines (35 loc) • 1.15 kB
JSON
{
"description" : "Pull Ubuntu16 cloud image and build seed CDROM iso",
"options" : {
"displayExecutionGraphDescription": true
},
"asynchronousCommands" : [
{
"description" : "Create $HOME/ubuntu-cloud-init folder if non existent",
"suppressOutput" : false,
"suppressDiagnostics": true,
"showPreAndPostSpawnMessages": true,
"outputColor" : "",
"useSudo" : false,
"command" : "bash",
"suppressFinalError" : true,
"args" : [
"-c",
"[[ ! -d \"$HOME/ubuntu-cloud-init\" ]] && mkdir -p \"$HOME/ubuntu-cloud-init\""
]
},
{
"description" : "[sudo] apt-get update",
"suppressOutput" : false,
"suppressDiagnostics": true,
"showPreAndPostSpawnMessages": true,
"useSudo" : true,
"command" : "apt-get",
"args" : [
"update"
]
}
],
"serialSynchronizedCommands": [
]
}