Version information
released Oct 15th 2016
Start using this module
Add this module to your Puppetfile:
mod 'wknapik-teamcity_agent', '0.0.4'
Learn more about managing modules with a PuppetfileDocumentation
wknapik/teamcity_agent — version 0.0.4 Oct 15th 2016
Usage
Scenario 1: set up 8 agents, with default settings (recommended).
Agent names will be $fqdn-01 .. $fqdn-08, they will listen on ports 9090 ..
9097, will be installed in /home/teamcity/agent/ and a cron entry will be
added for each to run every 5min and call agent.sh start.
$range = range(1, 8) teamcity_agent::agent { $range : server_url => 'http://example.com/' }
Scenario 2: set the agent name and port explicitly.
teamcity_agent::agent { 'foo': server_url => 'http://example.com/' own_port => 6666, }
Scenario 3: set all options explicitly.
teamcity_agent::agent { 'my bar': user => 'ci', server_url => 'http://example.com/',
# If you want $name != $agent_name.
agent_name => 'bar',
own_address => '172.16.1.10',
own_port => 9999,
properties => 'some.prop = qux',
with_cron => false
}
Credits
MIT License Copyright (c) 2016 Wojciech Knapik Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.