Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

Latest commit

 

History

History
51 lines (42 loc) · 915 Bytes

README.md

File metadata and controls

51 lines (42 loc) · 915 Bytes

gor

Puppet module for Gor.

Installs Gor, configures an upstart job with the appropriate arguments, and starts the service. You will need to provide your own gor package.

Example usage

Pass some arguments:

class { 'gor':
  args => {
    '-input-raw'          => 'localhost:7999',
    '-output-http-header' => 'User-Agent: gor',
    '-output-http'        => 'https://staging.example.com',
  },
}

The same argument can be specified multiple times by passing an array:

class { 'gor':
  args => {
    …
    '-output-http-method' => [
      'GET', 'HEAD', 'OPTIONS'
    ],
  },
}

To install a specific version of the Gor package:

class { 'gor':
  package_ensure => '1.2.3',
  …
}

To prevent the service from starting:

class { 'gor':
  service_ensure => 'stopped',
  …
}

License

See LICENSE file.