From 083b70c39572eb84c653ef8d91a5d64d6fb2adf5 Mon Sep 17 00:00:00 2001 From: Colleen Murphy Date: Thu, 13 Aug 2015 18:26:36 -0700 Subject: [PATCH] Make class parameters required These parameters are fed unconditionally into the config template, and there is no sensible default that we can provide. This patch makes all parameters required, except for $channels whose default the template is prepared to handle. Change-Id: I0a691c7d32316252a628438eb169b31134b42e5b --- manifests/init.pp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 864247e..eb5c69f 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,15 +1,15 @@ # == Class: statusbot # class statusbot( - $nick = '', - $password = '', - $server = '', + $nick, + $password, + $server, + $auth_nicks, + $wiki_user, + $wiki_password, + $wiki_url, + $wiki_pageid, $channels = [], - $auth_nicks = '', - $wiki_user = '', - $wiki_password = '', - $wiki_url = '', - $wiki_pageid = '', ) { user { 'statusbot':