From fe14d2e4e45c5fa52268c3c183847e4854f16b62 Mon Sep 17 00:00:00 2001 From: Magnus Svensson <magnus.svensson@liu.se> Date: Fri, 15 Jul 2022 11:25:55 +0200 Subject: [PATCH] LintFixes --- manifests/init.pp | 2 +- tests/init.pp | 48 ----------------------------------------------- 2 files changed, 1 insertion(+), 49 deletions(-) delete mode 100644 tests/init.pp diff --git a/manifests/init.pp b/manifests/init.pp index 6accab6..2d01301 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -26,7 +26,7 @@ # # Copyright 2019 Linköping University # -class egg( +class egg ( ) { ::server_firewall::rules_file { '30-permit_http_https.rules': content => epp("${module_name}/permit_http_https.rules.epp", { diff --git a/tests/init.pp b/tests/init.pp deleted file mode 100644 index bd276f8..0000000 --- a/tests/init.pp +++ /dev/null @@ -1,48 +0,0 @@ -# -*- coding: utf-8; -*- - -# The baseline for module testing used by Puppet Labs is that each manifest -# should have a corresponding test manifest that declares that class or defined -# type. -# -# Tests are then run by using puppet apply --noop (to check for compilation -# errors and view a log of events) or by fully applying the test in a virtual -# environment (to compare the resulting system state to the desired state). -# -# Learn more about module testing here: -# https://docs.puppetlabs.com/guides/tests_smoke.html - - -# This comment marks the beginning of example usage. - -# Use the manifest we're testing itself here: -include egg - -# Nota bene: You can not control the order in which the external node -# classifier applies classes so your manifests need to work even when -# dependencies are applied after the resources that depend on them. - -# Include required modules here: - -# This comment marks the end of example usage. - - -# Most manifests created in pm-liuit will use some Nagios and -# Server_firewall defines so their dependencies will need to be -# loaded. We don't want to do that in the manifests however as those -# classes should be applied by the external node classifier in -# production. - -# Test environment dependencies: -include yum -include yum::epel -include nagios::node - -# Simulate properly set up firewall: -class { 'server_firewall': - constricto_available => true, - constricto_enabled => true, -} - -# Declare required resources here: -service { [ 'network', 'rsyslog', ]: -} -- GitLab