processus
Version:
A simple node workflow engine
36 lines (28 loc) • 1.04 kB
YAML
#Processus workflow to install mongodb on a debian based os
#This workflow assumes processus is executing with sufficient rights
name: Install Mongodb debian
description: Processus workflow to install mongodb on a debian based os
#set workflow level params
parameters:
tasks:
import public key:
blocking: true
handler: ../taskhandlers/execHandler
parameters:
cmd: apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv EA312927
add mongo to sources list:
blocking: true
handler: ../taskhandlers/execHandler
parameters:
cmd: echo "deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.2 main" | tee /etc/apt/sources.list.d/mongodb-org-3.2.list
reload local package databse:
blocking: true
handler: ../taskhandlers/execHandler
parameters:
cmd: apt-get update
install mongodb packages:
blocking: true
handler: ../taskhandlers/execHandler
parameters:
cmd: apt-get install -y mongodb-org