adding template for testing
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
0
templates/haproxy_acl_rule.erb
Normal file
0
templates/haproxy_acl_rule.erb
Normal file
0
templates/haproxy_backend_rule.erb
Normal file
0
templates/haproxy_backend_rule.erb
Normal file
2
templates/haproxy_frontend_rule.erb
Normal file
2
templates/haproxy_frontend_rule.erb
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
frontend <%= @frontend_name %>
|
||||
Reference in New Issue
Block a user