Skip to content

Commit

Permalink
Add example http service, including a check that demonstrates how to …
Browse files Browse the repository at this point in the history
…pass headers
  • Loading branch information
chrisjohnson committed Jul 23, 2020
1 parent b7e315b commit e20114e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions manifests/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,28 @@
# ],
# }
#
# @example
# consul::service { 'my_https_app':
# port => 443,
# tags => ['web','rails'],
# address => '1.2.3.5',
# token => 'xxxxxxxxxx',
# service_config_hash => {
# 'connect' => {
# 'sidecar_service' => {},
# },
# },
# checks => [
# {
# name => 'HTTPS Request',
# http => 'https://localhost:443',
# tls_skip_verify => true,
# method => "GET",
# headers => { "Host" => ["test.example.com"] },
# },
# ],
# }
#
define consul::service (
Optional[String[1]] $address = undef,
Array[Hash] $checks = [],
Expand Down

0 comments on commit e20114e

Please sign in to comment.