Skip to content
kohkimakimoto edited this page Mar 13, 2013 · 6 revisions

Description

role(string $role, mixed $hosts)

Associates a role with multiple servers.

Parameters

  • role

    Server role name for classifing multiple servers.

  • hosts

    Associated hosts.

Examples

role('web', array('192.168.0.11','192.168.0.12','192.168.0.13'));
role('db',  '192.168.0.14');