From 0f214f09bc0c62f8de3094558b1311100ff3de03 Mon Sep 17 00:00:00 2001 From: Hunter Haugen Date: Tue, 12 Apr 2016 16:28:49 -0700 Subject: [PATCH] (MODULES-3258) Validate the config before adding it --- manifests/config.pp | 7 ++++--- metadata.json | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/manifests/config.pp b/manifests/config.pp index 1f27a31c..cf44b7b1 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -37,9 +37,10 @@ } concat { $_config_file: - owner => '0', - group => '0', - mode => '0644', + owner => '0', + group => '0', + mode => '0644', + validate_cmd => '/usr/sbin/haproxy -f %', } # Simple Header diff --git a/metadata.json b/metadata.json index 2f90e11a..e538adea 100644 --- a/metadata.json +++ b/metadata.json @@ -68,7 +68,7 @@ }, { "name": "puppet", - "version_requirement": ">= 3.0.0 < 5.0.0" + "version_requirement": ">= 3.5.0 < 5.0.0" } ] }