Sebastien Badia 15f4810c06 Add Puppet 4.x lint checks
This changes the puppet-lint requirement to 1.1.x, so that we can
puppet-lint plugins. Most of these plugins are for 4.x compat, but
just catch common errors.

Change-Id: Ic7e3e5f2200c61760436d2c3b2f504e18248a15a
2015-02-25 05:12:22 +01:00

44 lines
1.2 KiB
Puppet

#
# Copyright (C) 2014 eNovance SAS <licensing@enovance.com>
#
# Author: Emilien Macchi <emilien.macchi@enovance.com>
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
# tuskar::init
#
# Tuskar base config
#
# == Parameters
#
# [*database_connection*]
# (optional) Connection url to connect to tuskar database.
# Defaults to 'sqlite:////var/lib/tuskar/tuskar.sqlite'
#
# [*database_idle_timeout*]
# (optional) Timeout before idle db connections are reaped.
# Defaults to 3600
#
class tuskar(
$database_connection = 'sqlite:////var/lib/tuskar/tuskar.sqlite',
$database_idle_timeout = 3600,
) {
include ::tuskar::params
exec { 'post-tuskar_config':
command => '/bin/echo "Tuskar config has changed"',
refreshonly => true,
}
}