Reference configurations
kohkimakimoto edited this page Apr 12, 2013
·
18 revisions
This page provides infomations of several configuration methods on Altax.
You can use these methods on your altax configuration file (default file is altax.php
on your current working directory).
This is a simple configuration file.
<?php
host('192.168.0.1', 'web');
host('192.168.0.2', 'web');
desc('This is a sample task.');
task('sample',array('roles' => 'web'), function($host, $args){
run('echo Hellow World!');
});
-
role
Associates a role with multiple servers. (more...) -
host
Associates a host with multiple roles. (more...) -
task
Defines a new task. (more...) -
desc
Associates a description with the next task that gets defined. (more...) -
set
set a variable. (more...) -
get
get a variable. (more...) -
run
Execute commands on remote managed server. (more...) -
run_local
Execute commands on local server. (more...) -
run_task
Run other task in the task method. (more...)