Forge Home

unicorn

Unicorn daemonizer for Rails/Non rails and Bundle/Non bundle apps

8,413 downloads

7,632 latest version

5.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.1.6 (latest)
  • 0.1.5 (deleted)
  • 0.1.4 (deleted)
  • 0.1.3 (deleted)
  • 0.1.2 (deleted)
  • 0.1.1 (deleted)
  • 0.1.0 (deleted)
released May 3rd 2016
This version is compatible with:

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'russmac-unicorn', '0.1.6'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add russmac-unicorn
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install russmac-unicorn --version 0.1.6

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

russmac/unicorn — version 0.1.6 May 3rd 2016

puppet-unicorn

Creates a deamonized init script which is just original unicorn script modified and templated.

Works on debian jessie 8.3 with systemd

Could be useful to quickly spin up ruby apps for CI by wrappering with a define

see examples folder for example usage.

# Wrapper class see app.yaml
class wrapper_class(
  $ruby_apps=hiera('ruby_apps')
){

  $ruby_apps_keys=keys($ruby_apps)

  wrapper_define::generate{$ruby_apps_keys:
    app_data => $ruby_apps
  }

}

# wrapper define
define wrapper_define(
  $app_data,
  $self=$app_data[$name]
){
  
  unicorn::generate{ $name:
    app_root          => $self['app_root'],
    user              => $self['user'],                   # optional
    rails_env         => $self['rails_env'],              # optional
    bundle            => $self['bundle'],                 # optional
    app_socket        => $self['app_socket'],             # optional
    pid_file          => $self['pid_file'],               # optional
    worker_processes  => $self['worker_processes'],       # optional
    backlog           => $self['backlog'],                # optional
    timeout           => $self['timeout'],                # optional
  }

}