adding template for testing

This commit is contained in:
Arne Teuke
2018-12-29 19:20:35 +01:00
parent f5c158000e
commit 4fe6d7d42f
4 changed files with 16 additions and 0 deletions

View File

@@ -19,11 +19,25 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# @summary Define manages the proxies for cd_haproxy.
# @param [string] frontend_name the name for the frontend section rule.
# @param [string] frontend_order the order where the concet should appear
# in the file.
#############################################################################
define cd_haproxy::server::proxy (
$frontend_name = undef,
$frontend_order = undef,
) {
$hy_main_config = cd_haproxy::params::hy_main_config
$hy_frontendrule = 'cd_haproxy/haproxy_frontend_rule.erb'
# create frontend section
concat::fragment { "frontend_${name}":
target => $hy_main_config,
content => $hy_frontendrule,
order => $frontend_order,
}
}