Puppet Class: varnish::controller::agent

Defined in:
manifests/controller/agent.pp

Summary

Installs and manages Varnish Controller Agent

Overview

Examples:

include varnish::controller::agent

Parameters:



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'manifests/controller/agent.pp', line 25

class varnish::controller::agent (
  Stdlib::HTTPUrl $base_url,
  Stdlib::Host $nats_server,
  Stdlib::Port $nats_server_port = 4222,
  Optional[String] $nats_server_user = undef,
  Optional[Variant[Sensitive[String],String]] $nats_server_password = undef,
  Varnish::Controller::Agent_name $agent_name = $facts['networking']['hostname'],
  String[1] $invalidation_host = '127.0.0.1:80',
  String[1] $package_name = 'varnish-controller-agent',
  String[1] $package_ensure = 'present',
  Stdlib::Ensure::Service $service_ensure = 'running',
) {
  package { 'varnish-controller-agent':
    ensure => $package_ensure,
    name   => $package_name,
  }
  systemd::dropin_file { 'varnish-controller-agent':
    unit     => 'varnish-controller-agent.service',
    content  => epp('varnish/varnish-controller-agent.dropin.epp'),
    filename => 'varnish-controller-agent.conf',
  }
  ~> service { 'varnish-controller-agent':
    ensure  => $service_ensure,
    require => Package['varnish-controller-agent'],
  }
}