Add a user
{
"task":"add_user",
"params":{
"user":"__USER__" ,
"password":"__PWD__"
}
}
user - __USER__ - The system user that would be created
password - __PWD__ - This should be between 8 to 20 characters with a reasonable password strength
Add a VHost/Website
{
"task":"add_vhost",
"params":{
"vhost":"__VHOST__",
"user":"__USER__" ,
"php_version":"__PHP_VERSION__" ,
"with_www":"1|0"
}
}
vhost - __VHOST__ - The VHost/Website (without www) to be created/added
user - __USER__ - The system user under which the VHost has to be added
php_version - __PHP_VERSION__ - Should be one of the following list
with_www - can be either 1 or 0
Add an Alias to a VHost
{
"task":"add_alias_vhost",
"params":{
"alias_vhost":"__ALIAS_VHOST__",
"vhost":"__VHOST__"
}
}
alias_vhost - __ALIAS__VHOST__ - The Alias VHost/Website (without www) to be created/added
vhost - __VHOST__ - The VHost/Website (without www) to which the above alias should map to
Create MySQL Pair
{
"task":"create_mysql_pair",
"params":{
"system_user":"__SYSTEM_USER__",
"mysql_db_name":"__MYSQL_DB_NAME__",
"mysql_user_name":"__MYSQL_USER_NAME__",
"mysql_user_pwd":"__MYSQL_USER_PWD__"
}
}
system_user - __SYSTEM__USER__ - The system user to which the DB is mapped. Referenced only w.r.t. backups
mysql_db_name - __MYSQL_DB_NAME__ - The name of the new MySQL DB
mysql_user_name - __MYSQL_USER_NAME__ - The name of the new MySQL User
mysql_user_pwd - __MYSQL_USER_PWD__ - The password for the new MySQL user. It should be between 8 to 20 characters with a reasonable password strength
Create MySQL DB
{
"task":"create_mysql_db",
"params":{
"system_user":"__SYSTEM_USER__",
"mysql_db_name":"__MYSQL_DB_NAME__",
"mysql_from_db_name":"__MYSQL_FROM_DB_NAME__",
"_comment":"mysql_from_db_name is an optional paramater"
}
}
system_user - __SYSTEM__USER__ - The system user to which the DB is mapped. Referenced only w.r.t. backups
mysql_db_name - __MYSQL_DB_NAME__ - The name of the new MySQL DB
mysql_from_db_name - __MYSQL_FROM__DB_NAME__ - Optional parameter. The name of an existing database from which new DB should be cloned
Create MySQL User
{
"task":"create_mysql_user",
"params":{
"mysql_user_name":"__MYSQL_USER_NAME__",
"mysql_user_pwd":"__MYSQL_USER_PWD__"
}
}
mysql_user_name - __MYSQL_USER_NAME__ - The name of the new MySQL User
mysql_user_pwd - __MYSQL_USER_PWD__ - The password for the new MySQL user. It should be between 8 to 20 characters with a reasonable password strength
Pair an existing MySQL DB and a MySQL User
{
"task":"pair_mysql_db_user",
"params":{
"mysql_db_name":"__MYSQL_DB_NAME__",
"mysql_user_name":"__MYSQL_USER_NAME__"
}
}
mysql_db_name - __MYSQL_DB_NAME__ - The name of an existing MySQL DB
mysql_user_name - __MYSQL_USER_NAME__ - The name of an existing MySQL User