A Guerilla instance has one master server and multiple worker servers. Each server is configured through a config.json file as described below.
Copy config/master/config.json.sample to config/master/config.json
hostString - Host name for the Guerilla server.portInteger - Port on which to run the Guerilla server.dbObject - Database connection information.driverString - Database driver. This should be "redis".hostString - Host of the Redis server that Guerilla should connect to. Master and all workers need to connect to the same Redis instance.portInteger - Port of the Redis server that Guerilla should connect to. Master and all workers need to connect to the same Redis instance.
githubObject - GitHub authentication information.hostString - Should be "api.github.com" for GitHub. May differ for enterprise GitHub.tokenString - GitHub OAuth token.
mailerObject Optional - Authentication informtion for email account to sending notifications. Email notifications will not work if not provided. It is recommended to create a headless account for this purpose through Yahoo or Gmail.serviceString - Email host. Must be "Yahoo" or "Gmail".usernameString - The username of the account.passwordString - The password for the account.
workersArray(Object) Optional - Information regarding workers. Used only to check health of workers.nameString - Name of the worker server.hostString - Host of worker server.portInteger - Port of worker server.
Copy config/worker/config.json.sample to config/worker/config.json
nameString - Name of the worker server.hostString - Host name for the Guerilla server.portInteger - Port on which to run the Guerilla server.data_dirString Optional- Root for all output. Defaults to ~/Guerilla if absent.dbObject - Database connection information.driverString - Database driver. This should be "redis".hostString - Host of the Redis server that Guerilla should connect to. Master and all workers need to connect to the same Redis instance.portInteger - Port of the Redis server that Guerilla should connect to. Master and all workers need to connect to the same Redis instance.
devicesArray(Object) Optional - Information regarding connected devices.tagString - A tag to indentify a type of device. This tag is used when specifying what kind of device to run a job on. For simulated devices the string must be of the formios-simulator,OS=x.y,name=a-device-name. For example"ios-simulator,OS=9.1,name=iPhone 6". You can use the Guerilla web UI to see the available simulated devices. From the home Guerilla screen choose "workers", then select a sepcific worker and choose "Devices". You need to enter a tag matching one of the listed tags. At runtime any workers with a matching tag are eligible to run the job. At startup Guerilla finds the names and os versions available on your device by runningxcrun simctl -list.platformString - "ios" or "android".nameString - Name and description of the device.identifierString - UDID (iOS) or serial (Android) or the device.OSString - OS version information of the device.