Created
November 12, 2012 23:35
-
-
Save big-samantha/4062806 to your computer and use it in GitHub Desktop.
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
| # Install and configure haproxy. | |
| class haproxy ($haproxycfg) { | |
| include | |
| '::haproxy::install', | |
| '::haproxy::config', | |
| '::haproxy::service' | |
| Class['::haproxy::install'] -> Class['::haproxy::config'] | |
| Class['::haproxy::config'] ~> Class['::haproxy::service'] | |
| } | |
| # configure haproxy | |
| class haproxy::config inherits ::haproxy { | |
| file { 'haproxy.cfg': | |
| ensure => present, | |
| content => $haproxycfg, | |
| path => '/etc/haproxy/haproxy.cfg', | |
| owner => root, | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment