From 8cba64a35ba2dca4f24aa845c40f0e429a7667d8 Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Sat, 29 Dec 2018 19:26:51 +0100 Subject: [PATCH] adding template for testing --- manifests/main/config.pp | 1 + manifests/server/proxy_test.pp | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 manifests/server/proxy_test.pp diff --git a/manifests/main/config.pp b/manifests/main/config.pp index 64ee58a..262f1e0 100644 --- a/manifests/main/config.pp +++ b/manifests/main/config.pp @@ -26,5 +26,6 @@ class cd_haproxy::main::config ( ) inherits cd_haproxy::params { include cd_haproxy::server::service + include cd_haproxy::server::proxy_test } diff --git a/manifests/server/proxy_test.pp b/manifests/server/proxy_test.pp new file mode 100644 index 0000000..5105bd8 --- /dev/null +++ b/manifests/server/proxy_test.pp @@ -0,0 +1,32 @@ +## cd_haproxy::server::proxy_test.pp +# Module name: cd_haproxy +# Author: Arne Teuke (arne_teuke@ConfDroid.com) +# # License: +# This file is part of cd_haproxy. +# +# cd_haproxy is used for providing automatic configuration of HAProxy +# Copyright (C) 2016 ConfDroid (copyright@ConfDroid.com) +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# @summary Define manages the proxies for cd_haproxy. +############################################################################### +class cd_haproxy::server::proxy_test.pp ( + +) inherits cd_haproxy::params { + + cd_haproxy::proxy { 'testing': + frontend_name => 'test01', + frontend_order => '001', + } + +}