Provides custom resources for installing and configuring MongoDB Community Edition.
Chef Infra Client 15.3 or later.
This cookbook targets MongoDB 8.0 Community packages on the platforms listed in metadata.rb.
See LIMITATIONS.md for current vendor package limitations.
This cookbook is now a custom-resource cookbook. It no longer ships public recipes, attributes, or definitions. Existing users must move recipe and node-attribute usage into wrapper cookbook resource declarations.
See migration.md for mapping examples.
- mongodb_repository
- mongodb_install
- mongodb_config
- mongodb_service
- mongodb_instance
- mongodb_replicaset
- mongodb_sharding
- mongodb_ruby_gems
- mongodb_agent
- mongodb_user
mongodb_instance 'mongod' do
version '8.0'
action :create
endmongodb_instance 'mongod' do
config(
'net' => {
'bindIp' => '127.0.0.1',
'port' => 27_017,
},
'storage' => {
'dbPath' => '/srv/mongodb',
}
)
endmongodb_replicaset 'rs_default' do
auto_configure false
endmongodb_sharding 'router' do
role 'mongos'
config(
'sharding' => {
'configDB' => 'cfg1.example.com:27019,cfg2.example.com:27019,cfg3.example.com:27019',
}
)
auto_configure false
endmongodb_agent 'monitoring' do
api_key 'api-key'
endmongodb_ruby_gems 'mongo driver'
mongodb_user 'app' do
password 'secret'
roles ['readWrite']
database 'app'
endThis cookbook is maintained by the Sous Chefs. For more information, visit sous-chefs.org or the Chef Community Slack #sous-chefs.
This project exists thanks to all the people who contribute.
Thank you to all our backers.
Support this project by becoming a sponsor.