Git Product home page Git Product logo

bamboo's Introduction

LOOKING FOR NEW MAINTAINER

We've moved away from Chef and as such we're looking for a new maintainer for this cookbook. If you're interested, please let us know by making an issue for it.

Bamboo status Build Status

Description

Installs/Configures Atlassian Bamboo

Usage

Bamboo Server Installation

  • Add recipe[bamboo] to your node's run list.

Bamboo Agent Installation

  • Add recipe[bamboo::agent] to your node's run list.

Recipes

  • recipe "bamboo::default", "Installs the bamboo server with optional backup in place and logging to graylog."
  • recipe "bamboo::server", "Only installs the bamboo server."
  • recipe "bamboo::database", "Only installs the bamboo database."
  • recipe "bamboo::agent", "Installs a bamboo agent."

Requirements

Platforms

  • CentOS 6.x
  • Mac OS X 10.10
  • Ubuntu >= 14.04

Databases

  • MySQL
  • Postgres

Cookbook dependencies

Required Opscode Cookbooks

Third-Party Cookbooks

Bamboo attributes

These attributes are under the node['bamboo'] namespace.

Attribute Description Type Default
url Url for your bamboo installation String http://localhost
home_dir Bamboo install directory String /opt/bamboo
data_dir Bamboo data directory String /var/bamboo
user user to run Bamboo String bamboo
group group for user bamboo String bamboo
user_home home dir for user bamboo String /home/bamboo
version Bamboo version to install String 5.3
download_url URL for Bamboo install String auto-detected (see attributes/default.rb)
checksum SHA256 checksum for Bamboo install String auto-detected (see attributes/default.rb)

Bamboo agent attributes

These attributes are under the node['bamboo']['agent'] namespace. Agents attributes can be different than the server attributes.

Attribute Description Type Default
home_dir Bamboo install directory String /opt/bamboo
data_dir Bamboo data directory String /var/bamboo
user user to run Bamboo String bamboo
group group for user bamboo String bamboo
user_home home dir for user bamboo String /home/bamboo
ping_timeout timeout until wrapper restarts unresponsive JVM Integer 30
disable_agent_auto_capability_detection sets the flag on the agent String true
additional_path will be added to the $PATH of the agent process String

These attributes are under the node['bamboo']['agent']['monit'] namespace.

Attribute Description Type Default
template_cookbook cookbook loc of monitrc template String bamboo
template_source template file name for monitrc String procfile.monitrc.erb

These attributes are under the node['bamboo']['agent']['wrapper'] namespace.

Attribute Description Type Default
java_additionals additional java args Array

Bamboo Apache2 Attributes

Apache2 is used default as reverse proxy These attributes are under the node['bamboo']['apache'] namespace.

Attribute Description Type Default
access_log acces log location String ''
error_log error log location String ''
port port Integer 80
template_cookbook from which cookbook to take the template String bamboo
virtual_host_name vhost String ''
virtual_host_alias vhost alias String ''
error_docs custom error docs String ''

Bamboo Apache2 SSL

These attributes are under the node['bamboo']['apache']['ssl'] namespace. access_log | ssl access log | String | '' error_log | ssl access log | String | '' chain_file | chain file | String | '' port | port | Integer | 443 certificate_file | cert file to use | String | localhost.crt for rhel, ssl-cert-snakeoil.pem for ubuntu key_file | key file to use | String | localhost.key for rhel, ssl-cert-snakeoil.key for ubuntu

Bamboo Database Attributes

These attributes are under the node['bamboo']['database'] namespace.

Attribute Description Type Default
type Bamboo database type String mysql (no other database supported atm)
host FQDN or "127.0.0.1" (localhost automatically installs ['database']['type'] server) String localhost
name Bamboo database name String Bamboo
password Bamboo database user password String changeit
port Bamboo database port Fixnum 3306 for MySQL, 5432 for PostgreSQL
type Bamboo database type eg postgresql or mysql String postgresql
user Bamboo database user String Bamboo

Bamboo JVM Attributes

These attributes are under the node['bamboo']['jvm'] namespace.

Attribute Description Type Default
minimum_memory JVM minimum memory String 512m
maximum_memory JVM maximum memory String 2G
support_args additional JAVA_OPTS recommended by Atlassian support for Bamboo JVM during startup String ""

Bamboo Crowd Attributes

These attributes are under the node['bamboo']['crowd'] namespace. For initial setup first run without crowd enabled, run the setup process and activate crowd via the webui

Attribute Description Type Default
enabled enables crowd sso Boolean false

Bamboo Error Docs Attributes

Attribute Description Type Default
error_docs Provide custom error docs Array e503 - empty

Bamboo Backup Attributes

These attributes are under the node['bamboo']['backup'] namespace.

Attribute Description Type Default
enabled Enable backup to s3 True/False yes/no String false
ceph Enable if you use ceph True/False yes/no String false
s3_host your bucket in S3 String s3.amazonaws.com
s3_scheme your bucket in S3 String http
s3_port your bucket in S3 String 80
s3_access_key_id Your acces key for S3 String changeit
s3_secret_access_key Your secret key for S3 String changeit
s3_bucket your bucket in S3 String bamboo

Code Deployment From Bamboo

Testing and Development

Here's how you can quickly get testing or developing against the cookbook thanks to Test-Kitchen and Berkshelf.

git clone git://github.com/ramonskie/bamboo.git
cd bamboo
see [TESTING.md](TESTING.md)

The running Bamboo server is accessible from the host machine:

You can then SSH into the running VM using the vagrant ssh command.

The VM can easily be stopped and deleted with the vagrant destroy command. Please see the official Vagrant documentation for a more in depth explanation of available commands.

Test Kitchen

Please see documentation in: TESTING.md

Contributing

Please use standard Github issues/pull requests and if possible, in combination with testing on the Vagrant boxes.

License and Contributors

Please see license information in: LICENSE

bamboo's People

Contributors

aaronwalker avatar jpmat296 avatar mvdkleijn avatar nicklamuro avatar ojawel avatar patcon avatar ramonskie avatar sinfomicien avatar soudmaijer avatar vincentaubert avatar wolf31o2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

bamboo's Issues

Vagrant file ...

Is there are vagrantfile for this cookbook which i can use to try to verify why its not working on Ubuntu Trusty 14.04

move to postgresql by default?

the preferred database for bamboo seems to be postgresql
due to some mysql related bamboo bugs

this would creating breaking changes for ppl who are upgrading.

for now i'm just adding the ability to select postgresql

Unable to satisfy mysql dependency requirements

At https://github.com/afklm/bamboo/blob/master/metadata.rb#L35 mysql version restricted
depends 'mysql', '< 8.0'

But in mysql2_chef_gem (included at https://github.com/afklm/bamboo/blob/master/metadata.rb#L38) mysql version is restricted to
depends 'mysql', '>= 8.2.0'

(see https://github.com/sinfomicien/mysql2_chef_gem/blob/master/metadata.rb#L14)

Resulting error

...\repositories\cookbooks> git clone https://github.com/afklm/bamboo.git
Cloning into 'bamboo'...
remote: Counting objects: 1694, done.
remote: Total 1694 (delta 0), reused 0 (delta 0), pack-reused 1694
Receiving objects: 100% (1694/1694), 1.07 MiB | 0 bytes/s, done.
Resolving deltas: 100% (998/998), done.
Checking connectivity... done.

...\repositories\cookbooks> cd .\bamboo\

...\repositories\cookbooks\bamboo> berks install
Resolving cookbook dependencies...
Fetching 'backup' from https://github.com/damm/backup (at 0.3.0)
Fetching 'bamboo' from source at .
Fetching cookbook index from https://supermarket.chef.io...
Unable to satisfy the following requirements:

- `mysql (< 8.0.0)` required by `bamboo-2.0.8`
- `mysql (>= 8.2.0)` required by `mysql2_chef_gem-2.1.0`
Unable to find a solution for demands: backup (0.3.0), bamboo (2.0.8)

vagrant is failing when chef-solo used and "issues_url" and "source_url" defined inside metadata.rb

Hello.
When I run vagrant and chef-solo it fails with error:

==> test-machine: Chef Client failed. 0 resources updated in 7.335532092 seconds
==> test-machine: [2016-06-27T09:30:54+00:00] ERROR: undefined method `issues_url' for #<Chef::Cookbook::Metadata:0x00000001ce8528>
==> test-machine: [2016-06-27T09:30:54+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

This can be fixed by replacing this stuff inside metadata.rb:
issues_url 'https://github.com/ramonskie/bamboo/issues' source_url 'https://github.com/ramonskie/bamboo.git'

with this:

issues_url 'https://github.com/ramonskie/bamboo/issues' if respond_to?(:issues_url) source_url 'https://github.com/ramonskie/bamboo.git' if respond_to?(:source_url)


Regards,
vtty0

Restore Recipe

Great job with the backup recipe! Have you thought about what it would take to implement a restore recipe?

The Bamboo documentation doesn't touch on automating the backup/restore process.

git clone command is wrong, and there is no Vagrantfile

Testing and Development

Here's how you can quickly get testing or developing against the cookbook thanks to Vagrant and Berkshelf.

git clone git://github.com/ramonskie/chef-bamboo.git
cd chef-bamboo

That's a better name for the repo, but not the one you chose!

Service bamboo cannot start with Ubuntu 16.04.1

From Chef trace:

  * service[bamboo] action restart
(...)
linux-host     
linux-host     Mixlib::ShellOut::ShellCommandFailed
linux-host     ------------------------------------
linux-host     Expected process to exit with [0], but received '1'
linux-host     ---- Begin output of /etc/init.d/bamboo restart ----
linux-host     STDOUT: Restarting bamboo (via systemctl): bamboo.service failed!
linux-host     STDERR: Job for bamboo.service failed because the control process exited with error code. See "systemctl status bamboo.service" and "journalctl -xe" for details.
linux-host     ---- End output of /etc/init.d/bamboo restart ----
linux-host     Ran /etc/init.d/bamboo restart returned 1

Context:

  • Ubuntu 16.04.1 LTS
  • Chef: 12.13.37

I know Ubuntu 16 is not yet officially supported. But I found how to fix the issue. It will help for later.

Bamboo agent atlassian-bamboo-agent-installer.jar

I used both the bamboo::server and bamboo::agent recipes in the run list and i was bootstrapping a new server with these recipes.
bamboo::agent recipe would fail at the following step

execute "java -Ddisable_agent_auto_capability_detection=#{node[:bamboo][:agent][:disable_agent_auto_capability_detection]} -Dbamboo.home=#{node[:bamboo][:agent][:data_dir]} -jar #{node[:bamboo][:agent][:home_dir]}/atlassian-bamboo-agent-installer.jar #{node[:bamboo][:url]}/agentServer/ install" do

Due to incorrect atlassian-bamboo-agent-installer.jar , on further inestigation i found that the jar that was getting downloaded was incorrect without the version.

Can this be added to the recipe -

execute "java -Ddisable_agent_auto_capability_detection=#{node[:bamboo][:agent][:disable_agent_auto_capability_detection]} -Dbamboo.home=#{node[:bamboo][:agent][:data_dir]} -jar #{node[:bamboo][:agent][:home_dir]}/atlassian-bamboo-agent-installer-#{node[:bamboo][:version]}.jar #{node[:bamboo][:url]}/agentServer/ install" do

Create the home_dir or its parent before ark resource runs

If someone wants to set the ark home_dir to be something like /opt/atlassian/bamboo then they can't without creating a whole wrapper cookbook to create a nest dir.

Perhaps this could be part of ark, but since perms are important, I imagine they would want that in the bamboo's application cookbook. I'll open an issue in their queue, but I suspect they'll say it goes here :)

There is no way to set limits for bamboo user

There should be a way to set limits for the bamboo user via attributes, so that it automatically creates entries in a file (e.g. bamboo.conf) in /etc/security/limits.d that could look like this for example:
bamboo soft nofile 16384
bamboo hard nofile 32768

Unable to login in Bamboo 5.13+

Due to recent changes in <Bamboo_Install>/atlassian-bamboo/WEB-INF/classes/seraph-config.xml for Bamboo 5.13.0.1, the recipe is failing after the installation.
When you logout at first time you are not able to login back and the following stack track is thrown in the logs:

2016-09-16 16:25:27,070 INFO [http-nio-8085-exec-11] [AccessLogFilter] 192.168.10.144 GET http://192.168.10.144:8085/bamboo/userlogin!default.action?os_destination=/start.action 413355kb
2016-09-16 16:25:33,262 WARN [http-nio-8085-exec-11] [Dispatcher] Could not find action or result: /bamboo/userlogin!default.action?os_destination=/start.action
Method default for action userlogin is not allowed! - [unknown location]
at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:200)
at org.apache.struts2.factory.StrutsActionProxy.prepare(StrutsActionProxy.java:63)
at org.apache.struts2.factory.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:37)
at com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58)
at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:548)

The following changes seems to fix the problem:
Change the references of:
<param-value>/userlogin!default.action?os_destination=${originalurl}</param-value>
to:
<param-value>/userlogin!doDefault.action?os_destination=${originalurl}</param-value>

latest postgresql cookbook breaks bamboo on ubuntu 14.04

the latest postgresql cookbook v3.4.21 breaks on ubuntu 14.04
it installs postgresql-server 9.3 and then wants to start and initialize with 9.4
but we explicitly tell that 9.4 should be installed

this issue does not occur in v3.4.16

making java depency user suppliable or optional

We have a wrapper cookbook around the "bamboo" cookbook. the cookbook defines a dependency on Java. We have our own internal Java cookbook which installs Java slightly differently and also perform some other custom actions. Would would be amenable to making the Java dependency something optional. Optional, in the sense the user would need to supply that dependency.

Regards,

Maintainer

I am interested in becoming a maintainer for this cookbook.

Bamboo services and agents should not restart while building

Changing a capability on the agent or a configuration on the server causes a service restart. For agents, you lose the running job. For the server, you lose all running jobs.

Agent 'bamboo-agent07.prod.continuuity.net' went offline while building CDAP-DUT2169-JOB1-1. The results of that build will not be available.

๐Ÿ˜ข

Unable to satisfy constraints

$ berks install
Resolving cookbook dependencies...
Fetching cookbook index from http://api.berkshelf.com...
Unable to satisfy constraints on package backup due to solution constraint (bamboo = 1.2.3). Solution constraints that may result in a constraint on backup: [(bamboo = 1.2.3) -> (backup = 0.2.0)]
Demand that cannot be met: (bamboo = 1.2.3)
Artifacts for which there are conflicting dependencies: backup = 0.4.0 -> [(cron >= 0.0.0)]Unable to find a solution for demands: bamboo (= 1.2.3)

Cookbook

source 'http://api.berkshelf.com'

cookbook 'bamboo', '1.2.3'

Dependency on 'windows' package, fails on MacOS?

Hi - I tried to put this inside a wrapper cookbook.

 knife supermarket install bamboo
Installing bamboo to /Volumes/Storage/martincleaver/SoftwareDevelopment/Chef/bp_bamboo
Checking out the master branch.
Creating pristine copy branch chef-vendor-bamboo
Downloading bamboo from the cookbooks site at version 1.4.0 to /Volumes/Storage/martincleaver/SoftwareDevelopment/Chef/bp_bamboo/bamboo.tar.gz
Cookbook saved: /Volumes/Storage/martincleaver/SoftwareDevelopment/Chef/bp_bamboo/bamboo.tar.gz
Removing pre-existing version.
Uncompressing bamboo version 1.4.0.
removing downloaded tarball
1 files updated, committing changes
Creating tag cookbook-site-imported-bamboo-1.4.0
Checking out the master branch.
Updating f7b7581..62c3c94
Fast-forward
 bamboo/.gitignore                                           |  56 ++++++++++++++
 bamboo/.kitchen.cloud.yml                                   |  54 ++++++++++++++
 bamboo/.kitchen.yml                                         |  32 ++++++++
 bamboo/.rubocop.yml                                         |  33 +++++++++
 bamboo/.travis.yml                                          |   8 ++
 bamboo/Berksfile                                            |   5 ++
 bamboo/Gemfile                                              |  13 ++++
 bamboo/README.md                                            | 171 +++++++++++++++++++++++++++++++++++++++++++
 bamboo/Rakefile                                             |  36 +++++++++
 bamboo/TESTING.md                                           |  19 +++++
 bamboo/Thorfile                                             |  12 +++
 bamboo/attributes/apache2.rb                                |  43 +++++++++++
 bamboo/attributes/default.rb                                |  88 ++++++++++++++++++++++
 bamboo/chefignore                                           |  96 ++++++++++++++++++++++++
 bamboo/files/default/gelfj-1.1.2.jar                        | Bin 0 -> 26074 bytes
 bamboo/files/default/json-simple-1.1.jar                    | Bin 0 -> 16046 bytes
 bamboo/libraries/bamboo.rb                                  |  40 ++++++++++
 bamboo/libraries/matchers.rb                                |  11 +++
 bamboo/metadata.json                                        |  48 ++++++++++++
 bamboo/metadata.rb                                          |  28 +++++++
 bamboo/providers/agent_capability.rb                        |  13 ++++
 bamboo/recipes/_unit_testing_agent_capability.rb            |  18 +++++
 bamboo/recipes/agent.rb                                     | 116 +++++++++++++++++++++++++++++
 bamboo/recipes/apache2.rb                                   |  29 ++++++++
 bamboo/recipes/backup.rb                                    |  40 ++++++++++
 bamboo/recipes/database_mysql.rb                            |  39 ++++++++++
 bamboo/recipes/default.rb                                   |  28 +++++++
 bamboo/recipes/graylog.rb                                   |  41 +++++++++++
 bamboo/recipes/server.rb                                    | 109 ++++++++++++++++++++++++++++
 bamboo/recipes/upgrade.rb                                   |  38 ++++++++++
 bamboo/resources/agent_capability.rb                        |  10 +++
 bamboo/templates/default/bamboo-agent.sh.erb                | 557 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 bamboo/templates/default/bamboo-capabilities.properties.erb |   5 ++
 bamboo/templates/default/bamboo-init.properties.erb         |   5 ++
 bamboo/templates/default/bamboo.init.erb                    |  79 ++++++++++++++++++++
 bamboo/templates/default/log4j.properties.erb               | 148 +++++++++++++++++++++++++++++++++++++
 bamboo/templates/default/procfile.monitrc.erb               |   8 ++
 bamboo/templates/default/seraph-config.xml.erb              |  81 +++++++++++++++++++++
 bamboo/templates/default/setenv.sh.erb                      |  78 ++++++++++++++++++++
 bamboo/templates/default/stop-bamboo.sh.erb                 |  39 ++++++++++
 bamboo/templates/default/web_app.conf.erb                   |  80 ++++++++++++++++++++
 41 files changed, 2354 insertions(+)
 create mode 100644 bamboo/.gitignore
 create mode 100644 bamboo/.kitchen.cloud.yml
 create mode 100644 bamboo/.kitchen.yml
 create mode 100644 bamboo/.rubocop.yml
 create mode 100644 bamboo/.travis.yml
 create mode 100644 bamboo/Berksfile
 create mode 100644 bamboo/Gemfile
 create mode 100644 bamboo/README.md
 create mode 100644 bamboo/Rakefile
 create mode 100644 bamboo/TESTING.md
 create mode 100644 bamboo/Thorfile
 create mode 100644 bamboo/attributes/apache2.rb
 create mode 100644 bamboo/attributes/default.rb
 create mode 100644 bamboo/chefignore
 create mode 100644 bamboo/files/default/gelfj-1.1.2.jar
 create mode 100644 bamboo/files/default/json-simple-1.1.jar
 create mode 100644 bamboo/libraries/bamboo.rb
 create mode 100644 bamboo/libraries/matchers.rb
 create mode 100644 bamboo/metadata.json
 create mode 100644 bamboo/metadata.rb
 create mode 100644 bamboo/providers/agent_capability.rb
 create mode 100644 bamboo/recipes/_unit_testing_agent_capability.rb
 create mode 100644 bamboo/recipes/agent.rb
 create mode 100644 bamboo/recipes/apache2.rb
 create mode 100644 bamboo/recipes/backup.rb
 create mode 100644 bamboo/recipes/database_mysql.rb
 create mode 100644 bamboo/recipes/default.rb
 create mode 100644 bamboo/recipes/graylog.rb
 create mode 100644 bamboo/recipes/server.rb
 create mode 100644 bamboo/recipes/upgrade.rb
 create mode 100644 bamboo/resources/agent_capability.rb
 create mode 100644 bamboo/templates/default/bamboo-agent.sh.erb
 create mode 100644 bamboo/templates/default/bamboo-capabilities.properties.erb
 create mode 100644 bamboo/templates/default/bamboo-init.properties.erb
 create mode 100644 bamboo/templates/default/bamboo.init.erb
 create mode 100644 bamboo/templates/default/log4j.properties.erb
 create mode 100644 bamboo/templates/default/procfile.monitrc.erb
 create mode 100644 bamboo/templates/default/seraph-config.xml.erb
 create mode 100644 bamboo/templates/default/setenv.sh.erb
 create mode 100644 bamboo/templates/default/stop-bamboo.sh.erb
 create mode 100644 bamboo/templates/default/web_app.conf.erb
Cookbook bamboo version 1.4.0 successfully installed
Installing apt to /Volumes/Storage/martincleaver/SoftwareDevelopment/Chef/bp_bamboo
Checking out the master branch.
Creating pristine copy branch chef-vendor-apt
Downloading apt from the cookbooks site at version 2.7.0 to /Volumes/Storage/martincleaver/SoftwareDevelopment/Chef/bp_bamboo/apt.tar.gz
Cookbook saved: /Volumes/Storage/martincleaver/SoftwareDevelopment/Chef/bp_bamboo/apt.tar.gz
Removing pre-existing version.
Uncompressing apt version 2.7.0.
removing downloaded tarball
1 files updated, committing changes
Creating tag cookbook-site-imported-apt-2.7.0
Checking out the master branch.
Updating 62c3c94..8990e02
Fast-forward
 apt/.gitignore                                     |  15 ++++++++
 apt/.kitchen.cloud.yml                             |  47 +++++++++++++++++++++++++
 apt/.kitchen.yml                                   |  62 +++++++++++++++++++++++++++++++++
 apt/.rubocop.yml                                   |  37 ++++++++++++++++++++
 apt/.travis.yml                                    |  44 ++++++++++++++++++++++++
 apt/Berksfile                                      |   8 +++++
 apt/CHANGELOG.md                                   | 217 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 apt/CONTRIBUTING                                   |  29 ++++++++++++++++
 apt/Gemfile                                        |  37 ++++++++++++++++++++
 apt/Guardfile                                      |  35 +++++++++++++++++++
 apt/LICENSE                                        | 201 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 apt/README.md                                      | 281 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 apt/Rakefile                                       |  59 +++++++++++++++++++++++++++++++
 apt/TESTING.md                                     | 187 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 apt/attributes/default.rb                          |  48 ++++++++++++++++++++++++++
 apt/files/default/15update-stamp                   |   1 +
 apt/files/default/apt-proxy-v2.conf                |  50 +++++++++++++++++++++++++++
 apt/libraries/helpers.rb                           |  49 ++++++++++++++++++++++++++
 apt/libraries/matchers.rb                          |  17 +++++++++
 apt/libraries/network.rb                           |  31 +++++++++++++++++
 apt/metadata.json                                  | 121 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 apt/metadata.rb                                    |  38 ++++++++++++++++++++
 apt/providers/preference.rb                        |  69 +++++++++++++++++++++++++++++++++++++
 apt/providers/repository.rb                        | 203 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 apt/recipes/cacher-client.rb                       |  83 ++++++++++++++++++++++++++++++++++++++++++++
 apt/recipes/cacher-ng.rb                           |  43 +++++++++++++++++++++++
 apt/recipes/default.rb                             | 112 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 apt/recipes/unattended-upgrades.rb                 |  47 +++++++++++++++++++++++++
 apt/resources/preference.rb                        |  37 ++++++++++++++++++++
 apt/resources/repository.rb                        |  55 +++++++++++++++++++++++++++++
 apt/templates/debian-6.0/acng.conf.erb             | 173 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 apt/templates/default/01proxy.erb                  |   9 +++++
 apt/templates/default/20auto-upgrades.erb          |   2 ++
 apt/templates/default/50unattended-upgrades.erb    |  68 ++++++++++++++++++++++++++++++++++++
 apt/templates/default/acng.conf.erb                | 275 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 apt/templates/default/unattended-upgrades.seed.erb |   1 +
 apt/templates/ubuntu-10.04/acng.conf.erb           | 269 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 37 files changed, 3060 insertions(+)
 create mode 100644 apt/.gitignore
 create mode 100644 apt/.kitchen.cloud.yml
 create mode 100644 apt/.kitchen.yml
 create mode 100644 apt/.rubocop.yml
 create mode 100644 apt/.travis.yml
 create mode 100644 apt/Berksfile
 create mode 100644 apt/CHANGELOG.md
 create mode 100644 apt/CONTRIBUTING
 create mode 100644 apt/Gemfile
 create mode 100644 apt/Guardfile
 create mode 100644 apt/LICENSE
 create mode 100644 apt/README.md
 create mode 100644 apt/Rakefile
 create mode 100644 apt/TESTING.md
 create mode 100644 apt/attributes/default.rb
 create mode 100644 apt/files/default/15update-stamp
 create mode 100644 apt/files/default/apt-proxy-v2.conf
 create mode 100644 apt/libraries/helpers.rb
 create mode 100644 apt/libraries/matchers.rb
 create mode 100644 apt/libraries/network.rb
 create mode 100644 apt/metadata.json
 create mode 100644 apt/metadata.rb
 create mode 100644 apt/providers/preference.rb
 create mode 100644 apt/providers/repository.rb
 create mode 100644 apt/recipes/cacher-client.rb
 create mode 100644 apt/recipes/cacher-ng.rb
 create mode 100644 apt/recipes/default.rb
 create mode 100644 apt/recipes/unattended-upgrades.rb
 create mode 100644 apt/resources/preference.rb
 create mode 100644 apt/resources/repository.rb
 create mode 100644 apt/templates/debian-6.0/acng.conf.erb
 create mode 100644 apt/templates/default/01proxy.erb
 create mode 100644 apt/templates/default/20auto-upgrades.erb
 create mode 100644 apt/templates/default/50unattended-upgrades.erb
 create mode 100644 apt/templates/default/acng.conf.erb
 create mode 100644 apt/templates/default/unattended-upgrades.seed.erb
 create mode 100644 apt/templates/ubuntu-10.04/acng.conf.erb
Cookbook apt version 2.7.0 successfully installed
Installing ark to /Volumes/Storage/martincleaver/SoftwareDevelopment/Chef/bp_bamboo
Checking out the master branch.
Creating pristine copy branch chef-vendor-ark
Downloading ark from the cookbooks site at version 0.9.0 to /Volumes/Storage/martincleaver/SoftwareDevelopment/Chef/bp_bamboo/ark.tar.gz
Cookbook saved: /Volumes/Storage/martincleaver/SoftwareDevelopment/Chef/bp_bamboo/ark.tar.gz
Removing pre-existing version.
Uncompressing ark version 0.9.0.
removing downloaded tarball
1 files updated, committing changes
Creating tag cookbook-site-imported-ark-0.9.0
Checking out the master branch.
Updating 8990e02..83bd944
Fast-forward
 ark/CHANGELOG.md                                    | 135 ++++++++++++++++++++++++++++++++++++++++++++++++++
 ark/README.md                                       | 305 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 ark/attributes/default.rb                           |  16 ++++++
 ark/files/default/foo.tar.gz                        | Bin 0 -> 219 bytes
 ark/files/default/foo.tbz                           | Bin 0 -> 163 bytes
 ark/files/default/foo.tgz                           | Bin 0 -> 152 bytes
 ark/files/default/foo.txz                           | Bin 0 -> 200 bytes
 ark/files/default/foo.zip                           | Bin 0 -> 976 bytes
 ark/files/default/foo_sub.tar.gz                    | Bin 0 -> 193 bytes
 ark/files/default/foo_sub.zip                       | Bin 0 -> 614 bytes
 ark/files/default/tests/minitest/default_test.rb    |   0
 ark/files/default/tests/minitest/support/helpers.rb |   0
 ark/files/default/tests/minitest/test_test.rb       | 102 ++++++++++++++++++++++++++++++++++++++
 ark/libraries/default.rb                            | 234 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 ark/metadata.json                                   |  38 +++++++++++++++
 ark/metadata.rb                                     |  16 ++++++
 ark/providers/default.rb                            | 396 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 ark/recipes/default.rb                              |  27 ++++++++++
 ark/recipes/test.rb                                 | 152 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 ark/resources/default.rb                            |  55 +++++++++++++++++++++
 ark/templates/default/add_to_path.sh.erb            |   1 +
 21 files changed, 1477 insertions(+)
 create mode 100644 ark/CHANGELOG.md
 create mode 100644 ark/README.md
 create mode 100644 ark/attributes/default.rb
 create mode 100644 ark/files/default/foo.tar.gz
 create mode 100644 ark/files/default/foo.tbz
 create mode 100644 ark/files/default/foo.tgz
 create mode 100644 ark/files/default/foo.txz
 create mode 100644 ark/files/default/foo.zip
 create mode 100644 ark/files/default/foo_sub.tar.gz
 create mode 100644 ark/files/default/foo_sub.zip
 create mode 100644 ark/files/default/tests/minitest/default_test.rb
 create mode 100644 ark/files/default/tests/minitest/support/helpers.rb
 create mode 100644 ark/files/default/tests/minitest/test_test.rb
 create mode 100644 ark/libraries/default.rb
 create mode 100644 ark/metadata.json
 create mode 100644 ark/metadata.rb
 create mode 100644 ark/providers/default.rb
 create mode 100644 ark/recipes/default.rb
 create mode 100644 ark/recipes/test.rb
 create mode 100644 ark/resources/default.rb
 create mode 100644 ark/templates/default/add_to_path.sh.erb
Cookbook ark version 0.9.0 successfully installed
Installing windows to /Volumes/Storage/martincleaver/SoftwareDevelopment/Chef/bp_bamboo
Checking out the master branch.
Creating pristine copy branch chef-vendor-windows
Downloading windows from the cookbooks site at version 1.36.6 to /Volumes/Storage/martincleaver/SoftwareDevelopment/Chef/bp_bamboo/windows.tar.gz
Cookbook saved: /Volumes/Storage/martincleaver/SoftwareDevelopment/Chef/bp_bamboo/windows.tar.gz
Removing pre-existing version.
Uncompressing windows version 1.36.6.
removing downloaded tarball
1 files updated, committing changes
Creating tag cookbook-site-imported-windows-1.36.6
Checking out the master branch.
Updating 83bd944..c9c0b29
Fast-forward
 windows/CHANGELOG.md                                     | 320 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 windows/README.md                                        | 749 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 windows/attributes/default.rb                            |  24 +++++
 windows/files/default/handlers/windows_reboot_handler.rb |  76 +++++++++++++++
 windows/libraries/feature_base.rb                        |  59 ++++++++++++
 windows/libraries/matchers.rb                            | 465 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 windows/libraries/powershell_helper.rb                   |  59 ++++++++++++
 windows/libraries/powershell_out.rb                      |  79 +++++++++++++++
 windows/libraries/registry_helper.rb                     | 364 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 windows/libraries/version.rb                             | 207 +++++++++++++++++++++++++++++++++++++++
 windows/libraries/windows_architecture_helper.rb         |  87 +++++++++++++++++
 windows/libraries/windows_helper.rb                      | 148 ++++++++++++++++++++++++++++
 windows/libraries/windows_package.rb                     | 224 +++++++++++++++++++++++++++++++++++++++++++
 windows/libraries/windows_privileged.rb                  |  94 ++++++++++++++++++
 windows/libraries/wmi_helper.rb                          |  32 +++++++
 windows/metadata.json                                    |  31 ++++++
 windows/providers/auto_run.rb                            |  33 +++++++
 windows/providers/batch.rb                               |  63 ++++++++++++
 windows/providers/feature_dism.rb                        |  64 +++++++++++++
 windows/providers/feature_powershell.rb                  |  38 ++++++++
 windows/providers/feature_servermanagercmd.rb            |  61 ++++++++++++
 windows/providers/font.rb                                |  69 +++++++++++++
 windows/providers/pagefile.rb                            | 153 +++++++++++++++++++++++++++++
 windows/providers/path.rb                                |  52 ++++++++++
 windows/providers/printer.rb                             | 101 ++++++++++++++++++++
 windows/providers/printer_port.rb                        | 103 ++++++++++++++++++++
 windows/providers/reboot.rb                              |  33 +++++++
 windows/providers/registry.rb                            |  75 +++++++++++++++
 windows/providers/shortcut.rb                            |  56 +++++++++++
 windows/providers/task.rb                                | 167 ++++++++++++++++++++++++++++++++
 windows/providers/zipfile.rb                             |  93 ++++++++++++++++++
 windows/recipes/default.rb                               |  34 +++++++
 windows/recipes/reboot_handler.rb                        |  32 +++++++
 windows/resources/auto_run.rb                            |  30 ++++++
 windows/resources/batch.rb                               |  36 +++++++
 windows/resources/feature.rb                             |  44 +++++++++
 windows/resources/font.rb                                |  25 +++++
 windows/resources/pagefile.rb                            |  29 ++++++
 windows/resources/path.rb                                |  28 ++++++
 windows/resources/printer.rb                             |  41 ++++++++
 windows/resources/printer_port.rb                        |  40 ++++++++
 windows/resources/reboot.rb                              |  29 ++++++
 windows/resources/registry.rb                            |  34 +++++++
 windows/resources/shortcut.rb                            |  35 +++++++
 windows/resources/task.rb                                |  50 ++++++++++
 windows/resources/zipfile.rb                             |  33 +++++++
 46 files changed, 4699 insertions(+)
 create mode 100644 windows/CHANGELOG.md
 create mode 100644 windows/README.md
 create mode 100644 windows/attributes/default.rb
 create mode 100644 windows/files/default/handlers/windows_reboot_handler.rb
 create mode 100644 windows/libraries/feature_base.rb
 create mode 100644 windows/libraries/matchers.rb
 create mode 100644 windows/libraries/powershell_helper.rb
 create mode 100644 windows/libraries/powershell_out.rb
 create mode 100644 windows/libraries/registry_helper.rb
 create mode 100644 windows/libraries/version.rb
 create mode 100644 windows/libraries/windows_architecture_helper.rb
 create mode 100644 windows/libraries/windows_helper.rb
 create mode 100644 windows/libraries/windows_package.rb
 create mode 100644 windows/libraries/windows_privileged.rb
 create mode 100644 windows/libraries/wmi_helper.rb
 create mode 100644 windows/metadata.json
 create mode 100644 windows/providers/auto_run.rb
 create mode 100644 windows/providers/batch.rb
 create mode 100644 windows/providers/feature_dism.rb
 create mode 100644 windows/providers/feature_powershell.rb
 create mode 100644 windows/providers/feature_servermanagercmd.rb
 create mode 100644 windows/providers/font.rb
 create mode 100644 windows/providers/pagefile.rb
 create mode 100644 windows/providers/path.rb
 create mode 100644 windows/providers/printer.rb
 create mode 100644 windows/providers/printer_port.rb
 create mode 100644 windows/providers/reboot.rb
 create mode 100644 windows/providers/registry.rb
 create mode 100644 windows/providers/shortcut.rb
 create mode 100644 windows/providers/task.rb
 create mode 100644 windows/providers/zipfile.rb
 create mode 100644 windows/recipes/default.rb
 create mode 100644 windows/recipes/reboot_handler.rb
 create mode 100644 windows/resources/auto_run.rb
 create mode 100644 windows/resources/batch.rb
 create mode 100644 windows/resources/feature.rb
 create mode 100644 windows/resources/font.rb
 create mode 100644 windows/resources/pagefile.rb
 create mode 100644 windows/resources/path.rb
 create mode 100644 windows/resources/printer.rb
 create mode 100644 windows/resources/printer_port.rb
 create mode 100644 windows/resources/reboot.rb
 create mode 100644 windows/resources/registry.rb
 create mode 100644 windows/resources/shortcut.rb
 create mode 100644 windows/resources/task.rb
 create mode 100644 windows/resources/zipfile.rb
Cookbook windows version 1.36.6 successfully installed
Installing chef_handler to /Volumes/Storage/martincleaver/SoftwareDevelopment/Chef/bp_bamboo
Checking out the master branch.
Creating pristine copy branch chef-vendor-chef_handler
Downloading chef_handler from the cookbooks site at version 1.1.6 to /Volumes/Storage/martincleaver/SoftwareDevelopment/Chef/bp_bamboo/chef_handler.tar.gz
Cookbook saved: /Volumes/Storage/martincleaver/SoftwareDevelopment/Chef/bp_bamboo/chef_handler.tar.gz
Removing pre-existing version.
Uncompressing chef_handler version 1.1.6.
removing downloaded tarball
1 files updated, committing changes
Creating tag cookbook-site-imported-chef_handler-1.1.6
Checking out the master branch.
Updating c9c0b29..a8ebe0a
Fast-forward
 chef_handler/CHANGELOG.md                  |  44 ++++++++++++++++++++++++++++++++++++++++++++
 chef_handler/README.md                     | 103 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 chef_handler/attributes/default.rb         |  30 ++++++++++++++++++++++++++++++
 chef_handler/files/default/handlers/README |   1 +
 chef_handler/libraries/matchers.rb         |  29 +++++++++++++++++++++++++++++
 chef_handler/metadata.json                 |  29 +++++++++++++++++++++++++++++
 chef_handler/metadata.rb                   |   7 +++++++
 chef_handler/providers/default.rb          |  97 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 chef_handler/recipes/default.rb            |  33 +++++++++++++++++++++++++++++++++
 chef_handler/recipes/json_file.rb          |  28 ++++++++++++++++++++++++++++
 chef_handler/resources/default.rb          |  34 ++++++++++++++++++++++++++++++++++
 11 files changed, 435 insertions(+)
 create mode 100644 chef_handler/CHANGELOG.md
 create mode 100644 chef_handler/README.md
 create mode 100644 chef_handler/attributes/default.rb
 create mode 100644 chef_handler/files/default/handlers/README
 create mode 100644 chef_handler/libraries/matchers.rb
 create mode 100644 chef_handler/metadata.json
 create mode 100644 chef_handler/metadata.rb
 create mode 100644 chef_handler/providers/default.rb
 create mode 100644 chef_handler/recipes/default.rb
 create mode 100644 chef_handler/recipes/json_file.rb
 create mode 100644 chef_handler/resources/default.rb
Cookbook chef_handler version 1.1.6 successfully installed
Installing 7-zip to /Volumes/Storage/martincleaver/SoftwareDevelopment/Chef/bp_bamboo
Checking out the master branch.
Creating pristine copy branch chef-vendor-7-zip
Downloading 7-zip from the cookbooks site at version 1.0.2 to /Volumes/Storage/martincleaver/SoftwareDevelopment/Chef/bp_bamboo/7-zip.tar.gz
Cookbook saved: /Volumes/Storage/martincleaver/SoftwareDevelopment/Chef/bp_bamboo/7-zip.tar.gz
Removing pre-existing version.
Uncompressing 7-zip version 1.0.2.
removing downloaded tarball
1 files updated, committing changes
Creating tag cookbook-site-imported-7-zip-1.0.2
Checking out the master branch.
Updating a8ebe0a..ff20ce0
Fast-forward
 7-zip/CHANGELOG.md          | 13 +++++++++++++
 7-zip/README.md             | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 7-zip/attributes/default.rb | 31 +++++++++++++++++++++++++++++++
 7-zip/metadata.json         | 31 +++++++++++++++++++++++++++++++
 7-zip/metadata.rb           | 10 ++++++++++
 7-zip/recipes/default.rb    | 31 +++++++++++++++++++++++++++++++
 6 files changed, 166 insertions(+)
 create mode 100644 7-zip/CHANGELOG.md
 create mode 100644 7-zip/README.md
 create mode 100644 7-zip/attributes/default.rb
 create mode 100644 7-zip/metadata.json
 create mode 100644 7-zip/metadata.rb
 create mode 100644 7-zip/recipes/default.rb
Cookbook 7-zip version 1.0.2 successfully installed
Installing windows to /Volumes/Storage/martincleaver/SoftwareDevelopment/Chef/bp_bamboo
Checking out the master branch.
Pristine copy branch (chef-vendor-windows) exists, switching to it.
Downloading windows from the cookbooks site at version 1.36.6 to /Volumes/Storage/martincleaver/SoftwareDevelopment/Chef/bp_bamboo/windows.tar.gz
Cookbook saved: /Volumes/Storage/martincleaver/SoftwareDevelopment/Chef/bp_bamboo/windows.tar.gz
Removing pre-existing version.
Uncompressing windows version 1.36.6.
removing downloaded tarball
1 files updated, committing changes
ERROR: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of git commit -m "Import windows version 1.36.6" -- windows ----
STDOUT: On branch chef-vendor-windows
nothing to commit, working directory clean
STDERR: 
---- End output of git commit -m "Import windows version 1.36.6" -- windows ----
Ran git commit -m "Import windows version 1.36.6" -- windows returned 1
martincleaver@MartinCaversMBP:~/SoftwareDevelopment/Chef/bp_bamboo 11:32:27 622$

Aborting with code '1' looks like an error. Any idea what's wrong?

Thanks, Martin.

Make default mysql version more cross-platform

Bamboo support 5.5 and 5.6: https://confluence.atlassian.com/display/BAMBOO/Supported+platforms

The default of 5.6 doesn't exist on some systems (like ubuntu 12.04), so might be more friendly to default to whatever the mysql library cookbook says?

https://github.com/chef-cookbooks/mysql/blob/master/libraries/helpers.rb#L430-L445

We could do this by:

default[:bamboo][:database][:version] = nil

This would only go awry on old platforms that install 5.1 (unsupported)

FYI, works on RHEL 6.5

Hello,

Thanks for publishing your Bamboo cookbook. I used bamboo::default on RHEL 6.5 but didn't test greylog or backups.

Thanks again.

Bamboo server fails on elastic bamboo configuration

I get a java ca certificates failure when entering my Access Key ID and secret

I resolved this by adding

execute 'ca-certificates-java.postinst configure' do
  command 'sudo /var/lib/dpkg/info/ca-certificates-java.postinst configure'
end

to my wrapper recipe

Some problem resolving dependencies

Have no real idea what's going wrong here, but Librarian seems to have a lot of trouble pulling down this cookbook, i forked the project and just removed the version numbers (ie ~>1.2.8) from the metadata.rb and it all seems to flow though fine. so no real idea what's going wrong.

[Librarian] Resolving bamboo (>= 0) https://github.com/ramonskie/bamboo.git#master
[Librarian] Checking manifests
[Librarian] --- No output
[Librarian] --- No output
[Librarian] --> 4137ea4
[Librarian] --- No output
[Librarian] --- No output
[Librarian] --> origin
[Librarian] --> origin/HEAD -> origin/master
[Librarian] --> origin/master
[Librarian] --> 4137ea4
[Librarian] --> 4137ea4
[Librarian] --> 4137ea4
[Librarian] Checking bamboo/1.4.0 https://github.com/ramonskie/bamboo.git#master
[Librarian] Scheduling apache2 (>= 0.0.0) https://github.com/viverae-cookbooks/apache2.git#master
[Librarian] Scheduling apt (>= 0.0.0) <(no source specified)>
[Librarian] Scheduling ark (> 0.9.0) http://community.opscode.com/api/v1
[Librarian] Scheduling backup (
> 0.2.1) https://github.com/damm/backup.git#master
[Librarian] Conflict between cron (~> 1.2.8) https://github.com/opscode-cookbooks/cron.git#master and cron/1.6.1 https://github.com/opscode-cookbooks/cron.git#master
[Librarian] Backtracking from bamboo/1.4.0 https://github.com/ramonskie/bamboo.git#master
[Librarian] Failed to resolve bamboo (>= 0) https://github.com/ramonskie/bamboo.git#master
Could not resolve the dependencies.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.