Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
egg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
liu-puppet-modules
egg
Commits
fe14d2e4
Commit
fe14d2e4
authored
2 years ago
by
Magnus Svensson
Browse files
Options
Downloads
Patches
Plain Diff
LintFixes
parent
e7c20292
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
manifests/init.pp
+1
-1
1 addition, 1 deletion
manifests/init.pp
tests/init.pp
+0
-48
0 additions, 48 deletions
tests/init.pp
with
1 addition
and
49 deletions
manifests/init.pp
+
1
−
1
View file @
fe14d2e4
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
#
#
# Copyright 2019 Linköping University
# Copyright 2019 Linköping University
#
#
class
egg
(
class
egg
(
)
{
)
{
::
server_firewall::rules_file
{
'30-permit_http_https.rules'
:
::
server_firewall::rules_file
{
'30-permit_http_https.rules'
:
content
=>
epp
(
"
${module_name}
/permit_http_https.rules.epp"
,
{
content
=>
epp
(
"
${module_name}
/permit_http_https.rules.epp"
,
{
...
...
This diff is collapsed.
Click to expand it.
tests/init.pp
deleted
100644 → 0
+
0
−
48
View file @
e7c20292
# -*- 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'
,
]:
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment