Last active
August 29, 2015 14:00
-
-
Save nvalentine-puppetlabs/11300271 to your computer and use it in GitHub Desktop.
Example of ENC output and RnP Puppet code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
classes: | |
- myorg::profile::haproxy_lb | |
parameters: | |
- myorig::profile::haproxy_lb::listen_ports | |
- 80 | |
- 8081 | |
- 443 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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