cookbook 'sda-agent', '~> 0.1.1'
sda-agent (2) Versions 0.1.1 Follow0
Installs/Configures a Serena Deployment Automation Agent
cookbook 'sda-agent', '~> 0.1.1', :supermarket
knife supermarket install sda-agent
knife supermarket download sda-agent
sda-agent Cookbook
This cookbook installs a Serena Deployment Automation Agent
Requirements
packages
-
java- sda-agent needs Java to install and run.
Attributes
sda-agent::default
<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>['sda-agent']['server_uri']</tt></td>
<td>String</td>
<td>The Serena DA Server from which to retrieve the Agent installer.</td>
<td><tt>http://localhost:8080/serena_ra</tt></td>
</tr>
<tr>
<td><tt>['sda-agent']['agent_name']</tt></td>
<td>String</td>
<td>The name of the agent.</td>
<td><tt>The nodes FQDN</tt></td>
</tr>
<tr>
<td><tt>['sda-agent']['agent_dir']</tt></td>
<td>String</td>
<td>The directory to install the agent to.</td>
<td>Unix/Linux: <tt>/opt/serena_da/agent</tt><br/>
Windows: <tt>C:\Program Files\Serena\SDA Agent</tt></td>
</tr>
<tr>
<td><tt>['sda-agent']['java_home']</tt></td>
<td>String</td>
<td>The Java HOME directory.</td>
<td><tt></tt></td>
</tr>
<tr>
<td><tt>['sda-agent']['remote_host']</tt></td>
<td>String</td>
<td>The Serena DA Server hostname.</td>
<td><tt>localhost</tt></td>
</tr>
<tr>
<td><tt>['sda-agent']['remote_port']</tt></td>
<td>Integer</td>
<td>The Serena DA Server JMS port.</td>
<td><tt>7918</tt></td>
</tr>
<tr>
<td><tt>['sda-agent']['proxy_host']</tt></td>
<td>String</td>
<td>The Serena DA Proxy Server hostname.</td>
<td><tt></tt></td>
</tr>
<tr>
<td><tt>['sda-agent']['proxy_port']</tt></td>
<td>Integer</td>
<td>The Serena DA Proxy Server port.</td>
<td><tt>20080</tt></td>
</tr>
<tr>
<td><tt>['sda-agent']['mutual_auth']</tt></td>
<td>Boolean</td>
<td>Whether mutual authentication is to be configured between agent and server.
Note: additional setup is required to configure this option (see manual).</td>
<td><tt>false</tt></td>
</tr>
<tr>
<td><tt>['sda-agent']['user']</tt></td>
<td>String</td>
<td>The user which the Agent is be executed as.</td>
<td>Unix/Linux: <tt>sda</tt><br/>
Windows: <tt>HOSTNAME\sda</tt></td>
</tr>
<tr>
<td><tt>['sda-agent']['group']</tt></td>
<td>String</td>
<td>The group which the Agent is to be executed as.</td>
<td>Unix/Linux: <tt>sda</tt><br/>
Windows: <tt>HOSTNAME\sda</tt></td>
</tr>
<tr>
<td><tt>['sda-agent']['reinstall']</tt></td>
<td>Boolean</td>
<td>Force reinstall of Agent (based on new attributes).</td>
<td><tt>false</tt></td>
</tr>
</table>
Usage
sda-agent::default
Just include sda-agent in your node's run_list:
{
"name":"my_node",
"run_list": [
"recipe[sda-agent]"
]
}
Or better still create a role such as base which also resolve dependencies:
{
"name": "base",
"description": "Baseline configuration for all systems.",
"json_class": "Chef::Role",
"default_attributes": {
"java": {
"install_flavor": "openjdk",
"jdk_version": "6",
"set_etc_environment": true
}
},
"override_attributes": {
"sda-agent": {
"server_uri": "http://my_sda_server:8080/serena_ra",
"java_home": "/usr/lib/jvm/java-6-openjdk-amd64",
"remote_host": "my_sda_server",
"remote_port": 7918
}
},
"chef_type": "role",
"run_list": [
"recipe[java]",
"recipe[sda-agent]"
],
"env_run_lists": {
}
}
Note: Linux support only at the moment.
Contributing
- Fork the repository on Github
- Create a named feature branch (like
add_component_x) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
License and Authors
Authors: Kevin Lee (klee@serena.com)
Dependent cookbooks
| java >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
sda-agent CHANGELOG
This file is used to list changes made in each version of the sda-agent cookbook.
0.1.1
- [Kevin Lee] - Fix issue of Agent service stopping on completion 0.1.0 -----
- [Kevin Lee] - Initial release of sda-agent
Collaborator Number Metric
0.1.1 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.1 failed this metric
FC009: Resource attribute not recognised: sda-agent/recipes/agent_linux.rb:23
FC064: Ensure issues_url is set in metadata: sda-agent/metadata.rb:1
FC065: Ensure source_url is set in metadata: sda-agent/metadata.rb:1
FC066: Ensure chef_version is set in metadata: sda-agent/metadata.rb:1
FC069: Ensure standardized license defined in metadata: sda-agent/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.1 passed this metric
Testing File Metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.1 failed this metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.1 failed this metric
FC009: Resource attribute not recognised: sda-agent/recipes/agent_linux.rb:23
FC064: Ensure issues_url is set in metadata: sda-agent/metadata.rb:1
FC065: Ensure source_url is set in metadata: sda-agent/metadata.rb:1
FC066: Ensure chef_version is set in metadata: sda-agent/metadata.rb:1
FC069: Ensure standardized license defined in metadata: sda-agent/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.1 passed this metric
Testing File Metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.1 failed this metric
FC064: Ensure issues_url is set in metadata: sda-agent/metadata.rb:1
FC065: Ensure source_url is set in metadata: sda-agent/metadata.rb:1
FC066: Ensure chef_version is set in metadata: sda-agent/metadata.rb:1
FC069: Ensure standardized license defined in metadata: sda-agent/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.1.1 passed this metric
Testing File Metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.1 failed this metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number