Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing metadata version constraint on runit cookbook #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## Unreleased
- Add support for maildir storage [[SeanSith](https://github.com/SeanSith)]

## [0.2.1] - (2020-09-23)
### Added
- Add option for ui web path [[Alexj12](https://github.com/Alexj12)]
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ This cookbook contains the following attributes:
| ['mailhog']['cors-origin'] | String | nil | If set, a Access-Control-Allow-Origin header is returned for API endpoints |
| ['mailhog']['hostname'] | String | mailhog.example | Hostname to use for EHLO/HELO and message IDs |
| ['mailhog']['storage'] | String | memory | Set message storage: memory / mongodb / maildir |
| ['mailhog']['maildir_path'] | String | '' | Path for storage of messages in a file |
| ['mailhog']['mongodb']['ip'] | String | 127.0.0.1 | Host for MongoDB |
| ['mailhog']['mongodb']['port'] | Integer | 27017 | Port for MongoDB |
| ['mailhog']['mongodb']['db'] | String | mailhog | MongoDB database name for message storage |
Expand Down
1 change: 1 addition & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
default['mailhog']['hostname'] = 'mailhog.example'

default['mailhog']['storage'] = 'memory'
default['mailhog']['maildir_path'] = ''
default['mailhog']['mongodb']['ip'] = '127.0.0.1'
default['mailhog']['mongodb']['port'] = 27017
default['mailhog']['mongodb']['db'] = 'mailhog'
Expand Down
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
description 'Installs/Configures mailhog'
version '0.2.1'

depends 'runit', '= 1.7.4'
depends 'runit'

%w(debian ubuntu centos redhat smartos).each do |os|
supports os, '>= 0.0.0'
Expand Down
1 change: 1 addition & 0 deletions recipes/binary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
:cors_origin => node['mailhog']['cors-origin'],
:hostname => node['mailhog']['hostname'],
:storage => node['mailhog']['storage'],
:maildir_path => node['mailhog']['maildir_path'],
:mongodb_ip => node['mailhog']['mongodb']['ip'],
:mongodb_port => node['mailhog']['mongodb']['port'],
:mongodb_db => node['mailhog']['mongodb']['db'],
Expand Down
1 change: 1 addition & 0 deletions templates/default/sv-mailhog-run.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ exec /usr/bin/env MailHog \
-cors-origin=<%= @options[:cors_origin] %> \
-hostname=<%= @options[:hostname] %> \
-storage=<%= @options[:storage] %> \
-maildir-path=<%= @options[:maildir_path] %> \
-mongo-uri=<%= @options[:mongodb_ip] %>:<%= @options[:mongodb_port] %> \
-mongo-db=<%= @options[:mongodb_db] %> \
-mongo-coll=<%= @options[:mongodb_collection] %> \
Expand Down