The chef cookbook for deploying conqueso.
This cookbook has three options in mind for the end user:
1 - Standalone developer of the cookbook
2 - Someone who is preparing images (either AMIs or VMs etc) and has a remote database
3 - A developer of both the server and the cookbook (so someone who wants to grab the latest code from source control)
['conqueso']['version']
- The version of the conqueso server to download.['conqueso']['install']['frompackage']
- Setting this to true will pick the version specifed in the version attribute.['conqueso']['install']['fromsource']
- Setting this to true will do a fresh git clone from the conqueso github project.['conqueso']['http']['port']
- The port the conqueso server runs on.['conqueso']['db']['type']
- The type of the backend to use (CASE SENSITIVE!).['conqueso']['db']['host']
- The hostname or ipaddress where the host can be found.['conqueso']['db']['port']
- The port your backend is listening on.['conqueso']['db']['databaseName']
- The name of the database conqueso should use.['conqueso']['db']['user']
- The db user the conqueso server should connect as.['conqueso']['db']['password']
- The password for the user you're connecting as.['conqueso']['db']['maxConnections']
- The max connections sequelize should use.['conqueso']['db']['maxIdleTime']
- The max idle time sequelize should use per connection. PLEASE NOTE - This setting is in MILLISECONDS.['conqueso']['pollintervalsecs']
- The polling interval it should use.['conqueso']['logging']['dir']
- The directory that will contain the conqueso log file.['conqueso']['logging']['file']
- The log file name it should use.['conqueso']['logging']['level']
- The log level conqueso should run at.['conqueso']['install']['mysqlserver']
- Should we install the mysql server.['conqueso']['install']['mysqlclient']
- Should we install the mysql client.['conqueso']['start']
- Post installation, should conqueso be started.
- Chef 10 or higher
- Ruby 1.9 (preferably from the Chef full-stack installer)
The first order of business is to install Virtual Box.
Once you have that up and running, the next thing you'll need is Berkshelf.
Besure to follow the vagrant-berkshelf section on that page.
Once you have all that set up, git clone
this repo then you should be able to vagrant up
within that directory and you'll have a running copy of the Conqueso service.
To actually use the cookbook, you should just need to to use the wrapper type pattern by just using an import and overriding any attributes you need to change from the base cookbook.
#in your recipe you can define these:
include_recipe "conqueso-chef"
node.set["conqueso"]["db"]["host"] = "your db host here"
node.set["conqueso"]["db"]["user"] = "your db user name here"
node.set["conqueso"]["db"]["password"] = "your db password here"