mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-02 03:37:46 +08:00
[REV] add depends for install_network #24
This commit is contained in:
parent
8ad653c9d0
commit
11249f790c
@ -45,7 +45,7 @@ function prepare() {
|
|||||||
log.info "install network plugins calico-node"
|
log.info "install network plugins calico-node"
|
||||||
log.info "prepare network env"
|
log.info "prepare network env"
|
||||||
[ -d "/etc/goodrain/envs" ] || mkdir -pv /etc/goodrain/envs
|
[ -d "/etc/goodrain/envs" ] || mkdir -pv /etc/goodrain/envs
|
||||||
docker images | grep calico || docker pull $calico_node_image
|
docker pull $calico_node_image
|
||||||
}
|
}
|
||||||
|
|
||||||
function proc::is_running() {
|
function proc::is_running() {
|
||||||
|
@ -40,7 +40,12 @@
|
|||||||
"rainbond_node_rule_manage": "true"
|
"rainbond_node_rule_manage": "true"
|
||||||
},
|
},
|
||||||
"nodes": [],
|
"nodes": [],
|
||||||
"depends": []
|
"depends": [
|
||||||
|
{
|
||||||
|
"depend_task_id": "install_docker",
|
||||||
|
"strategy": "SameNode"
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"run_mode": "onlyonce",
|
"run_mode": "onlyonce",
|
||||||
"is_once": true
|
"is_once": true
|
||||||
|
Loading…
Reference in New Issue
Block a user