Forge Home

bamboo_agent

Advanced management of Atlassian Bamboo agents

9,934 downloads

7,018 latest version

2.3 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.0.14 (latest)
  • 0.0.13 (deleted)
  • 0.0.11
  • 0.0.10
  • 0.0.9
released Feb 5th 2017
This version is compatible with:

    Start using this module

    • r10k or Code Manager
    • Bolt
    • Manual installation
    • Direct download

    Add this module to your Puppetfile:

    mod 'cintiadr-bamboo_agent', '0.0.14'
    Learn more about managing modules with a Puppetfile

    Add this module to your Bolt project:

    bolt module add cintiadr-bamboo_agent
    Learn more about using this module with an existing project

    Manually install this module globally with Puppet module tool:

    puppet module install cintiadr-bamboo_agent --version 0.0.14

    Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

    Download

    Documentation

    cintiadr/bamboo_agent — version 0.0.14 Feb 5th 2017

    bamboo_agent

    Fork of [kayakco/bamboo_agent] module. Supports now ubuntu14 and multiple bamboo agents on different users on the same machine.

    A Puppet module for managing Bamboo agents.

    It can:

    • Install multiple agents side-by-side on a node
    • Ensure agents are running / started up after a reboot
    • Set properties in an agent's wrapper.conf
    • Manage agent capabilities

    Examples

    Install a single Bamboo agent in /usr/local/bamboo.

    class { 'bamboo_agent':
      server_url => 'http://your.bamboo.server:8085',
    }
    

    Install two Bamboo agents in /home/bamboo.

    class { 'bamboo_agent':
      server_url  => 'http://your.bamboo.server:8085',
      agents      => [1,2],
      install_dir => '/home/bamboo',
    }
    

    Advanced Examples

    Install two Bamboo agents. Give agent 1 extra heap space by setting the wrapper.java.maxmemory property in wrapper.conf.

    class { 'bamboo_agent':
      server_url => 'http://your.bamboo.server:8085',
      agents     => {
        '1' => {
          'wrapper_conf_properties' => {
             'wrapper.java.maxmemory' => '4096',
          }
         },
        '2' => {},
      }
    }
    

    Install two Bamboo agents. Give the second agent some custom capabilities.

    class { 'bamboo_agent':
      server_url => 'http://your.bamboo.server:8085',
      agents     => {
        '1' => {},
        '2' => {
          'manage_capabilities' => true,
          'capabilities'        => {
             'system.builder.command.Bash' => '/bin/bash',
             'hostname'                    => $::hostname,
             'os'                          => $::operatingsystem,
          }
        }
      }
    }
    

    Install six bamboo agents. Give them all the hostname and Bash capabilities from the previous example, as well as a custom capability called reserved. Make reserved default to false, but true for agent 2.

    class { 'bamboo_agent':
      server_url           => 'http://your.bamboo.server:8085',
      agent_defaults       => {
        'manage_capabilities' => true,
      },
      default_capabilities => {
        'system.builder.command.Bash' => '/bin/bash',
        'hostname'                    => $::hostname,
        'reserved'                    => false,
      },
      agents => {
        '1' => {},
        '2' => {
          'capabilities' => { 'reserved' => true }
        },
        '3' => {},
        '4' => {},
        '5' => {},
        '6' => {},
      }
    }
    

    See init.pp and agent.pp for more details.

    Notes

    Capabilities are configured using the bamboo-capabilities.properties file

    It is strongly recommended to use Hiera automatic parameter lookup to configure agents. Below is the final example from above, translated into Hiera configuration format:

    ---
    bamboo_agent::server_url: http://your.bamboo.server:8085
    bamboo_agent::agent_defaults:
      manage_capabilities: true
    bamboo_agent::default_capabilities:
      "system.builder.command.Bash": /bin/bash
      hostname: "%{::hostname}"
      reserved: false
    bamboo_agent::agents
      1:
      2:
        capabilities:
          reserved: true
      3:
      4:
      5:
      6: