Sha256: 117b04b274130213d71def6de40c47b964df353c496bd1a0a9ac98cb0989e123

Contents?: true

Size: 836 Bytes

Versions: 2

Compression:

Stored size: 836 Bytes

Contents

class freighthop::puma(
  $app_root,
  $socket_path,
) {
  package { 'puma':
    ensure   => 'installed',
    provider => 'gem'
  }
  file { '/etc/init/puma.conf':
    owner  => 'root',
    group  => 'root',
    mode   => '0644',
    content => template('freighthop/puma/upstart/puma.conf.erb')
  }
  file { '/etc/puma.conf':
    owner   => 'root',
    group   => 'root',
    mode    => '0644',
    content => "${app_root}\n"
  }
  file { '/etc/init/puma-manager.conf':
    owner   => 'root',
    group   => 'root',
    mode    => '0644',
    source  => 'puppet:///modules/freighthop/puma/upstart/puma-manager.conf',
    require => [
      File['/etc/init/puma.conf'],
      File['/etc/puma.conf'],
    ],
    notify  => Service['puma-manager']
  }
  service { 'puma-manager':
    ensure   => 'running',
    provider => 'upstart'
  }
}

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
freighthop-0.0.1 local_modules/freighthop/manifests/puma.pp
freighthop-0.0.1 modules/freighthop/manifests/puma.pp