Skip to content

Instantly share code, notes, and snippets.

@nvalentine-puppetlabs
Last active August 29, 2015 14:00
Show Gist options
  • Save nvalentine-puppetlabs/11300271 to your computer and use it in GitHub Desktop.
Save nvalentine-puppetlabs/11300271 to your computer and use it in GitHub Desktop.
Example of ENC output and RnP Puppet code
---
classes:
- myorg::profile::haproxy_lb
parameters:
- myorig::profile::haproxy_lb::listen_ports
- 80
- 8081
- 443
class myorg::profile::haproxy_lb(
$listeners = {},
) {
validate_hash($listeners)
include ::haproxy
create_resources('haproxy::listen', $listeners)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment