/chef-mongo-cookbook2

Primary LanguageRubyOtherNOASSERTION

Mongo Cookbook 👩‍🍳 🥑

A cookbook for Mongodb that contains information on how to connect a cookbook to Jenkins and create an Amazon EC2 instance, assuming that you have access to AWS and an EC2 instance with Jenkins installed.

Objectives:

Add new ChefSpec tests:

  • Create mongod.conf file
  • Create a mongod.service remote_file
  • MongoDB service should be enabled
  • MongoDB service should be started

And InSpec tests for the following:

  • MongoDB is running
  • MongoDB is enabled
  • Listening on port: 27017
  • Listening on port: 0.0.0.0 by default

Install and configure AWS CLI:

Testing build on Jenkins

  • Create a new project and make it listen to your github via webhook
  • Test1 (console output fail: Jenkins does not recognise platform ubuntu)
  • Test2 (console output fail: got rid of platform error by muting 'chef exec rspec spec' however, new error)
  • Test3 (console output fail: cannot find kitchen yml file)