puppetlabs-xinetd-3.4.10040755000000000000000000000000014455356607012061 5ustar00puppetlabs-xinetd-3.4.1/.github0040755000000000000000000000000014455356607013421 5ustar00puppetlabs-xinetd-3.4.1/.github/workflows0040755000000000000000000000000014455356607015456 5ustar00puppetlabs-xinetd-3.4.1/.github/workflows/release.yml0100644000175100001730000000026114455356606017724 0ustar00name: "Publish module" on: workflow_dispatch: jobs: release: uses: "puppetlabs/cat-github-actions/.github/workflows/module_release.yml@main" secrets: "inherit" puppetlabs-xinetd-3.4.1/.github/workflows/release_prep.yml0100644000175100001730000000060314455356606020752 0ustar00name: "Release Prep" on: workflow_dispatch: inputs: version: description: "Module version to be released. Must be a valid semver string. (1.2.3)" required: true jobs: release_prep: uses: "puppetlabs/cat-github-actions/.github/workflows/module_release_prep.yml@main" with: version: "${{ github.event.inputs.version }}" secrets: "inherit" puppetlabs-xinetd-3.4.1/.nodeset.yml0100644000175100001730000000136114455356606014430 0ustar00--- default_set: 'centos-64-x64' sets: 'centos-59-x64': nodes: "main.foo.vm": prefab: 'centos-59-x64' 'centos-64-x64': nodes: "main.foo.vm": prefab: 'centos-64-x64' 'fedora-18-x64': nodes: "main.foo.vm": prefab: 'fedora-18-x64' 'debian-607-x64': nodes: "main.foo.vm": prefab: 'debian-607-x64' 'debian-70rc1-x64': nodes: "main.foo.vm": prefab: 'debian-70rc1-x64' 'ubuntu-server-10044-x64': nodes: "main.foo.vm": prefab: 'ubuntu-server-10044-x64' 'ubuntu-server-12042-x64': nodes: "main.foo.vm": prefab: 'ubuntu-server-12042-x64' 'sles-11sp1-x64': nodes: "main.foo.vm": prefab: 'sles-11sp1-x64' puppetlabs-xinetd-3.4.1/.rubocop.yml0100644000175100001730000004050614455356606014444 0ustar00--- require: - rubocop-performance - rubocop-rspec AllCops: DisplayCopNames: true TargetRubyVersion: '2.6' Include: - "**/*.rb" Exclude: - bin/* - ".vendor/**/*" - "**/Gemfile" - "**/Rakefile" - pkg/**/* - spec/fixtures/**/* - vendor/**/* - "**/Puppetfile" - "**/Vagrantfile" - "**/Guardfile" Layout/LineLength: Description: People have wide screens, use them. Max: 200 RSpec/BeforeAfterAll: Description: Beware of using after(:all) as it may cause state to leak between tests. A necessary evil in acceptance testing. Exclude: - spec/acceptance/**/*.rb RSpec/HookArgument: Description: Prefer explicit :each argument, matching existing module's style EnforcedStyle: each RSpec/DescribeSymbol: Exclude: - spec/unit/facter/**/*.rb Style/BlockDelimiters: Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to be consistent then. EnforcedStyle: braces_for_chaining Style/ClassAndModuleChildren: Description: Compact style reduces the required amount of indentation. EnforcedStyle: compact Style/EmptyElse: Description: Enforce against empty else clauses, but allow `nil` for clarity. EnforcedStyle: empty Style/FormatString: Description: Following the main puppet project's style, prefer the % format format. EnforcedStyle: percent Style/FormatStringToken: Description: Following the main puppet project's style, prefer the simpler template tokens over annotated ones. EnforcedStyle: template Style/Lambda: Description: Prefer the keyword for easier discoverability. EnforcedStyle: literal Style/RegexpLiteral: Description: Community preference. See https://github.com/voxpupuli/modulesync_config/issues/168 EnforcedStyle: percent_r Style/TernaryParentheses: Description: Checks for use of parentheses around ternary conditions. Enforce parentheses on complex expressions for better readability, but seriously consider breaking it up. EnforcedStyle: require_parentheses_when_complex Style/TrailingCommaInArguments: Description: Prefer always trailing comma on multiline argument lists. This makes diffs, and re-ordering nicer. EnforcedStyleForMultiline: comma Style/TrailingCommaInArrayLiteral: Description: Prefer always trailing comma on multiline literals. This makes diffs, and re-ordering nicer. EnforcedStyleForMultiline: comma Style/SymbolArray: Description: Using percent style obscures symbolic intent of array's contents. EnforcedStyle: brackets RSpec/MessageSpies: EnforcedStyle: receive Style/Documentation: Exclude: - lib/puppet/parser/functions/**/* - spec/**/* Style/WordArray: EnforcedStyle: brackets Performance/AncestorsInclude: Enabled: true Performance/BigDecimalWithNumericArgument: Enabled: true Performance/BlockGivenWithExplicitBlock: Enabled: true Performance/CaseWhenSplat: Enabled: true Performance/ConstantRegexp: Enabled: true Performance/MethodObjectAsBlock: Enabled: true Performance/RedundantSortBlock: Enabled: true Performance/RedundantStringChars: Enabled: true Performance/ReverseFirst: Enabled: true Performance/SortReverse: Enabled: true Performance/Squeeze: Enabled: true Performance/StringInclude: Enabled: true Performance/Sum: Enabled: true Style/CollectionMethods: Enabled: true Style/MethodCalledOnDoEndBlock: Enabled: true Style/StringMethods: Enabled: true Bundler/GemFilename: Enabled: false Bundler/InsecureProtocolSource: Enabled: false Capybara/CurrentPathExpectation: Enabled: false Capybara/VisibilityMatcher: Enabled: false Gemspec/DuplicatedAssignment: Enabled: false Gemspec/OrderedDependencies: Enabled: false Gemspec/RequiredRubyVersion: Enabled: false Gemspec/RubyVersionGlobalsUsage: Enabled: false Layout/ArgumentAlignment: Enabled: false Layout/BeginEndAlignment: Enabled: false Layout/ClosingHeredocIndentation: Enabled: false Layout/EmptyComment: Enabled: false Layout/EmptyLineAfterGuardClause: Enabled: false Layout/EmptyLinesAroundArguments: Enabled: false Layout/EmptyLinesAroundAttributeAccessor: Enabled: false Layout/EndOfLine: Enabled: false Layout/FirstArgumentIndentation: Enabled: false Layout/HashAlignment: Enabled: false Layout/HeredocIndentation: Enabled: false Layout/LeadingEmptyLines: Enabled: false Layout/SpaceAroundMethodCallOperator: Enabled: false Layout/SpaceInsideArrayLiteralBrackets: Enabled: false Layout/SpaceInsideReferenceBrackets: Enabled: false Lint/BigDecimalNew: Enabled: false Lint/BooleanSymbol: Enabled: false Lint/ConstantDefinitionInBlock: Enabled: false Lint/DeprecatedOpenSSLConstant: Enabled: false Lint/DisjunctiveAssignmentInConstructor: Enabled: false Lint/DuplicateElsifCondition: Enabled: false Lint/DuplicateRequire: Enabled: false Lint/DuplicateRescueException: Enabled: false Lint/EmptyConditionalBody: Enabled: false Lint/EmptyFile: Enabled: false Lint/ErbNewArguments: Enabled: false Lint/FloatComparison: Enabled: false Lint/HashCompareByIdentity: Enabled: false Lint/IdentityComparison: Enabled: false Lint/InterpolationCheck: Enabled: false Lint/MissingCopEnableDirective: Enabled: false Lint/MixedRegexpCaptureTypes: Enabled: false Lint/NestedPercentLiteral: Enabled: false Lint/NonDeterministicRequireOrder: Enabled: false Lint/OrderedMagicComments: Enabled: false Lint/OutOfRangeRegexpRef: Enabled: false Lint/RaiseException: Enabled: false Lint/RedundantCopEnableDirective: Enabled: false Lint/RedundantRequireStatement: Enabled: false Lint/RedundantSafeNavigation: Enabled: false Lint/RedundantWithIndex: Enabled: false Lint/RedundantWithObject: Enabled: false Lint/RegexpAsCondition: Enabled: false Lint/ReturnInVoidContext: Enabled: false Lint/SafeNavigationConsistency: Enabled: false Lint/SafeNavigationWithEmpty: Enabled: false Lint/SelfAssignment: Enabled: false Lint/SendWithMixinArgument: Enabled: false Lint/ShadowedArgument: Enabled: false Lint/StructNewOverride: Enabled: false Lint/ToJSON: Enabled: false Lint/TopLevelReturnWithArgument: Enabled: false Lint/TrailingCommaInAttributeDeclaration: Enabled: false Lint/UnreachableLoop: Enabled: false Lint/UriEscapeUnescape: Enabled: false Lint/UriRegexp: Enabled: false Lint/UselessMethodDefinition: Enabled: false Lint/UselessTimes: Enabled: false Metrics/AbcSize: Enabled: false Metrics/BlockLength: Enabled: false Metrics/BlockNesting: Enabled: false Metrics/ClassLength: Enabled: false Metrics/CyclomaticComplexity: Enabled: false Metrics/MethodLength: Enabled: false Metrics/ModuleLength: Enabled: false Metrics/ParameterLists: Enabled: false Metrics/PerceivedComplexity: Enabled: false Migration/DepartmentName: Enabled: false Naming/AccessorMethodName: Enabled: false Naming/BlockParameterName: Enabled: false Naming/HeredocDelimiterCase: Enabled: false Naming/HeredocDelimiterNaming: Enabled: false Naming/MemoizedInstanceVariableName: Enabled: false Naming/MethodParameterName: Enabled: false Naming/RescuedExceptionsVariableName: Enabled: false Naming/VariableNumber: Enabled: false Performance/BindCall: Enabled: false Performance/DeletePrefix: Enabled: false Performance/DeleteSuffix: Enabled: false Performance/InefficientHashSearch: Enabled: false Performance/UnfreezeString: Enabled: false Performance/UriDefaultParser: Enabled: false RSpec/Be: Enabled: false RSpec/Capybara/FeatureMethods: Enabled: false RSpec/ContainExactly: Enabled: false RSpec/ContextMethod: Enabled: false RSpec/ContextWording: Enabled: false RSpec/DescribeClass: Enabled: false RSpec/EmptyHook: Enabled: false RSpec/EmptyLineAfterExample: Enabled: false RSpec/EmptyLineAfterExampleGroup: Enabled: false RSpec/EmptyLineAfterHook: Enabled: false RSpec/ExampleLength: Enabled: false RSpec/ExampleWithoutDescription: Enabled: false RSpec/ExpectChange: Enabled: false RSpec/ExpectInHook: Enabled: false RSpec/FactoryBot/AttributeDefinedStatically: Enabled: false RSpec/FactoryBot/CreateList: Enabled: false RSpec/FactoryBot/FactoryClassName: Enabled: false RSpec/HooksBeforeExamples: Enabled: false RSpec/ImplicitBlockExpectation: Enabled: false RSpec/ImplicitSubject: Enabled: false RSpec/LeakyConstantDeclaration: Enabled: false RSpec/LetBeforeExamples: Enabled: false RSpec/MatchArray: Enabled: false RSpec/MissingExampleGroupArgument: Enabled: false RSpec/MultipleExpectations: Enabled: false RSpec/MultipleMemoizedHelpers: Enabled: false RSpec/MultipleSubjects: Enabled: false RSpec/NestedGroups: Enabled: false RSpec/PredicateMatcher: Enabled: false RSpec/ReceiveCounts: Enabled: false RSpec/ReceiveNever: Enabled: false RSpec/RepeatedExampleGroupBody: Enabled: false RSpec/RepeatedExampleGroupDescription: Enabled: false RSpec/RepeatedIncludeExample: Enabled: false RSpec/ReturnFromStub: Enabled: false RSpec/SharedExamples: Enabled: false RSpec/StubbedMock: Enabled: false RSpec/UnspecifiedException: Enabled: false RSpec/VariableDefinition: Enabled: false RSpec/VoidExpect: Enabled: false RSpec/Yield: Enabled: false Security/Open: Enabled: false Style/AccessModifierDeclarations: Enabled: false Style/AccessorGrouping: Enabled: false Style/BisectedAttrAccessor: Enabled: false Style/CaseLikeIf: Enabled: false Style/ClassEqualityComparison: Enabled: false Style/ColonMethodDefinition: Enabled: false Style/CombinableLoops: Enabled: false Style/CommentedKeyword: Enabled: false Style/Dir: Enabled: false Style/DoubleCopDisableDirective: Enabled: false Style/EmptyBlockParameter: Enabled: false Style/EmptyLambdaParameter: Enabled: false Style/Encoding: Enabled: false Style/EvalWithLocation: Enabled: false Style/ExpandPathArguments: Enabled: false Style/ExplicitBlockArgument: Enabled: false Style/ExponentialNotation: Enabled: false Style/FloatDivision: Enabled: false Style/FrozenStringLiteralComment: Enabled: false Style/GlobalStdStream: Enabled: false Style/HashAsLastArrayItem: Enabled: false Style/HashLikeCase: Enabled: false Style/HashTransformKeys: Enabled: false Style/HashTransformValues: Enabled: false Style/IfUnlessModifier: Enabled: false Style/KeywordParametersOrder: Enabled: false Style/MinMax: Enabled: false Style/MixinUsage: Enabled: false Style/MultilineWhenThen: Enabled: false Style/NegatedUnless: Enabled: false Style/NumericPredicate: Enabled: false Style/OptionalBooleanParameter: Enabled: false Style/OrAssignment: Enabled: false Style/RandomWithOffset: Enabled: false Style/RedundantAssignment: Enabled: false Style/RedundantCondition: Enabled: false Style/RedundantConditional: Enabled: false Style/RedundantFetchBlock: Enabled: false Style/RedundantFileExtensionInRequire: Enabled: false Style/RedundantRegexpCharacterClass: Enabled: false Style/RedundantRegexpEscape: Enabled: false Style/RedundantSelfAssignment: Enabled: false Style/RedundantSort: Enabled: false Style/RescueStandardError: Enabled: false Style/SingleArgumentDig: Enabled: false Style/SlicingWithRange: Enabled: false Style/SoleNestedConditional: Enabled: false Style/StderrPuts: Enabled: false Style/StringConcatenation: Enabled: false Style/Strip: Enabled: false Style/SymbolProc: Enabled: false Style/TrailingBodyOnClass: Enabled: false Style/TrailingBodyOnMethodDefinition: Enabled: false Style/TrailingBodyOnModule: Enabled: false Style/TrailingCommaInHashLiteral: Enabled: false Style/TrailingMethodEndStatement: Enabled: false Style/UnpackFirst: Enabled: false Capybara/MatchStyle: Enabled: false Capybara/NegationMatcher: Enabled: false Capybara/SpecificActions: Enabled: false Capybara/SpecificFinders: Enabled: false Capybara/SpecificMatcher: Enabled: false Gemspec/DeprecatedAttributeAssignment: Enabled: false Gemspec/DevelopmentDependencies: Enabled: false Gemspec/RequireMFA: Enabled: false Layout/LineContinuationLeadingSpace: Enabled: false Layout/LineContinuationSpacing: Enabled: false Layout/LineEndStringConcatenationIndentation: Enabled: false Layout/SpaceBeforeBrackets: Enabled: false Lint/AmbiguousAssignment: Enabled: false Lint/AmbiguousOperatorPrecedence: Enabled: false Lint/AmbiguousRange: Enabled: false Lint/ConstantOverwrittenInRescue: Enabled: false Lint/DeprecatedConstants: Enabled: false Lint/DuplicateBranch: Enabled: false Lint/DuplicateMagicComment: Enabled: false Lint/DuplicateRegexpCharacterClassElement: Enabled: false Lint/EmptyBlock: Enabled: false Lint/EmptyClass: Enabled: false Lint/EmptyInPattern: Enabled: false Lint/IncompatibleIoSelectWithFiberScheduler: Enabled: false Lint/LambdaWithoutLiteralBlock: Enabled: false Lint/NoReturnInBeginEndBlocks: Enabled: false Lint/NonAtomicFileOperation: Enabled: false Lint/NumberedParameterAssignment: Enabled: false Lint/OrAssignmentToConstant: Enabled: false Lint/RedundantDirGlobSort: Enabled: false Lint/RefinementImportMethods: Enabled: false Lint/RequireRangeParentheses: Enabled: false Lint/RequireRelativeSelfPath: Enabled: false Lint/SymbolConversion: Enabled: false Lint/ToEnumArguments: Enabled: false Lint/TripleQuotes: Enabled: false Lint/UnexpectedBlockArity: Enabled: false Lint/UnmodifiedReduceAccumulator: Enabled: false Lint/UselessRescue: Enabled: false Lint/UselessRuby2Keywords: Enabled: false Metrics/CollectionLiteralLength: Enabled: false Naming/BlockForwarding: Enabled: false Performance/CollectionLiteralInLoop: Enabled: false Performance/ConcurrentMonotonicTime: Enabled: false Performance/MapCompact: Enabled: false Performance/RedundantEqualityComparisonBlock: Enabled: false Performance/RedundantSplitRegexpArgument: Enabled: false Performance/StringIdentifierArgument: Enabled: false RSpec/BeEq: Enabled: false RSpec/BeNil: Enabled: false RSpec/ChangeByZero: Enabled: false RSpec/ClassCheck: Enabled: false RSpec/DuplicatedMetadata: Enabled: false RSpec/ExcessiveDocstringSpacing: Enabled: false RSpec/FactoryBot/ConsistentParenthesesStyle: Enabled: false RSpec/FactoryBot/FactoryNameStyle: Enabled: false RSpec/FactoryBot/SyntaxMethods: Enabled: false RSpec/IdenticalEqualityAssertion: Enabled: false RSpec/NoExpectationExample: Enabled: false RSpec/PendingWithoutReason: Enabled: false RSpec/Rails/AvoidSetupHook: Enabled: false RSpec/Rails/HaveHttpStatus: Enabled: false RSpec/Rails/InferredSpecType: Enabled: false RSpec/Rails/MinitestAssertions: Enabled: false RSpec/Rails/TravelAround: Enabled: false RSpec/RedundantAround: Enabled: false RSpec/SkipBlockInsideExample: Enabled: false RSpec/SortMetadata: Enabled: false RSpec/SubjectDeclaration: Enabled: false RSpec/VerifiedDoubleReference: Enabled: false Security/CompoundHash: Enabled: false Security/IoMethods: Enabled: false Style/ArgumentsForwarding: Enabled: false Style/ArrayIntersect: Enabled: false Style/CollectionCompact: Enabled: false Style/ComparableClamp: Enabled: false Style/ConcatArrayLiterals: Enabled: false Style/DirEmpty: Enabled: false Style/DocumentDynamicEvalDefinition: Enabled: false Style/EmptyHeredoc: Enabled: false Style/EndlessMethod: Enabled: false Style/EnvHome: Enabled: false Style/FetchEnvVar: Enabled: false Style/FileEmpty: Enabled: false Style/FileRead: Enabled: false Style/FileWrite: Enabled: false Style/HashConversion: Enabled: false Style/HashExcept: Enabled: false Style/IfWithBooleanLiteralBranches: Enabled: false Style/InPatternThen: Enabled: false Style/MagicCommentFormat: Enabled: false Style/MapCompactWithConditionalBlock: Enabled: false Style/MapToHash: Enabled: false Style/MapToSet: Enabled: false Style/MinMaxComparison: Enabled: false Style/MultilineInPatternThen: Enabled: false Style/NegatedIfElseCondition: Enabled: false Style/NestedFileDirname: Enabled: false Style/NilLambda: Enabled: false Style/NumberedParameters: Enabled: false Style/NumberedParametersLimit: Enabled: false Style/ObjectThen: Enabled: false Style/OpenStructUse: Enabled: false Style/OperatorMethodCall: Enabled: false Style/QuotedSymbols: Enabled: false Style/RedundantArgument: Enabled: false Style/RedundantConstantBase: Enabled: false Style/RedundantDoubleSplatHashBraces: Enabled: false Style/RedundantEach: Enabled: false Style/RedundantHeredocDelimiterQuotes: Enabled: false Style/RedundantInitialize: Enabled: false Style/RedundantSelfAssignmentBranch: Enabled: false Style/RedundantStringEscape: Enabled: false Style/SelectByRegexp: Enabled: false Style/StringChars: Enabled: false Style/SwapValues: Enabled: false puppetlabs-xinetd-3.4.1/.rubocop_todo.yml0100644000175100001730000000000014455356606015452 0ustar00puppetlabs-xinetd-3.4.1/.travis.yml0100644000175100001730000000221014455356606014271 0ustar00--- dist: trusty language: ruby cache: bundler before_install: - bundle -v - rm -f Gemfile.lock - gem update --system $RUBYGEMS_VERSION - gem --version - bundle -v script: - 'bundle exec rake $CHECK' bundler_args: --without system_tests rvm: - 2.5.1 env: global: - BEAKER_PUPPET_COLLECTION=puppet6 PUPPET_GEM_VERSION="~> 6.0" matrix: fast_finish: true include: - bundler_args: dist: trusty env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_set=docker/centos-7 BEAKER_TESTMODE=apply rvm: 2.5.1 script: bundle exec rake beaker services: docker sudo: required - bundler_args: dist: trusty env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_set=docker/ubuntu-14.04 BEAKER_TESTMODE=apply rvm: 2.5.1 script: bundle exec rake beaker services: docker sudo: required - env: CHECK=parallel_spec - env: PUPPET_GEM_VERSION="~> 5.0" CHECK=parallel_spec rvm: 2.4.4 branches: only: - master - /^v\d/ - release notifications: email: false puppetlabs-xinetd-3.4.1/CHANGELOG.md0100644000175100001730000003607114455356606014005 0ustar00 # Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org). ## [v3.4.1](https://github.com/puppetlabs/puppetlabs-xinetd/tree/v3.4.1) - 2023-07-18 [Full Changelog](https://github.com/puppetlabs/puppetlabs-xinetd/compare/v3.4.0...v3.4.1) ### Other - Update operatingsystem_support in metadata.json [#132](https://github.com/puppetlabs/puppetlabs-xinetd/pull/132) ([nmburgan](https://github.com/nmburgan)) ## [v3.4.0](https://github.com/puppetlabs/puppetlabs-xinetd/tree/v3.4.0) - 2023-07-17 [Full Changelog](https://github.com/puppetlabs/puppetlabs-xinetd/compare/v3.3.0...v3.4.0) ### Added - Convert to PDK module and update for Puppet 8 [#125](https://github.com/puppetlabs/puppetlabs-xinetd/pull/125) ([nmburgan](https://github.com/nmburgan)) - Mark compatible with Puppet 7 [#121](https://github.com/puppetlabs/puppetlabs-xinetd/pull/121) ([ekohl](https://github.com/ekohl)) ### Other - Remove redundant qualified class inclusion [#130](https://github.com/puppetlabs/puppetlabs-xinetd/pull/130) ([nmburgan](https://github.com/nmburgan)) - Release merge-back [#116](https://github.com/puppetlabs/puppetlabs-xinetd/pull/116) ([carabasdaniel](https://github.com/carabasdaniel)) ## [v3.3.0](https://github.com/puppetlabs/puppetlabs-xinetd/tree/v3.3.0) - 2019-05-29 [Full Changelog](https://github.com/puppetlabs/puppetlabs-xinetd/compare/3.2.0...v3.3.0) ### Other - Remove unused stdlib dependency [#114](https://github.com/puppetlabs/puppetlabs-xinetd/pull/114) ([alexjfisher](https://github.com/alexjfisher)) ## [3.2.0](https://github.com/puppetlabs/puppetlabs-xinetd/tree/3.2.0) - 2019-02-07 [Full Changelog](https://github.com/puppetlabs/puppetlabs-xinetd/compare/3.1.0...3.2.0) ### Other - Support Puppet 6 [#111](https://github.com/puppetlabs/puppetlabs-xinetd/pull/111) ([mmoll](https://github.com/mmoll)) - 3.1.0 Mergeback [#110](https://github.com/puppetlabs/puppetlabs-xinetd/pull/110) ([david22swan](https://github.com/david22swan)) ## [3.1.0](https://github.com/puppetlabs/puppetlabs-xinetd/tree/3.1.0) - 2018-09-10 [Full Changelog](https://github.com/puppetlabs/puppetlabs-xinetd/compare/3.0.0...3.1.0) ### Fixed - Fix example service [#104](https://github.com/puppetlabs/puppetlabs-xinetd/pull/104) ([arjenz](https://github.com/arjenz)) ### Other - 3.1.0 Pre Release [#109](https://github.com/puppetlabs/puppetlabs-xinetd/pull/109) ([david22swan](https://github.com/david22swan)) - allow puppetlabs-stdlib 5.x [#108](https://github.com/puppetlabs/puppetlabs-xinetd/pull/108) ([mmoll](https://github.com/mmoll)) - (maint) - modulesync 1d81b6a [#105](https://github.com/puppetlabs/puppetlabs-xinetd/pull/105) ([pmcmaw](https://github.com/pmcmaw)) ## [3.0.0](https://github.com/puppetlabs/puppetlabs-xinetd/tree/3.0.0) - 2017-10-04 [Full Changelog](https://github.com/puppetlabs/puppetlabs-xinetd/compare/2.0.0...3.0.0) ### Other - (MODULES-5676) release prep for 3.0.0 [#102](https://github.com/puppetlabs/puppetlabs-xinetd/pull/102) ([eputnam](https://github.com/eputnam)) - Make server parameter optional and allow service definition without explicit group [#101](https://github.com/puppetlabs/puppetlabs-xinetd/pull/101) ([eputnam](https://github.com/eputnam)) - (maint) modulesync 892c4cf [#100](https://github.com/puppetlabs/puppetlabs-xinetd/pull/100) ([HAIL9000](https://github.com/HAIL9000)) - (maint) modulesync 915cde70e20 [#99](https://github.com/puppetlabs/puppetlabs-xinetd/pull/99) ([glennsarti](https://github.com/glennsarti)) - (MODULES-5187) mysnc puppet 5 and ruby 2.4 [#98](https://github.com/puppetlabs/puppetlabs-xinetd/pull/98) ([eputnam](https://github.com/eputnam)) - (MODULES-5144) Prep for puppet 5 [#97](https://github.com/puppetlabs/puppetlabs-xinetd/pull/97) ([hunner](https://github.com/hunner)) - [msync] 786266 Implement puppet-module-gems, a45803 Remove metadata.json from locales config [#96](https://github.com/puppetlabs/puppetlabs-xinetd/pull/96) ([wilson208](https://github.com/wilson208)) - [MODULES-4528] Replace Puppet.version.to_f version comparison from spec_helper.rb [#95](https://github.com/puppetlabs/puppetlabs-xinetd/pull/95) ([wilson208](https://github.com/wilson208)) - replace legacy validate_* calls [#94](https://github.com/puppetlabs/puppetlabs-xinetd/pull/94) ([bastelfreak](https://github.com/bastelfreak)) - (MODULES-4098) Sync the rest of the files [#93](https://github.com/puppetlabs/puppetlabs-xinetd/pull/93) ([hunner](https://github.com/hunner)) - (MODULES-4097) Sync travis.yml [#92](https://github.com/puppetlabs/puppetlabs-xinetd/pull/92) ([hunner](https://github.com/hunner)) - (FM-5972) gettext and spec.opts [#91](https://github.com/puppetlabs/puppetlabs-xinetd/pull/91) ([eputnam](https://github.com/eputnam)) - (MODULES-3631) msync Gemfile for 1.9 frozen strings [#90](https://github.com/puppetlabs/puppetlabs-xinetd/pull/90) ([hunner](https://github.com/hunner)) - (MODULES-3704) Update gemfile template to be identical [#89](https://github.com/puppetlabs/puppetlabs-xinetd/pull/89) ([hunner](https://github.com/hunner)) - mocha version update [#88](https://github.com/puppetlabs/puppetlabs-xinetd/pull/88) ([eputnam](https://github.com/eputnam)) - (MODULES-3983) Update parallel_tests for ruby 2.0.0 [#87](https://github.com/puppetlabs/puppetlabs-xinetd/pull/87) ([pmcmaw](https://github.com/pmcmaw)) - Update modulesync_config [51f469d] [#85](https://github.com/puppetlabs/puppetlabs-xinetd/pull/85) ([DavidS](https://github.com/DavidS)) - (MODULES-1019) add capability to configure 'passenv' for individual service [#84](https://github.com/puppetlabs/puppetlabs-xinetd/pull/84) ([vchepkov](https://github.com/vchepkov)) - Added missing variables for Archlinux [#83](https://github.com/puppetlabs/puppetlabs-xinetd/pull/83) ([pschichtel](https://github.com/pschichtel)) - Update modulesync_config [a3fe424] [#82](https://github.com/puppetlabs/puppetlabs-xinetd/pull/82) ([DavidS](https://github.com/DavidS)) - Define service_hasstatus/hasrestart for Amazon Linux [#81](https://github.com/puppetlabs/puppetlabs-xinetd/pull/81) ([domcleal](https://github.com/domcleal)) - (MAINT) Update for modulesync_config 72d19f184 [#80](https://github.com/puppetlabs/puppetlabs-xinetd/pull/80) ([DavidS](https://github.com/DavidS)) - (MODULES-3581) modulesync [067d08a] [#79](https://github.com/puppetlabs/puppetlabs-xinetd/pull/79) ([DavidS](https://github.com/DavidS)) - {maint} modulesync 0794b2c [#76](https://github.com/puppetlabs/puppetlabs-xinetd/pull/76) ([tphoney](https://github.com/tphoney)) - Fix newline handling in template to prevent empty lines [#75](https://github.com/puppetlabs/puppetlabs-xinetd/pull/75) ([smoeding](https://github.com/smoeding)) - Add class parameter to set the connection rate limit [#74](https://github.com/puppetlabs/puppetlabs-xinetd/pull/74) ([smoeding](https://github.com/smoeding)) ## [2.0.0](https://github.com/puppetlabs/puppetlabs-xinetd/tree/2.0.0) - 2016-06-01 [Full Changelog](https://github.com/puppetlabs/puppetlabs-xinetd/compare/1.5.0...2.0.0) ### Other - Release prep for 2.0.0. [#73](https://github.com/puppetlabs/puppetlabs-xinetd/pull/73) ([bmjen](https://github.com/bmjen)) - Update to newest modulesync_configs [3610af2] [#72](https://github.com/puppetlabs/puppetlabs-xinetd/pull/72) ([DavidS](https://github.com/DavidS)) - added suuport for redirect [#71](https://github.com/puppetlabs/puppetlabs-xinetd/pull/71) ([ManfredP](https://github.com/ManfredP)) - Added Archlinux support [#70](https://github.com/puppetlabs/puppetlabs-xinetd/pull/70) ([pschichtel](https://github.com/pschichtel)) - Puppetv4 [#69](https://github.com/puppetlabs/puppetlabs-xinetd/pull/69) ([ghoneycutt](https://github.com/ghoneycutt)) - fix default_user/default_group and add tests [#68](https://github.com/puppetlabs/puppetlabs-xinetd/pull/68) ([sethlyons](https://github.com/sethlyons)) - Update `port` description in `README.md` [#67](https://github.com/puppetlabs/puppetlabs-xinetd/pull/67) ([](https://github.com/)) - Style fixes [#66](https://github.com/puppetlabs/puppetlabs-xinetd/pull/66) ([ekohl](https://github.com/ekohl)) - Validate metadata with Travis-ci [#65](https://github.com/puppetlabs/puppetlabs-xinetd/pull/65) ([tphoney](https://github.com/tphoney)) - Pipe through instances variable from xinetd::service [#61](https://github.com/puppetlabs/puppetlabs-xinetd/pull/61) ([tphoney](https://github.com/tphoney)) - make port an optional parameter to xinetd::service [#60](https://github.com/puppetlabs/puppetlabs-xinetd/pull/60) ([](https://github.com/)) - pin highline for older ruby [#59](https://github.com/puppetlabs/puppetlabs-xinetd/pull/59) ([tphoney](https://github.com/tphoney)) - add variable $service_status to params.pp for Debian to fix error whe… [#58](https://github.com/puppetlabs/puppetlabs-xinetd/pull/58) ([jangrewe](https://github.com/jangrewe)) - fix issue with params.pp with strict_variables enabled [#57](https://github.com/puppetlabs/puppetlabs-xinetd/pull/57) ([smithtrevor](https://github.com/smithtrevor)) - Removed default values and added env [#56](https://github.com/puppetlabs/puppetlabs-xinetd/pull/56) ([underscorgan](https://github.com/underscorgan)) - Support newer versions [#54](https://github.com/puppetlabs/puppetlabs-xinetd/pull/54) ([ghoneycutt](https://github.com/ghoneycutt)) - Enable Travis-ci to use containers for much faster testing [#52](https://github.com/puppetlabs/puppetlabs-xinetd/pull/52) ([ghoneycutt](https://github.com/ghoneycutt)) - Style change to appease puppet-lint [#51](https://github.com/puppetlabs/puppetlabs-xinetd/pull/51) ([ghoneycutt](https://github.com/ghoneycutt)) ## [1.5.0](https://github.com/puppetlabs/puppetlabs-xinetd/tree/1.5.0) - 2015-02-10 [Full Changelog](https://github.com/puppetlabs/puppetlabs-xinetd/compare/1.4.0...1.5.0) ### Other - 1.5.0 prep [#49](https://github.com/puppetlabs/puppetlabs-xinetd/pull/49) ([underscorgan](https://github.com/underscorgan)) - Pin to rspec-puppet 1.x until migration [#48](https://github.com/puppetlabs/puppetlabs-xinetd/pull/48) ([hunner](https://github.com/hunner)) - Add the ability to manage the xinetd.d conf dir [#47](https://github.com/puppetlabs/puppetlabs-xinetd/pull/47) ([claytono](https://github.com/claytono)) - Add support for 'nice' argument. [#43](https://github.com/puppetlabs/puppetlabs-xinetd/pull/43) ([decibelhertz](https://github.com/decibelhertz)) - add framework for setting package_ensure [#42](https://github.com/puppetlabs/puppetlabs-xinetd/pull/42) ([sethlyons](https://github.com/sethlyons)) ## [1.4.0](https://github.com/puppetlabs/puppetlabs-xinetd/tree/1.4.0) - 2015-01-20 [Full Changelog](https://github.com/puppetlabs/puppetlabs-xinetd/compare/1.3.1...1.4.0) ### Other - 1.4.0 prep [#46](https://github.com/puppetlabs/puppetlabs-xinetd/pull/46) ([underscorgan](https://github.com/underscorgan)) - Add metadata summary per FM-1523 [#45](https://github.com/puppetlabs/puppetlabs-xinetd/pull/45) ([lrnrthr](https://github.com/lrnrthr)) - make default user and group more dynamic and set appropriate group per O... [#41](https://github.com/puppetlabs/puppetlabs-xinetd/pull/41) ([sethlyons](https://github.com/sethlyons)) - added support for gentoo [#40](https://github.com/puppetlabs/puppetlabs-xinetd/pull/40) ([chrigl](https://github.com/chrigl)) - Prepare 1.3.1 release. [#38](https://github.com/puppetlabs/puppetlabs-xinetd/pull/38) ([apenney](https://github.com/apenney)) - Remove xtype parameter [#37](https://github.com/puppetlabs/puppetlabs-xinetd/pull/37) ([roman-mueller](https://github.com/roman-mueller)) ## [1.3.1](https://github.com/puppetlabs/puppetlabs-xinetd/tree/1.3.1) - 2014-07-15 [Full Changelog](https://github.com/puppetlabs/puppetlabs-xinetd/compare/1.3.0...1.3.1) ### Other - Prepare 1.3.1 release. [#38](https://github.com/puppetlabs/puppetlabs-xinetd/pull/38) ([apenney](https://github.com/apenney)) ## [1.3.0](https://github.com/puppetlabs/puppetlabs-xinetd/tree/1.3.0) - 2014-06-18 [Full Changelog](https://github.com/puppetlabs/puppetlabs-xinetd/compare/1.2.0...1.3.0) ### Other - Prep for 1.3.0 release. [#36](https://github.com/puppetlabs/puppetlabs-xinetd/pull/36) ([underscorgan](https://github.com/underscorgan)) - Allow configuring log_on_* operator [#35](https://github.com/puppetlabs/puppetlabs-xinetd/pull/35) ([claytono](https://github.com/claytono)) - Updated readme to have markdown syntax [#30](https://github.com/puppetlabs/puppetlabs-xinetd/pull/30) ([solarkennedy](https://github.com/solarkennedy)) - Test against Puppet v3.4.0 [#29](https://github.com/puppetlabs/puppetlabs-xinetd/pull/29) ([ghoneycutt](https://github.com/ghoneycutt)) - Enable fast finish in Travis [#28](https://github.com/puppetlabs/puppetlabs-xinetd/pull/28) ([ghoneycutt](https://github.com/ghoneycutt)) - Change license from GPLv2 to ASLv2 [#27](https://github.com/puppetlabs/puppetlabs-xinetd/pull/27) ([ghoneycutt](https://github.com/ghoneycutt)) - Add Amazon support [#25](https://github.com/puppetlabs/puppetlabs-xinetd/pull/25) ([ekohl](https://github.com/ekohl)) - Remove duplicated paramater $log_on_failure [#23](https://github.com/puppetlabs/puppetlabs-xinetd/pull/23) ([davidcollom](https://github.com/davidcollom)) - Parameter for logging success [#22](https://github.com/puppetlabs/puppetlabs-xinetd/pull/22) ([philipcohoe](https://github.com/philipcohoe)) - removing typo in resource definition for Puppet 2.6.0 [#20](https://github.com/puppetlabs/puppetlabs-xinetd/pull/20) ([lzap](https://github.com/lzap)) - Update restart and status checking [#19](https://github.com/puppetlabs/puppetlabs-xinetd/pull/19) ([hunner](https://github.com/hunner)) - Add first rspec-system tests [#18](https://github.com/puppetlabs/puppetlabs-xinetd/pull/18) ([hunner](https://github.com/hunner)) - Release 1.2.0 [#17](https://github.com/puppetlabs/puppetlabs-xinetd/pull/17) ([hunner](https://github.com/hunner)) ## [1.2.0](https://github.com/puppetlabs/puppetlabs-xinetd/tree/1.2.0) - 2013-07-30 [Full Changelog](https://github.com/puppetlabs/puppetlabs-xinetd/compare/1.1.0...1.2.0) ### Other - Update specs for travis [#16](https://github.com/puppetlabs/puppetlabs-xinetd/pull/16) ([hunner](https://github.com/hunner)) - Rebase pdxcat/xinetd against new upstream [#15](https://github.com/puppetlabs/puppetlabs-xinetd/pull/15) ([blkperl](https://github.com/blkperl)) - Use @var for puppet 3.2 compatibility [#12](https://github.com/puppetlabs/puppetlabs-xinetd/pull/12) ([ekohl](https://github.com/ekohl)) - Include the xinetd class from xinetd::service type. [#4](https://github.com/puppetlabs/puppetlabs-xinetd/pull/4) ([benburkert](https://github.com/benburkert)) - Add site.pp file for spec tests [#3](https://github.com/puppetlabs/puppetlabs-xinetd/pull/3) ([branan](https://github.com/branan)) - Add initial spec tests [#2](https://github.com/puppetlabs/puppetlabs-xinetd/pull/2) ([branan](https://github.com/branan)) - Update for new forge release [#1](https://github.com/puppetlabs/puppetlabs-xinetd/pull/1) ([branan](https://github.com/branan)) ## [1.1.0](https://github.com/puppetlabs/puppetlabs-xinetd/tree/1.1.0) - 2012-06-07 [Full Changelog](https://github.com/puppetlabs/puppetlabs-xinetd/compare/cb1323333b8734f35b90cee20b6a8a420f3fd885...1.1.0) puppetlabs-xinetd-3.4.1/CODEOWNERS0100644000175100001730000000005214455356606013555 0ustar00* @puppetlabs/open-source-stewards @ekohl puppetlabs-xinetd-3.4.1/CONTRIBUTING.md0100644000175100001730000002306014455356606014417 0ustar00# Contributing to Puppet modules So you want to contribute to a Puppet module: Great! Below are some instructions to get you started doing that very thing while setting expectations around code quality as well as a few tips for making the process as easy as possible. ### Table of Contents 1. [Getting Started](#getting-started) 1. [Commit Checklist](#commit-checklist) 1. [Submission](#submission) 1. [More about commits](#more-about-commits) 1. [Testing](#testing) - [Running Tests](#running-tests) - [Writing Tests](#writing-tests) 1. [Get Help](#get-help) ## Getting Started - Fork the module repository on GitHub and clone to your workspace - Make your changes! ## Commit Checklist ### The Basics - [x] my commit is a single logical unit of work - [x] I have checked for unnecessary whitespace with "git diff --check" - [x] my commit does not include commented out code or unneeded files ### The Content - [x] my commit includes tests for the bug I fixed or feature I added - [x] my commit includes appropriate documentation changes if it is introducing a new feature or changing existing functionality - [x] my code passes existing test suites ### The Commit Message - [x] the first line of my commit message includes: - [x] an issue number (if applicable), e.g. "(MODULES-xxxx) This is the first line" - [x] a short description (50 characters is the soft limit, excluding ticket number(s)) - [x] the body of my commit message: - [x] is meaningful - [x] uses the imperative, present tense: "change", not "changed" or "changes" - [x] includes motivation for the change, and contrasts its implementation with the previous behavior ## Submission ### Pre-requisites - Make sure you have a [GitHub account](https://github.com/join) - [Create a ticket](https://tickets.puppet.com/secure/CreateIssue!default.jspa), or [watch the ticket](https://tickets.puppet.com/browse/) you are patching for. ### Push and PR - Push your changes to your fork - [Open a Pull Request](https://help.github.com/articles/creating-a-pull-request-from-a-fork/) against the repository in the puppetlabs organization ## More about commits 1. Make separate commits for logically separate changes. Please break your commits down into logically consistent units which include new or changed tests relevant to the rest of the change. The goal of doing this is to make the diff easier to read for whoever is reviewing your code. In general, the easier your diff is to read, the more likely someone will be happy to review it and get it into the code base. If you are going to refactor a piece of code, please do so as a separate commit from your feature or bug fix changes. We also really appreciate changes that include tests to make sure the bug is not re-introduced, and that the feature is not accidentally broken. Describe the technical detail of the change(s). If your description starts to get too long, that is a good sign that you probably need to split up your commit into more finely grained pieces. Commits which plainly describe the things which help reviewers check the patch and future developers understand the code are much more likely to be merged in with a minimum of bike-shedding or requested changes. Ideally, the commit message would include information, and be in a form suitable for inclusion in the release notes for the version of Puppet that includes them. Please also check that you are not introducing any trailing whitespace or other "whitespace errors". You can do this by running "git diff --check" on your changes before you commit. 2. Sending your patches To submit your changes via a GitHub pull request, we _highly_ recommend that you have them on a topic branch, instead of directly on "master". It makes things much easier to keep track of, especially if you decide to work on another thing before your first change is merged in. GitHub has some pretty good [general documentation](http://help.github.com/) on using their site. They also have documentation on [creating pull requests](https://help.github.com/articles/creating-a-pull-request-from-a-fork/). In general, after pushing your topic branch up to your repository on GitHub, you can switch to the branch in the GitHub UI and click "Pull Request" towards the top of the page in order to open a pull request. 3. Update the related JIRA issue. If there is a JIRA issue associated with the change you submitted, then you should update the ticket to include the location of your branch, along with any other commentary you may wish to make. # Testing ## Getting Started Our Puppet modules provide [`Gemfile`](./Gemfile)s, which can tell a Ruby package manager such as [bundler](http://bundler.io/) what Ruby packages, or Gems, are required to build, develop, and test this software. Please make sure you have [bundler installed](http://bundler.io/#getting-started) on your system, and then use it to install all dependencies needed for this project in the project root by running ```shell % bundle install --path .bundle/gems Fetching gem metadata from https://rubygems.org/........ Fetching gem metadata from https://rubygems.org/.. Using rake (10.1.0) Using builder (3.2.2) -- 8><-- many more --><8 -- Using rspec-system-puppet (2.2.0) Using serverspec (0.6.3) Using rspec-system-serverspec (1.0.0) Using bundler (1.3.5) Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed. ``` NOTE: some systems may require you to run this command with sudo. If you already have those gems installed, make sure they are up-to-date: ```shell % bundle update ``` ## Running Tests With all dependencies in place and up-to-date, run the tests: ### Unit Tests ```shell % bundle exec rake spec ``` This executes all the [rspec tests](http://rspec-puppet.com/) in the directories defined [here](https://github.com/puppetlabs/puppetlabs_spec_helper/blob/699d9fbca1d2489bff1736bb254bb7b7edb32c74/lib/puppetlabs_spec_helper/rake_tasks.rb#L17) and so on. rspec tests may have the same kind of dependencies as the module they are testing. Although the module defines these dependencies in its [metadata.json](./metadata.json), rspec tests define them in [.fixtures.yml](./fixtures.yml). ### Acceptance Tests Some Puppet modules also come with acceptance tests, which use [beaker][]. These tests spin up a virtual machine under [VirtualBox](https://www.virtualbox.org/), controlled with [Vagrant](http://www.vagrantup.com/), to simulate scripted test scenarios. In order to run these, you need both Virtualbox and Vagrant installed on your system. Run the tests by issuing the following command ```shell % bundle exec rake spec_clean % bundle exec rspec spec/acceptance ``` This will now download a pre-fabricated image configured in the [default node-set](./spec/acceptance/nodesets/default.yml), install Puppet, copy this module, and install its dependencies per [spec/spec_helper_acceptance.rb](./spec/spec_helper_acceptance.rb) and then run all the tests under [spec/acceptance](./spec/acceptance). ## Writing Tests ### Unit Tests When writing unit tests for Puppet, [rspec-puppet][] is your best friend. It provides tons of helper methods for testing your manifests against a catalog (e.g. contain_file, contain_package, with_params, etc). It would be ridiculous to try and top rspec-puppet's [documentation][rspec-puppet_docs] but here's a tiny sample: Sample manifest: ```puppet file { "a test file": ensure => present, path => "/etc/sample", } ``` Sample test: ```ruby it 'does a thing' do expect(subject).to contain_file("a test file").with({:path => "/etc/sample"}) end ``` ### Acceptance Tests Writing acceptance tests for Puppet involves [beaker][] and its cousin [beaker-rspec][]. A common pattern for acceptance tests is to create a test manifest, apply it twice to check for idempotency or errors, then run expectations. ```ruby it 'does an end-to-end thing' do pp = <<-EOF file { 'a test file': ensure => present, path => "/etc/sample", content => "test string", } apply_manifest(pp, :catch_failures => true) apply_manifest(pp, :catch_changes => true) end describe file("/etc/sample") do it { is_expected.to contain "test string" } end ``` # If you have commit access to the repository Even if you have commit access to the repository, you still need to go through the process above, and have someone else review and merge in your changes. The rule is that **all changes must be reviewed by a project developer that did not write the code to ensure that all changes go through a code review process.** The record of someone performing the merge is the record that they performed the code review. Again, this should be someone other than the author of the topic branch. # Get Help ### On the web * [Puppet help messageboard](http://puppet.com/community/get-help) * [Writing tests](https://docs.puppet.com/guides/module_guides/bgtm.html#step-three-module-testing) * [General GitHub documentation](http://help.github.com/) * [GitHub pull request documentation](http://help.github.com/send-pull-requests/) ### On chat * Slack (slack.puppet.com) #forge-modules, #puppet-dev, #windows, #voxpupuli * IRC (freenode) #puppet-dev, #voxpupuli [rspec-puppet]: http://rspec-puppet.com/ [rspec-puppet_docs]: http://rspec-puppet.com/documentation/ [beaker]: https://github.com/puppetlabs/beaker [beaker-rspec]: https://github.com/puppetlabs/beaker-rspec puppetlabs-xinetd-3.4.1/HISTORY.md0100644000175100001730000001005414455356606013650 0ustar00## Unsupported Release 3.3.0 ### Summary This is a moderate release that removes stdlib dependency altogether as it isn't being used. #### Added - Update metadata.json to remove dependencies. ## Unsupported Release 3.2.0 ### Summary This is a moderate release that serves to increases the maximum compatible puppet version from `5.x` to `6.x`. #### Added - Maximum compatible puppet version has been increased from from `5.x` to `6.x`. ## Unsupported Release 3.1.0 ### Summary This is a moderate release that serves to increases the maximum compatible version of stdlib from `5.0.0` to `6.0.0`. #### Changed - Maximum compatible version of stdlib changed from `5.0.0` to `6.0.0`. #### Fixed - Fix made to `xinetd::service` example within readme. ## Unsupported Release 3.0.0 ### Summary This is a major release that removes support for Puppet 3.x and changes a default in manifests/service.pp #### Added - The following parameters: - `cps` - `service_hasstatus`, `service_hasrestart` (for Amazon linux) - `service_restart`, `service_status` (for Archlinux) - `passenv` - `use_default_group` - Puppet 4 & 5 support #### Changed - Puppet version requirement lower bound to 4.7.1 - `$xinetd::service::server` now defaults to `undef` #### Fixed - config template to supress unnecessary newlines ## Release 2.0.0 ### Summary This is a major release that removes support for Puppet 2.x and adds support for Puppet 3.8 and Puppet 4.0. Also includes various new parameters and bugfixes. #### Backwards Incompatibility - Removes support for Puppet 2.x #### Features - Adds Puppet 3.8.x support - Adds Puppet 4.x support - Adds compatibility with ArchLinux - New parameters in `xinetd` - $enabled - $disabled - $log_type - $log_on_failure - $log_on_success - $no_access - $only_from - $max_load - $instances - $per_source - $bind - $mdns - $v6only - $env - $passenv - $groups - $umask - $banner - $banner_fail - $banner_success - $purge_confdir - $redirect - New parameters in `xinetd::service` - $nice - $env #### Bugfixes - (MODULES-2012) Fixes a strict_variables failure when `$default_user` and `$default_group` are set. - Fixes a strict_variables failure on Debian. - Pipe through instances variable from xinetd::service. Documented but not implemented. - Changes `$port` to an optional parameter. - (MODULES-2313) Fixes default_user/group functionality ## 2015-02-10 - Release 1.5.0 ###Summary This release adds some new parameters and also pins to rspec-puppet 1.x until migration. #### Features - New parameters in `class xinetd` - `package_ensure` - `purge_confdir` - New parameter in `xinetd::service` - `nice` ## 2015-01-20 - Release 1.4.0 ### Summary This release adds support for Gentoo and improves FreeBSD support #### Features - Gentoo support added - Better defaults for group for FreeBSD - Add deprecation warning for `$xtype` parameter ## 2014-07-15 - Release 1.3.1 ### Summary This release merely updates metadata.json so the module can be uninstalled and upgraded via the puppet module command. ## 2014-06-18 - Release 1.3.0 #### Features - Add 'log_on_success', 'log_on_success_operator' and 'log_on_failure_operator parameters to xinetd::service - Add 'service_restart', 'service_status', 'service_hasrestart', and 'service_hasstatus' parameters to class xinetd. - Add support for Amazon Linux. - License changes to ASLv2 - Testing and documentation updates. #### Bugfixes - Remove duplicated $log_on_failure parameter ## 2013-07-30 - Release 1.2.0 #### Features - Add `confdir`, `conffile`, `package_name`, and `service_name` parameters to `Class['xinetd']` - Add support for FreeBSD and Suse. - Add `log_on_failure`, `service_name`, `groups`, `no_access`, `access_times`, `log_type`, `only_from`, and `xtype` parameters to `Xinetd::Service` define #### Bugfixes - Redesign for `xinetd::params` pattern - Add validation - Add unit testing ## 2012-06-07 - Release 1.1.0 - Add port and bind options to services - make services deletable ## 2010-08-12 - Release 1.0.1 -added documentation ## 2010-06-24 - Release 1.0.0 - initial release puppetlabs-xinetd-3.4.1/LICENSE0100644000175100001730000002613614455356606013202 0ustar00 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] 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. puppetlabs-xinetd-3.4.1/NOTICE0100644000175100001730000000111314455356606013065 0ustar00Puppet Module - puppetlabs-xinetd Copyright 2018 Puppet, Inc. 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.puppetlabs-xinetd-3.4.1/README.md0100644000175100001730000001241314455356606013445 0ustar00# xinetd [![Build Status](https://travis-ci.org/puppetlabs/puppetlabs-xinetd.png)](https://travis-ci.org/puppetlabs/puppetlabs-xinetd) This is the xinetd module. > This module is supported by the Puppet community. We expect it to be of the same high > quality as our own Supported modules, but it does not qualify for Puppet Support plans. > See the `CODEOWNERS` file for usernames of the maintainers. ## Overview This module configures xinetd, and exposes the xinetd::service definition for adding new services. ## Class: xinetd Sets up the xinetd daemon. Has options for you in case you have specific package names and service needs. ### Parameters * `confdir` * `conffile` * `package_name` * `service_name` * `service_restart` * `service_status` * `service_hasrestart` * `service_hasstatus` Additionally, all the global defaults in the main xinetd.conf can be set. By default they are *not* set, allowing the internal xinetd defaults to be used: (see `man xinetd.conf` for full descriptions) * `enabled` - Takes a list of service ID's to enable. * `disabled` - Takes a list of service ID's to disable. * `log_type` - Determines where the service log output is sent. * `log_on_failure` - Determines what information is logged when a server cannot be started. * `log_on_success` - Determines what information is logged when a server is started and when that server exits. * `no_access` - Determines the remote hosts to which the particular service is unavailable. * `only_from` - Determines the remote hosts to which the particular service is available. * `max_load` - Takes a floating point value as the load at which the service will stop accepting connections. * `cps` - Takes two numbers to set a rate limit for incoming connections. The first number is the number of connections per second at which the service is disabled. The second number is the time in seconds before the service will be enabled again. * `instances` - Determines the number of servers that can be simultaneously active for a service (the default is no limit). * `per_source` - This specifies the maximum instances of this service per source IP address. * `bind` - Allows a service to be bound to a specific interface on the machine. * `mdns` - On systems that support mdns registration of services (currently only Mac OS X), this will enable or disable registration of the service. * `v6only` - Set to yes to use IPv6 only. * `passenv` - The value of this attribute is a list of environment variables from xinetd's environment that will be passed to the server. * `env` - The value of this attribute is a list of environment variables that will be added to the environment before starting a server. * `groups` - If the groups attribute is set to "yes", then the server is executed with access to the groups that the server's effective UID has access to. * `umask` - Sets the inherited umask for the service. * `banner` - Takes the name of a file to be splatted at the remote host when a connection to that service is established. * `banner_fail` - Takes the name of a file to be splatted at the remote host when a connection to that service is denied. * `banner_success` - Takes the name of a file to be splatted at the remote host when a connection to that service is granted. ## Definition: xinetd::service Sets up a xinetd service. All parameters match up with xinetd.conf(5) man page. ### Parameters: * `server` - optional - determines the program to execute for this service (either this or `redirect` is required) * `redirect` - optional - ip or hostname and port of the target service (either this or `server` is required) * `port` - optional - determines the service port (required if service is not listed in `/etc/services`) * `cps` - optional * `flags` - optional * `per_source` - optional * `server_args` - optional * `disable` - optional - defaults to "no" * `socket_type` - optional - defaults to "stream" * `protocol` - optional - defaults to "tcp" * `user` - optional - defaults to "root" * `group` - optional - defaults to "root" * `use_default_group` - optional - set to "false" to prevent using the OS specific default group for the service, defaults to "true" * `instances` - optional - defaults to "UNLIMITED" * `wait` - optional - based on $protocol will default to "yes" for udp and "no" for tcp * `service_type` - optional - type setting in xinetd * `nice` - optional - integer between -20 and 19, inclusive. Either the `server` or the `redirect` parameter must be set. ### Sample Usage ```puppet xinetd::service { 'tftp': port => '69', server => '/usr/sbin/in.tftpd', server_args => '-s /var/lib/tftp/', socket_type => 'dgram', protocol => 'udp', cps => '100 2', flags => 'IPv4', per_source => '11', } ``` ```puppet xinetd::service { 'ssh-tunnel-host_example_com': port => '2222', redirect => 'host.example.com 22', flags => 'REUSE', service_type => 'UNLISTED', bind => "${::ipaddress_eth1}", only_from => '10.130.50.174', } ``` ## Supported OSes Supports Debian, FreeBSD, Suse, RedHat, and Amazon Linux OS Families. puppetlabs-xinetd-3.4.1/data0040755000000000000000000000000014455356607012772 5ustar00puppetlabs-xinetd-3.4.1/data/common.yaml0100644000175100001730000000000714455356606015247 0ustar00--- {} puppetlabs-xinetd-3.4.1/examples0040755000000000000000000000000014455356607013677 5ustar00puppetlabs-xinetd-3.4.1/examples/init.pp0100644000175100001730000000002114455356606015300 0ustar00include ::xinetd puppetlabs-xinetd-3.4.1/hiera.yaml0100644000175100001730000000125514455356606014144 0ustar00--- version: 5 defaults: # Used for any hierarchy level that omits these keys. datadir: data # This path is relative to hiera.yaml's directory. data_hash: yaml_data # Use the built-in YAML backend. hierarchy: - name: "osfamily/major release" paths: # Used to distinguish between Debian and Ubuntu - "os/%{facts.os.name}/%{facts.os.release.major}.yaml" - "os/%{facts.os.family}/%{facts.os.release.major}.yaml" # Used for Solaris - "os/%{facts.os.family}/%{facts.kernelrelease}.yaml" - name: "osfamily" paths: - "os/%{facts.os.name}.yaml" - "os/%{facts.os.family}.yaml" - name: 'common' path: 'common.yaml' puppetlabs-xinetd-3.4.1/locales0040755000000000000000000000000014455356607013503 5ustar00puppetlabs-xinetd-3.4.1/locales/config.yaml0100644000175100001730000000204114455356606015735 0ustar00--- # This is the project-specific configuration file for setting up # fast_gettext for your project. gettext: # This is used for the name of the .pot and .po files; they will be # called .pot? project_name: puppetlabs-xinetd # This is used in comments in the .pot and .po files to indicate what # project the files belong to and should bea little more desctiptive than # package_name: puppetlabs-xinetd # The locale that the default messages in the .pot file are in default_locale: en # The email used for sending bug reports. bugs_address: docs@puppet.com # The holder of the copyright. copyright_holder: Puppet, Inc. # This determines which comments in code should be eligible for translation. # Any comments that start with this string will be externalized. (Leave # empty to include all.) comments_tag: TRANSLATOR # Patterns for +Dir.glob+ used to find all files that might contain # translatable content, relative to the project root directory source_files: - './lib/**/*.rb' puppetlabs-xinetd-3.4.1/manifests0040755000000000000000000000000014455356607014052 5ustar00puppetlabs-xinetd-3.4.1/manifests/init.pp0100644000175100001730000000431214455356606015462 0ustar00# Class: xinetd # # This module manages xinetd # # Sample Usage: # xinetd::service { 'rsync': # port => '873', # server => '/usr/bin/rsync', # server_args => '--daemon --config /etc/rsync.conf', # } # class xinetd ( $confdir = $xinetd::params::confdir, $conffile = $xinetd::params::conffile, $package_name = $xinetd::params::package_name, $package_ensure = $xinetd::params::package_ensure, $service_name = $xinetd::params::service_name, $service_restart = $xinetd::params::service_restart, $service_status = $xinetd::params::service_status, $service_hasrestart = $xinetd::params::service_hasrestart, $service_hasstatus = $xinetd::params::service_hasstatus, $enabled = undef, $disabled = undef, $log_type = undef, $log_on_failure = undef, $log_on_success = undef, $no_access = undef, $only_from = undef, $max_load = undef, $cps = undef, $instances = undef, $per_source = undef, $bind = undef, $mdns = undef, $v6only = undef, $env = undef, $passenv = undef, $groups = undef, $umask = undef, $banner = undef, $banner_fail = undef, $banner_success = undef, $purge_confdir = undef, ) inherits xinetd::params { File { owner => 'root', group => '0', notify => Service[$service_name], require => Package[$package_name], } file { $confdir: ensure => directory, mode => '0755', recurse => $purge_confdir, purge => $purge_confdir, } # Template uses: # $confdir file { $conffile: ensure => file, mode => '0644', content => template('xinetd/xinetd.conf.erb'), } package { $package_name: ensure => $package_ensure, before => Service[$service_name], } service { $service_name: ensure => running, enable => true, hasrestart => $service_hasrestart, hasstatus => $service_hasstatus, restart => $service_restart, status => $service_status, require => File[$conffile], } } puppetlabs-xinetd-3.4.1/manifests/params.pp0100644000175100001730000000567014455356606016012 0ustar00# == Class: xinetd::params # class xinetd::params { $default_user = 'root' $package_ensure = 'installed' case $facts['os']['family'] { 'FreeBSD': { $default_group = 'wheel' } default: { $default_group = 'root' } } case $facts['os']['family'] { 'Debian': { $confdir = '/etc/xinetd.d' $conffile = '/etc/xinetd.conf' $package_name = 'xinetd' $service_hasrestart = true $service_hasstatus = false $service_name = 'xinetd' $service_restart = "/usr/sbin/service ${service_name} reload" $service_status = undef } 'FreeBSD': { $confdir = '/usr/local/etc/xinetd.d' $conffile = '/usr/local/etc/xinetd.conf' $package_name = 'security/xinetd' $service_hasrestart = false $service_hasstatus = true $service_name = 'xinetd' $service_restart = undef $service_status = undef } 'Suse': { $confdir = '/etc/xinetd.d' $conffile = '/etc/xinetd.conf' $package_name = 'xinetd' $service_hasrestart = true $service_hasstatus = false $service_name = 'xinetd' $service_restart = "/sbin/service ${service_name} reload" $service_status = undef } 'RedHat': { $confdir = '/etc/xinetd.d' $conffile = '/etc/xinetd.conf' $package_name = 'xinetd' $service_hasrestart = true $service_hasstatus = true $service_name = 'xinetd' $service_restart = "/sbin/service ${service_name} reload" $service_status = undef } 'Gentoo': { $confdir = '/etc/xinetd.d' $conffile = '/etc/xinetd.conf' $package_name = 'sys-apps/xinetd' $service_hasrestart = true $service_hasstatus = true $service_name = 'xinetd' $service_restart = undef $service_status = undef } 'Archlinux': { $confdir = '/etc/xinetd.d' $conffile = '/etc/xinetd.conf' $package_name = 'xinetd' $service_hasrestart = true $service_hasstatus = true $service_name = 'xinetd' $service_restart = undef $service_status = undef } 'Linux': { case $facts['os']['name'] { 'Amazon': { $confdir = '/etc/xinetd.d' $conffile = '/etc/xinetd.conf' $package_name = 'xinetd' $service_name = 'xinetd' $service_hasrestart = true $service_hasstatus = false $service_restart = undef $service_status = undef } default: { fail("xinetd: module does not support Linux operatingsystem ${facts['os']['name']}") } } } default: { fail("xinetd: module does not support osfamily ${facts['os']['family']}") } } } puppetlabs-xinetd-3.4.1/manifests/service.pp0100644000175100001730000001333114455356606016160 0ustar00# Definition: xinetd::service # # sets up a xinetd service # all parameters match up with xinetd.conf(5) man page # # Parameters: # $ensure - optional - defaults to 'present' # $log_on_success - optional - may contain any combination of # 'PID', 'HOST', 'USERID', 'EXIT', 'DURATION', 'TRAFFIC' # $log_on_success_operator - optional - defaults to '+='. This is whether or # not values specified will be add, set or remove # from the default. # $log_on_failure - optional - may contain any combination of # 'HOST', 'USERID', 'ATTEMPT' # $log_on_failure_operator - optional - defaults to '+='. This is whether or # not values specified will be add, set or remove # from the default. # $service_type - optional - type setting in xinetd # may contain any combinarion of 'RPC', 'INTERNAL', # 'TCPMUX/TCPMUXPLUS', 'UNLISTED' # $cps - optional # $flags - optional # $per_source - optional # $port - optional - determines the service port (required if service is not listed in /etc/services) # $server - optional - determines the program to execute for this service # $server_args - optional # $disable - optional - defaults to "no" # $socket_type - optional - defaults to "stream" # $protocol - optional - defaults to "tcp" # $user - optional - defaults to "root" # $group - optional - defaults to "root" # $use_default_group - optional - defaults to true # $groups - optional - defaults to "yes" # $instances - optional - defaults to "UNLIMITED" # $only_from - optional # $wait - optional - based on $protocol will default to "yes" for udp and "no" for tcp # $xtype - deprecated - use $service_type instead # $no_access - optional # $access_times - optional # $log_type - optional # $bind - optional # $nice - optional - integer between -20 and 19, inclusive. # $redirect - optional - ip or hostname and port of the target service # # Actions: # setups up a xinetd service by creating a file in /etc/xinetd.d/ # # Requires: # $server or $redirect must be set # $port must be set # # Sample Usage: # # setup tftp service # xinetd::service { 'tftp': # port => '69', # server => '/usr/sbin/in.tftpd', # server_args => '-s $base', # socket_type => 'dgram', # protocol => 'udp', # cps => '100 2', # flags => 'IPv4', # per_source => '11', # nice => 19, # } # xinetd::service # define xinetd::service ( $server = undef, $port = undef, $ensure = present, $log_on_success = undef, $log_on_success_operator = '+=', $log_on_failure = undef, $log_on_failure_operator = '+=', $service_type = undef, $service_name = $title, $cps = undef, $disable = 'no', $flags = undef, $group = undef, Boolean $use_default_group = true, $groups = 'yes', $instances = 'UNLIMITED', $per_source = undef, Enum['tcp', 'udp'] $protocol = 'tcp', $server_args = undef, $socket_type = 'stream', $user = undef, $only_from = undef, $wait = undef, $xtype = undef, $no_access = undef, $access_times = undef, $log_type = undef, $bind = undef, Optional[Integer[-20, 19]] $nice = undef, $env = undef, $passenv = undef, $redirect = undef, ) { include xinetd unless ($server or $redirect) { fail('xinetd::service needs either of server or redirect') } if $user { $_user = $user } else { $_user = $xinetd::params::default_user } if $group or !$use_default_group { $_group = $group } else { $_group = $xinetd::params::default_group } if $wait { $_wait = $wait } else { $_wait = $protocol ? { 'tcp' => 'no', 'udp' => 'yes' } } if $xtype { warning ('The $xtype parameter to xinetd::service is deprecated. Use the service_type parameter instead.') } # Template uses: # - $port # - $disable # - $socket_type # - $protocol # - $_wait # - $user # - $group # - $groups # - $server # - $bind # - $service_type # - $server_args # - $only_from # - $per_source # - $log_on_success # - $log_on_success_operator # - $log_on_failure # - $log_on_failure_operator # - $cps # - $flags # - $xtype (deprecated) # - $no_access # - $access_types # - $log_type # - $nice # - $env # - $passenv # - $redirect file { "${xinetd::confdir}/${title}": ensure => $ensure, owner => 'root', mode => '0644', content => template('xinetd/service.erb'), notify => Service[$xinetd::service_name], require => File[$xinetd::confdir], } } puppetlabs-xinetd-3.4.1/metadata.json0100644000175100001730000000253514455356606014645 0ustar00{ "name": "puppetlabs-xinetd", "version": "3.4.1", "author": "puppetlabs", "summary": "Configures xinetd and exposes the xinetd::service definition for adding new services.", "license": "Apache-2.0", "source": "https://github.com/puppetlabs/puppetlabs-xinetd", "project_page": "https://github.com/puppetlabs/puppetlabs-xinetd", "issues_url": "https://tickets.puppetlabs.com/browse/MODULES", "dependencies": [ ], "operatingsystem_support": [ { "operatingsystem": "RedHat" }, { "operatingsystem": "CentOS" }, { "operatingsystem": "OracleLinux" }, { "operatingsystem": "Scientific" }, { "operatingsystem": "SLES" }, { "operatingsystem": "Debian" }, { "operatingsystem": "Ubuntu" }, { "operatingsystem": "Rocky" }, { "operatingsystem": "AlmaLinux" }, { "operatingsystem": "Gentoo" }, { "operatingsystem": "Archlinux" }, { "operatingsystem": "FreeBSD" }, { "operatingsystem": "Amazon" } ], "requirements": [ { "name": "puppet", "version_requirement": ">= 4.7.1 < 9.0.0" } ], "description": "Puppet module to configure xinetd services", "pdk-version": "3.0.0", "template-url": "pdk-default#3.0.0", "template-ref": "tags/3.0.0-0-g056e50d" } puppetlabs-xinetd-3.4.1/templates0040755000000000000000000000000014455356607014057 5ustar00puppetlabs-xinetd-3.4.1/templates/service.erb0100644000175100001730000000363114455356606016320 0ustar00# This file is being maintained by Puppet. # DO NOT EDIT service <%= @service_name %> { <% if @port -%> port = <%= @port %> <% end -%> disable = <%= @disable %> socket_type = <%= @socket_type %> protocol = <%= @protocol %> wait = <%= @_wait %> user = <%= @_user %> <% if @_group -%> group = <%= @_group %> <% end -%> groups = <%= @groups %> <% if @server -%> server = <%= @server %> <% end -%> <% if @bind -%> bind = <%= @bind %> <% end -%> <% if @service_type -%> type = <%= @service_type %> <% end -%> <% if @server_args -%> server_args = <%= @server_args %> <% end -%> <% if @only_from -%> only_from = <%= @only_from %> <% end -%> <% if @per_source -%> per_source = <%= @per_source %> <% end -%> <% if @log_on_success -%> log_on_success <%= @log_on_success_operator %> <%= @log_on_success %> <% end -%> <% if @log_on_failure -%> log_on_failure <%= @log_on_failure_operator %> <%= @log_on_failure %> <% end -%> <% if @cps -%> cps = <%= @cps %> <% end -%> <% if @flags -%> flags = <%= @flags %> <% end -%> <% if @xtype -%> type = <%= @xtype %> <% end -%> <% if @no_access -%> no_access = <%= @no_access %> <% end -%> <% if @access_times -%> access_times = <%= @access_times %> <% end -%> <% if @log_type -%> log_type = <%= @log_type %> <% end -%> <% if @nice -%> nice = <%= @nice %> <% end -%> <% if @env -%> env = <%= @env %> <% end -%> <% if @passenv -%> passenv = <%= @passenv %> <% end -%> <% if @instances -%> instances = <%= @instances %> <% end -%> <% if @redirect -%> redirect = <%= @redirect %> <% end -%> } puppetlabs-xinetd-3.4.1/templates/xinetd.conf.erb0100644000175100001730000000432114455356606017074 0ustar00# This file is being maintained by Puppet. # DO NOT EDIT # # This is the master xinetd configuration file. Settings in the # default section will be inherited by all service configurations # unless explicitly overridden in the service configuration. See # xinetd.conf in the man pages for a more detailed explanation of # these attributes. defaults { # The next two items are intended to be a quick access place to # temporarily enable or disable services. <% if @enabled -%> enabled = <%= @enabled %> <% end -%> <% if @disabled -%> disabled = <%= @disabled %> <% end -%> # Define general logging characteristics. <% if @log_type -%> log_type = <%= @log_type %> <% end -%> <% if @log_on_failure -%> log_on_failure = <%= @log_on_failure %> <% end -%> <% if @log_on_success -%> log_on_success = <%= @log_on_success %> <% end -%> # Define access restriction defaults <% if @no_access -%> no_access = <%= @no_access %> <% end -%> <% if @only_from -%> only_from = <%= @only_from %> <% end -%> <% if @max_load -%> max_load = <%= @max_load %> <% end -%> <% if @cps -%> cps = <%= @cps %> <% end -%> <% if @instances -%> instances = <%= @instances %> <% end -%> <% if @per_source -%> per_source = <%= @per_source %> <% end -%> # Address and networking defaults <% if @bind -%> bind = <%= @bind %> <% end -%> <% if @mdns -%> mdns = <%= @mdns %> <% end -%> <% if @v6only -%> v6only = <%= @v6only %> <% end -%> # setup environmental attributes <% if @env -%> env = <%= @env %> <% end -%> <% if @passenv -%> passenv = <%= @passenv %> <% end -%> <% if @groups -%> groups = <%= @groups %> <% end -%> <% if @umask -%> umask = <%= @umask %> <% end -%> # Generally, banners are not used. This sets up their global defaults <% if @banner -%> banner = <%= @banner %> <% end -%> <% if @banner_fail -%> banner_fail = <%= @banner_fail %> <% end -%> <% if @banner_success -%> banner_success = <%= @banner_success %> <% end -%> } includedir <%= @confdir %>