Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

thanandorn/puppet-dropwizard

Repository files navigation

puppet-dropwizard

Build Status Puppet Forge

Table of Contents

  1. Overview
  2. Limitations - OS compatibility, etc.
  3. Setup - The basics of getting started with dropwizard
  4. Usage - Configuration options and additional functionality

Overview

Puppet module for installing, configuring and managing Dropwizard application.

Limitations

Supported Systems

  • CentOS 7 (systemd)

Supported Config Type

  • YAML

Setup

Module Installation

To install the module run:

 $ puppet module install thanandorn-dropwizard

Or install via librarian-puppet. Add below to Pupppetfile

mod 'thanandorn-dropwizard'

Usage

By default, the module will install Java from default values of puppetlabs-java

  include ::dropwizard

To create Dropwizard config files and services

  class { '::dropwizard':
    instances    => {
      'demoapp'  => {
        config_hash => {
          "server"  => {
            'type'           => 'simple',
            'appContextPath' => '/app',
            'connector'      => {
              'type' => 'http',
              'port' => '8080'
            }
          }
        }
      }
    }

To create Dropwizard config files and services from hiera

---
classes:
  - dropwizard

java::package: 'jdk'
java::version: '1.8.0_51'

dropwizard::instances:
  demoapp:
    config_hash:
      server:
        type: 'simple'
        appContextPath: '/app'
        connector:
          type: 'http'
          port: 8080