Skip to content

Instantly share code, notes, and snippets.

@hunner
Created July 28, 2014 20:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hunner/5a9d8cd8a6b81e64f94f to your computer and use it in GitHub Desktop.
Save hunner/5a9d8cd8a6b81e64f94f to your computer and use it in GitHub Desktop.
define some_define (
$listening_service,
$haproxy_acl,
#...
) {
concat::fragment { "HAProxy ACL for ${listening_service} from ${name}":
order => "20-${listening_service}-01-acl",
target => '/etc/haproxy/haproxy.cfg',
content => " acl ${haproxy_acl}\n",
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment