Skip to content

Commit

Permalink
Merge branch 'release/1.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
hswong3i committed Sep 26, 2017
2 parents 29817f8 + 8221e4f commit 34867b2
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 132 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.retry
ansible.log
131 changes: 6 additions & 125 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Ansible Role for Bamboo
=======================

[![Build Status](https://travis-ci.org/alvistack/ansible-role-bamboo.svg?branch=master)](https://travis-ci.org/alvistack/ansible-role-bamboo)
[![GitHub tag](https://img.shields.io/github/tag/alvistack/ansible-role-bamboo.svg)](https://github.com/alvistack/ansible-role-bamboo)
[![GitHub release](https://img.shields.io/github/release/alvistack/ansible-role-bamboo.svg)](https://github.com/alvistack/ansible-role-bamboo)
[![GitHub license](https://img.shields.io/github/license/alvistack/ansible-role-bamboo.svg)](https://github.com/alvistack/ansible-role-bamboo/blob/master/LICENSE)
[![Ansible Role](https://img.shields.io/badge/galaxy-alvistack.bamboo-blue.svg)](https://galaxy.ansible.com/alvistack/bamboo)

Expand All @@ -13,146 +13,27 @@ Requirements

This role require Ansible 2.4 or higher.

This role was designed for Ubuntu 16.04/14.04 or CentOS 6/7.
This role was designed for Ubuntu 16.04/14.04 or RHEL/CentOS 7/6.

Role Variables
--------------

<table>
<colgroup>
<col width="20%" />
<col width="20%" />
<col width="20%" />
<col width="20%" />
<col width="20%" />
</colgroup>
<thead>
<tr class="header">
<th>parameter</th>
<th>required</th>
<th>default</th>
<th>choices</th>
<th>comments</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td>bamboo_catalina</td>
<td>no</td>
<td><code>/opt/atlassian/bamboo</code></td>
<td></td>
<td>Location for the Bamboo installation directory</td>
</tr>
<tr class="even">
<td>bamboo_connector_port</td>
<td>no</td>
<td><code>8085</code></td>
<td></td>
<td>Bamboo Apache Tomcat connector port</td>
</tr>
<tr class="odd">
<td>bamboo_context_path</td>
<td>no</td>
<td><code>~</code></td>
<td></td>
<td>Context path for Bamboo installation</td>
</tr>
<tr class="even">
<td>bamboo_group</td>
<td>no</td>
<td><code>daemon</code></td>
<td></td>
<td>Name of the group that should own the file</td>
</tr>
<tr class="odd">
<td>bamboo_home</td>
<td>no</td>
<td><code>/var/atlassian/application-data/bamboo</code></td>
<td></td>
<td>Location for the Bamboo home directory</td>
</tr>
<tr class="even">
<td>bamboo_jvm_maximum_memory</td>
<td>no</td>
<td><code>1024m</code></td>
<td></td>
<td>Bamboo JVM maximum memory usage</td>
</tr>
<tr class="odd">
<td>bamboo_jvm_minimum_memory</td>
<td>no</td>
<td><code>512m</code></td>
<td></td>
<td>Bamboo JVM minimum memory usage</td>
</tr>
<tr class="even">
<td>bamboo_jvm_support_recommended_args</td>
<td>no</td>
<td><code>-Datlassian.plugins.enable.wait=300</code></td>
<td></td>
<td>Atlassian Support recommended JVM arguments</td>
</tr>
<tr class="odd">
<td>bamboo_owner</td>
<td>no</td>
<td><code>daemon</code></td>
<td></td>
<td>Name of the user that should own the file</td>
</tr>
<tr class="even">
<td>bamboo_proxy_name</td>
<td>no</td>
<td><code>~</code></td>
<td></td>
<td>Domain name for working with reverse proxy</td>
</tr>
<tr class="odd">
<td>bamboo_scheme</td>
<td>no</td>
<td><code>~</code></td>
<td><ul>
<li><code>http</code></li>
<li><code>https</code></li>
</ul></td>
<td>Scheme for working with reverse proxy</td>
</tr>
<tr class="even">
<td>bamboo_server_port</td>
<td>no</td>
<td><code>8007</code></td>
<td></td>
<td>Bamboo Apache Tomcat server port</td>
</tr>
<tr class="odd">
<td>bamboo_url</td>
<td>no</td>
<td><code>https://downloads.atlassian.com/software/bamboo/downloads/atlassian-bamboo-6.1.1.tar.gz</code></td>
<td></td>
<td>URL for download archive</td>
</tr>
</tbody>
</table>
[defaults/main.yml](defaults/main.yml)

Dependencies
------------

No additional role dependencies.
[meta/main.yml](meta/main.yml)

Example Playbook
----------------

- hosts: all
roles:
- role: bamboo
bamboo_proxy_name: "bamboo.example.com"
bamboo_scheme: "http"
bamboo_owner: "bamboo"
bamboo_group: "bamboo"
[tests/test.yml](tests/test.yml)

License
-------

- Code released under [Apache License 2.0](https://github.com/alvistack/ansible-role-bamboo/blob/master/LICENSE)
- Code released under [Apache License 2.0](LICENSE)
- Docs released under [CC BY 4.0](http://creativecommons.org/licenses/by/4.0/)

Author Information
Expand Down
32 changes: 25 additions & 7 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,34 @@
# See the License for the specific language governing permissions and
# limitations under the License.

bamboo_catalina: "/opt/atlassian/bamboo"
bamboo_connector_port: "8085"
bamboo_context_path: ~
# Owner and group for Bamdoo.
bamboo_owner: "daemon"
bamboo_group: "daemon"

# Location for the $BAMBOO_HOME directory.
bamboo_home: "/var/atlassian/application-data/bamboo"
bamboo_jvm_maximum_memory: "1024m"

# Location for the $BAMBOO_CATALINA directory.
bamboo_catalina: "/opt/atlassian/bamboo"

# Bamboo JVM minimal and maximum memory usage.
bamboo_jvm_minimum_memory: "512m"
bamboo_jvm_support_recommended_args: "-Datlassian.plugins.enable.wait=300"
bamboo_owner: "daemon"
bamboo_jvm_maximum_memory: "1024m"

# Bamboo Apache Tomcat connector and server port.
bamboo_connector_port: "8085"
bamboo_server_port: "8007"

# Context path for Bamboo installation.
bamboo_context_path: ~

# If Bamboo running behide reverse proxy, setup `bamboo_scheme` with whatever
# `http` or `https`, and supply `bamboo_proxy_name` with its domain name.
bamboo_proxy_name: ~
bamboo_scheme: ~
bamboo_server_port: "8007"

# Atlassian Support recommended JVM arguments.
bamboo_jvm_support_recommended_args: "-Datlassian.plugins.enable.wait=300"

# URL for download Bamboo archive.
bamboo_url: "https://downloads.atlassian.com/software/bamboo/downloads/atlassian-bamboo-6.1.1.tar.gz"
15 changes: 15 additions & 0 deletions tests/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,21 @@
- role: ansible-role-apt
- role: ansible-role-yum
- role: ansible-role-java

- hosts: all
remote_user: root
roles:
- role: ansible-role-bamboo
# Owner and group for Bamdoo.
bamboo_owner: "daemon"
bamboo_group: "daemon"
# Location for the $BAMBOO_HOME directory.
bamboo_home: "/var/atlassian/application-data/bamboo"
# Location for the $BAMBOO_CATALINA directory.
bamboo_catalina: "/opt/atlassian/bamboo"

- hosts: all
remote_user: root
roles:
- role: ansible-role-mariadb-connector-java
mariadb_connector_java_dest: "/opt/atlassian/bamboo/lib/mariadb-connector-java.jar"

0 comments on commit 34867b2

Please sign in to comment.