Skip to content
This repository has been archived by the owner on May 20, 2020. It is now read-only.

Commit

Permalink
Merge pull request #29 from sunggun-yu/develop
Browse files Browse the repository at this point in the history
5.0.0 RC
  • Loading branch information
sunggun-yu committed Feb 10, 2016
2 parents 87906b4 + 8391447 commit 9674db3
Show file tree
Hide file tree
Showing 25 changed files with 527 additions and 118 deletions.
89 changes: 47 additions & 42 deletions .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,25 @@ provisioner:

platforms:
- name: ubuntu-12.04
run_list:
- recipe[apt]
attributes:
apt:
compile_time_update: true
- name: ubuntu-14.04
run_list:
- recipe[apt]
attributes:
apt:
compile_time_update: true
- name: debian-7.8
run_list:
- recipe[apt]
attributes:
apt:
compile_time_update: true
- name: centos-6.6
- name: centos-7.2
- name: oel-6.6
driver:
box: rafacas/oel66-plain
Expand All @@ -26,7 +43,6 @@ suites:
driver:
vm_hostname: mongo3
run_list:
- recipe[apt]
- recipe[mongodb3::default]
attributes:
chef_client:
Expand All @@ -35,35 +51,30 @@ suites:
log_level: info
build-essential:
compile_time: false
apt:
compile_time_update: true
provisioner:
client_rb:
environment: dev
excludes:
- oel-6.6
- ami-2014.03

- name: default-305
- name: chef-client-11
driver:
vm_hostname: mongo3
driver_config:
require_chef_omnibus: 11.18.12
run_list:
- recipe[apt]
- recipe[mongodb3::default]
excludes:
- debian-7.8
- oel-6.6
- ami-2014.03
- ubuntu-14.04

- name: default-30x
run_list:
- recipe[mongodb3-test::default-30x]
attributes:
mongodb3:
version: 3.0.5
chef_client:
config:
force_logger: true
log_level: info
build-essential:
compile_time: false
apt:
compile_time_update: true
provisioner:
client_rb:
environment: dev
excludes:
- oel-6.6
- ami-2014.03
Expand All @@ -72,7 +83,6 @@ suites:
driver:
vm_hostname: replica
run_list:
- recipe[apt]
- role[replset]
attributes:
chef_client:
Expand All @@ -81,8 +91,6 @@ suites:
log_level: info
build-essential:
compile_time: false
apt:
compile_time_update: true
provisioner:
client_rb:
environment: dev
Expand All @@ -94,7 +102,6 @@ suites:
driver:
vm_hostname: configsvr
run_list:
- recipe[apt]
- role[configsvr]
attributes:
chef_client:
Expand All @@ -103,8 +110,6 @@ suites:
log_level: info
build-essential:
compile_time: false
apt:
compile_time_update: true
provisioner:
client_rb:
environment: dev
Expand All @@ -116,7 +121,6 @@ suites:
driver:
vm_hostname: mongos
run_list:
- recipe[apt]
- role[mongos]
attributes:
chef_client:
Expand All @@ -125,30 +129,26 @@ suites:
log_level: info
build-essential:
compile_time: false
apt:
compile_time_update: true
provisioner:
client_rb:
environment: dev
excludes:
- oel-6.6
- ami-2014.03

- name: wired-tiger
driver:
vm_hostname: wired-tiger
run_list:
- recipe[apt]
- role[wired_tiger]
attributes:
mongodb3:
version: '3.0.9'
chef_client:
config:
force_logger: true
log_level: info
build-essential:
compile_time: false
apt:
compile_time_update: true
provisioner:
client_rb:
environment: dev
Expand All @@ -160,7 +160,6 @@ suites:
driver:
vm_hostname: mms-automation-agent
run_list:
- recipe[apt]
- role[mms_automation_agent]
attributes:
chef_client:
Expand All @@ -169,21 +168,31 @@ suites:
log_level: info
build-essential:
compile_time: false
apt:
compile_time_update: true
provisioner:
client_rb:
environment: dev
excludes:
- oel-6.6
- ami-2014.03
- debian-7.8
- centos-7.2

- name: mms-automation-agent-with-databag
driver:
vm_hostname: mms-automation-agent
encrypted_data_bag_secret_key_path: "test/data_bags/encrypted_data_bag_secret"
run_list:
- recipe[mongodb3-test::mms_automation_agent_with_data_bag]
provisioner:
client_rb:
environment: dev
includes:
- ubuntu-12.04

- name: mms-monitoring-agent
driver:
vm_hostname: mms-monitoring-agent
run_list:
- recipe[apt]
- role[mms_monitoring_agent]
attributes:
chef_client:
Expand All @@ -192,15 +201,14 @@ suites:
log_level: info
build-essential:
compile_time: false
apt:
compile_time_update: true
provisioner:
client_rb:
environment: dev
excludes:
- oel-6.6
- ami-2014.03
- debian-7.8
- centos-7.2

- name: ami-default
driver:
Expand All @@ -219,8 +227,5 @@ suites:
provisioner:
client_rb:
environment: dev
excludes:
- ubuntu-12.04
- centos-6.6
- oel-6.6
- debian-7.8
includes:
- ami-2014.03
4 changes: 4 additions & 0 deletions Berksfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
source "https://supermarket.chef.io"

metadata

group :integration do
cookbook 'mongodb3-test', :path => './test/cookbooks/mongodb3-test'
end
15 changes: 13 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
# mongodb3 Cookbook CHANGELOG

## Next
## 5.0.0

* Fixed Chef::Mixin::Template::TemplateError: Node attributes are read-only when you do not specify which precedence level to set with Chef 11.10 - Daniel Doubrovkine([@dblock](https://github.com/dblock)) #21.
* Adding test for chef client 11.18.12 as 11.x : testing for #21
* Adding kitchen test for ubuntu 14.04 : #13
* Using `/var/run/mongodb/mongod.pid` for centos7 : #25
* Moving attribute setter to recipe in order to support install 3.0.x in wrapper cookbook. : #23
* Adding the mongodb 3.0.x version testing in test wrapper cookbook : #23
* Adding key file directory creation
* Fixing for yum and apt repo name
* Update default version as 3.2.1 : #24

## 4.0.0

Thank you so much for your contribution!

* Allowed overrides of mongo repo name for debian/ubuntu packages - Dave Augustus([@daugustus](https://github.com/daugustus))
* Added support for MongoDB 3.2.0 - Constantin Guay([@Cog-g](https://github.com/Cog-g))
* Support for both MongoDB 3.0.x and 3.2.x - Julien Pervillé([@jperville](https://github.com/jperville))
Expand All @@ -18,6 +29,7 @@ Thank you so much for your contribution!
* Removing kitchen test of mongos for oel-6.6 : There was no 3.0.7-1.el6 of mongos package for Oracle Linux 6.6 (Test failure). I'll keep testing and bring it back later.

NOTICE :

* Current version 3.0.0 is not supporting mongos 3.0.7 for Oracle Linux 6.6. The package version 3.0.7-1.el6 of mongodb-org-shell package wasn't existing (Test failure).
* Current version 3.0.0 is not supporting automation and monitoring mms agent installation for Debian 7.8

Expand All @@ -29,7 +41,6 @@ WARNING : `mms-agent` recipe has been deprecated at this version.
* Removing `mms-agent` recipe and divide it as `mms-automation-agent` and `mms-monitoring-agent` recipe
* PR #3 : Bump up the runit dependency version to 1.7.0. Thank you for your contribution @dherges


## 1.0.0

mongodb3 Chef Cookbook 1.0.0 release.
Expand Down
27 changes: 16 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,36 @@

[![Build Status](https://travis-ci.org/sunggun-yu/chef-mongodb3.svg?branch=master)](https://travis-ci.org/sunggun-yu/chef-mongodb3)

Install and configure the MongoDB 3
## Install and configure the MongoDB 3

* Install and configure the mongod (or configure the config server for shard cluster)
* Install and configure the mongos
* Also, mongos configure the mongos service with runit : `service mongos start|stop|restart|status`
* Install the MMS Automation Agent
* Install the MMS Monitoring Agent

NOTICE :
* Current version 4.0.0 is not supporting mongos 3.0.7 for Oracle Linux 6.6. The package version 3.0.7-1.el6 of mongodb-org-shell package wasn't existing (Test failure).
* Current version 4.0.0 is not supporting automation and monitoring mms agent installation for Debian 7.8
* MongoDB 3.2.0 is default version of mongodb3 cookbook - by [@Cog_g](https://github.com/Cog-g)
### NOTICE :

* Current version 5.0.0 is not supporting automation and monitoring mms agent installation for Debian 7.8
* MongoDB 3.2.1 is default version of mongodb3 cookbook

### Contributors

Contributors
* David Herges - [@dherges](https://github.com/dherges)
* Joe Passavanti - [@gottaloveit](https://github.com/gottaloveit)
* MEGA MOnolithic meTHod - [@megamoth](https://github.com/megamoth)
* Dave Augustus - [@daugustus](https://github.com/daugustus)
* Constantin Guay - [@Cog-g](https://github.com/Cog-g)
* Julien Pervillé - [@jperville](https://github.com/jperville)
* Daniel Doubrov - [@dblock](https://github.com/dblock)

## Supported Platforms

The following platforms have been tested with Test Kitchen

* Ubuntu 12.04, 14.04
* Debian 7.8
* CentOS 6.6
* CentOS 6.6, 7.2
* Oralce 6.6
* Amazon Linux

Expand All @@ -40,16 +44,17 @@ WARNING : Please do not set the user and group attribute on your side. This cook

```
# MongoDB version to install
default['mongodb3']['version'] = '3.2.0'
default['mongodb3']['version'] = '3.2.1'
default['mongodb3']['package']['version'] = Actual package version to install. It builds from version attribute.
# Package repository url
default['mongodb3']['package']['repo']['url'] = Package repository url
# Attribute for apt_repository
default['mongodb3']['package']['repo']['apt']['keyserver'] = key server url for ubuntu or debian
default['mongodb3']['package']['repo']['apt']['key'] = 'EA312927'
default['mongodb3']['package']['repo']['apt']['components'] = `multiverse` for ubuntu. `main` for debian
default['mongodb3']['package']['repo']['apt']['name'] = nil # eg. 3.0, 3.2
default['mongodb3']['package']['repo']['apt']['keyserver'] = nil # eg. hkp://keyserver.ubuntu.com:80
default['mongodb3']['package']['repo']['apt']['key'] = nil # eg. 3.2 : 'EA312927', 3.0 : '7F0CEB10'
default['mongodb3']['package']['repo']['apt']['components'] = nil # `multiverse` for ubuntu. `main` for debian
# MongoDB user:group : PLEASE DO NOT SET THE USER AND GROUP ATTRIBUTE
default['mongodb3']['user'] = 'mongod' | 'mongodb'
Expand Down
Loading

0 comments on commit 9674db3

Please sign in to comment.