VATOMETH is a simple configuration management tool, It handles configuration management, application deployment, cloud provisioning, and network automation.
pip3 install -r requirements.txt
python3 vatometh.py -s --file config.json
python3 vatometh.py --crowded -f config.json
usage => python vatometh.py [ TYPE ] [ FILE ] [ FILENAME ]
--------------------------------------------------------
[ TYPE ] +==> [ -c | --crowded ] | [ -s | --single ]
[ FILE ] +==> [ -f | --file ]
[ FILENAME ] +==> [ whatever ].json
{
"service" : {
"host" : "192.168.137.1",
"port" : 22,
"user" : "qywok",
"password" : "qywok"
},
"commands" : {
"message" : "[ installing docker ]",
"cmd" : "apt install docker.io"
}
}
{
"service" : {
"host" : "192.168.137.1",
"port" : 22,
"user" : "qywok",
"password" : "qywok"
},
"commands" : [
{
"message" : "[ updating ]",
"cmd" : "apt update"
},
{
"message" : "[ installing docker ]",
"cmd" : [
"ls",
"ls /",
"apt install docker.io"
]
}
]
}
{
"services" : [
{
"host" : "192.168.43.177",
"port" : 22,
"user" : "qywok",
"password" : "qywok",
"commands" : [
{
"message" : "installing ssh & docker",
"cmd" : [
"apt-get install openssh",
"apt-get install docker.io",
"service docker start"
]
}
]
},
{
"host" : "192.168.137.9",
"port" : 22,
"user" : "qywok",
"password" : "qywok",
"commands" : {
"message" : "installing ssh & docker",
"cmd" : "apt-get install openssh"
}
},
{
"host" : "192.168.137.70",
"port" : 22,
"user" : "qywok",
"password" : "qywok",
"commands" : [
{
"message" : "installing ssh & docker",
"cmd" : "apt-get install openssh"
}
]
}
]
}