diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 100430f7..e3a97007 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,20 +1,15 @@ - +## Checklist +- [ ] 🟢 Spec tests. +- [ ] 🟢 Acceptance tests. +- [ ] Manually verified. (For example `puppet apply`) \ No newline at end of file diff --git a/.github/workflows/auto_release.yml b/.github/workflows/auto_release.yml deleted file mode 100644 index d6270c56..00000000 --- a/.github/workflows/auto_release.yml +++ /dev/null @@ -1,9 +0,0 @@ -name: "Auto release" - -on: - workflow_dispatch: - -jobs: - release_prep: - uses: "puppetlabs/cat-github-actions/.github/workflows/module_release_prep.yml@main" - secrets: "inherit" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a5738adb..87458beb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,3 +15,6 @@ jobs: needs: Spec uses: "puppetlabs/cat-github-actions/.github/workflows/module_acceptance.yml@main" secrets: "inherit" + with: + runs_on: "ubuntu-20.04" + flags: "--exclude-platforms '[\"Ubuntu-22.04-arm\", \"RedHat-9-arm\"]'" diff --git a/.github/workflows/labeller.yml b/.github/workflows/labeller.yml deleted file mode 100644 index 5434d3ff..00000000 --- a/.github/workflows/labeller.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: community-labeller - -on: - issues: - types: - - opened - pull_request_target: - types: - - opened - -jobs: - label: - runs-on: ubuntu-latest - steps: - - - uses: puppetlabs/community-labeller@v0 - name: Label issues or pull requests - with: - label_name: community - label_color: '5319e7' - org_membership: puppetlabs - token: ${{ secrets.IAC_COMMUNITY_LABELER }} diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index a28cd2db..ebbaa7ff 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -14,4 +14,6 @@ jobs: needs: Spec uses: "puppetlabs/cat-github-actions/.github/workflows/module_acceptance.yml@main" secrets: "inherit" - + with: + runs_on: "ubuntu-20.04" + flags: "--exclude-platforms '[\"Ubuntu-22.04-arm\", \"RedHat-9-arm\"]'" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0b7b8a05..4b3b80fc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,7 +2,7 @@ name: "Publish module" on: workflow_dispatch: - + jobs: release: uses: "puppetlabs/cat-github-actions/.github/workflows/module_release.yml@main" diff --git a/.github/workflows/release_prep.yml b/.github/workflows/release_prep.yml new file mode 100644 index 00000000..bb0b7acc --- /dev/null +++ b/.github/workflows/release_prep.yml @@ -0,0 +1,15 @@ +name: "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" diff --git a/.gitignore b/.gitignore index 988dcbbe..2803e566 100644 --- a/.gitignore +++ b/.gitignore @@ -16,9 +16,10 @@ /log/ /pkg/ /spec/fixtures/manifests/ -/spec/fixtures/modules/ +/spec/fixtures/modules/* /tmp/ /vendor/ +/.vendor/ /convert_report.txt /update_report.txt .DS_Store @@ -26,3 +27,9 @@ .envrc /inventory.yaml /spec/fixtures/litmus_inventory.yaml +.resource_types +.modules +.task_cache.json +.plan_cache.json +.rerun.json +bolt-debug.log diff --git a/.pdkignore b/.pdkignore index c538bea8..84684be6 100644 --- a/.pdkignore +++ b/.pdkignore @@ -16,9 +16,10 @@ /log/ /pkg/ /spec/fixtures/manifests/ -/spec/fixtures/modules/ +/spec/fixtures/modules/* /tmp/ /vendor/ +/.vendor/ /convert_report.txt /update_report.txt .DS_Store @@ -26,20 +27,23 @@ .envrc /inventory.yaml /spec/fixtures/litmus_inventory.yaml -/appveyor.yml -/.editorconfig +.resource_types +.modules +.task_cache.json +.plan_cache.json +.rerun.json +bolt-debug.log /.fixtures.yml /Gemfile /.gitattributes +/.github/ /.gitignore -/.gitlab-ci.yml /.pdkignore /.puppet-lint.rc /Rakefile /rakelib/ /.rspec -/.rubocop.yml -/.travis.yml +/..yml /.yardopts /spec/ /.vscode/ diff --git a/.rubocop.yml b/.rubocop.yml index 4030e258..c78d5e82 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,14 +1,10 @@ --- -inherit_from: .rubocop_todo.yml - require: - rubocop-performance - rubocop-rspec AllCops: NewCops: enable DisplayCopNames: true - ExtraDetails: true - DisplayStyleGuide: true TargetRubyVersion: '2.6' Include: - "**/*.rb" @@ -23,5 +19,1264 @@ AllCops: - "**/Puppetfile" - "**/Vagrantfile" - "**/Guardfile" +inherit_from: ".rubocop_todo.yml" +Bundler/DuplicatedGem: + Enabled: false +Bundler/GemFilename: + Enabled: false +Bundler/InsecureProtocolSource: + Enabled: false +Bundler/OrderedGems: + 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/AccessModifierIndentation: + Enabled: false +Layout/ArgumentAlignment: + Enabled: false +Layout/ArrayAlignment: + Enabled: false +Layout/AssignmentIndentation: + Enabled: false +Layout/BeginEndAlignment: + Enabled: false +Layout/BlockAlignment: + Enabled: false +Layout/BlockEndNewline: + Enabled: false +Layout/CaseIndentation: + Enabled: false +Layout/ClosingHeredocIndentation: + Enabled: false +Layout/ClosingParenthesisIndentation: + Enabled: false +Layout/CommentIndentation: + Enabled: false +Layout/ConditionPosition: + Enabled: false +Layout/DefEndAlignment: + Enabled: false +Layout/DotPosition: + Enabled: false +Layout/ElseAlignment: + Enabled: false +Layout/EmptyComment: + Enabled: false +Layout/EmptyLineAfterGuardClause: + Enabled: false +Layout/EmptyLineAfterMagicComment: + Enabled: false +Layout/EmptyLineBetweenDefs: + Enabled: false +Layout/EmptyLines: + Enabled: false +Layout/EmptyLinesAroundAccessModifier: + Enabled: false +Layout/EmptyLinesAroundArguments: + Enabled: false +Layout/EmptyLinesAroundAttributeAccessor: + Enabled: false +Layout/EmptyLinesAroundBeginBody: + Enabled: false +Layout/EmptyLinesAroundBlockBody: + Enabled: false +Layout/EmptyLinesAroundClassBody: + Enabled: false +Layout/EmptyLinesAroundExceptionHandlingKeywords: + Enabled: false +Layout/EmptyLinesAroundMethodBody: + Enabled: false +Layout/EmptyLinesAroundModuleBody: + Enabled: false +Layout/EndAlignment: + Enabled: false +Layout/EndOfLine: + Enabled: false +Layout/ExtraSpacing: + Enabled: false +Layout/FirstArgumentIndentation: + Enabled: false +Layout/FirstArrayElementIndentation: + Enabled: false +Layout/FirstHashElementIndentation: + Enabled: false +Layout/FirstParameterIndentation: + Enabled: false +Layout/HashAlignment: + Enabled: false +Layout/HeredocIndentation: + Enabled: false +Layout/IndentationConsistency: + Enabled: false +Layout/IndentationStyle: + Enabled: false +Layout/IndentationWidth: + Enabled: false +Layout/InitialIndentation: + Enabled: false +Layout/LeadingCommentSpace: + Enabled: false +Layout/LeadingEmptyLines: + Enabled: false +Layout/LineLength: + Enabled: false +Layout/MultilineArrayBraceLayout: + Enabled: false +Layout/MultilineBlockLayout: + Enabled: false +Layout/MultilineHashBraceLayout: + Enabled: false +Layout/MultilineMethodCallBraceLayout: + Enabled: false +Layout/MultilineMethodCallIndentation: + Enabled: false +Layout/MultilineMethodDefinitionBraceLayout: + Enabled: false +Layout/MultilineOperationIndentation: + Enabled: false +Layout/ParameterAlignment: + Enabled: false +Layout/RescueEnsureAlignment: + Enabled: false +Layout/SpaceAfterColon: + Enabled: false +Layout/SpaceAfterComma: + Enabled: false +Layout/SpaceAfterMethodName: + Enabled: false +Layout/SpaceAfterNot: + Enabled: false +Layout/SpaceAfterSemicolon: + Enabled: false +Layout/SpaceAroundBlockParameters: + Enabled: false +Layout/SpaceAroundEqualsInParameterDefault: + Enabled: false +Layout/SpaceAroundKeyword: + Enabled: false +Layout/SpaceAroundMethodCallOperator: + Enabled: false +Layout/SpaceAroundOperators: + Enabled: false +Layout/SpaceBeforeBlockBraces: + Enabled: false +Layout/SpaceBeforeComma: + Enabled: false +Layout/SpaceBeforeComment: + Enabled: false +Layout/SpaceBeforeFirstArg: + Enabled: false +Layout/SpaceBeforeSemicolon: + Enabled: false +Layout/SpaceInLambdaLiteral: + Enabled: false +Layout/SpaceInsideArrayLiteralBrackets: + Enabled: false +Layout/SpaceInsideArrayPercentLiteral: + Enabled: false +Layout/SpaceInsideBlockBraces: + Enabled: false +Layout/SpaceInsideHashLiteralBraces: + Enabled: false +Layout/SpaceInsideParens: + Enabled: false +Layout/SpaceInsidePercentLiteralDelimiters: + Enabled: false +Layout/SpaceInsideRangeLiteral: + Enabled: false +Layout/SpaceInsideReferenceBrackets: + Enabled: false +Layout/SpaceInsideStringInterpolation: + Enabled: false +Layout/TrailingEmptyLines: + Enabled: false +Layout/TrailingWhitespace: + Enabled: false +Lint/AmbiguousBlockAssociation: + Enabled: false +Lint/AmbiguousOperator: + Enabled: false +Lint/AmbiguousRegexpLiteral: + Enabled: false +Lint/AssignmentInCondition: + Enabled: false +Lint/BigDecimalNew: + Enabled: false +Lint/BinaryOperatorWithIdenticalOperands: + Enabled: false +Lint/BooleanSymbol: + Enabled: false +Lint/CircularArgumentReference: + Enabled: false +Lint/ConstantDefinitionInBlock: + Enabled: false +Lint/Debugger: + Enabled: false +Lint/DeprecatedClassMethods: + Enabled: false +Lint/DeprecatedOpenSSLConstant: + Enabled: false +Lint/DisjunctiveAssignmentInConstructor: + Enabled: false +Lint/DuplicateCaseCondition: + Enabled: false +Lint/DuplicateElsifCondition: + Enabled: false +Lint/DuplicateHashKey: + Enabled: false +Lint/DuplicateMethods: + Enabled: false +Lint/DuplicateRequire: + Enabled: false +Lint/DuplicateRescueException: + Enabled: false +Lint/EachWithObjectArgument: + Enabled: false +Lint/ElseLayout: + Enabled: false +Lint/EmptyConditionalBody: + Enabled: false +Lint/EmptyEnsure: + Enabled: false +Lint/EmptyExpression: + Enabled: false +Lint/EmptyFile: + Enabled: false +Lint/EmptyInterpolation: + Enabled: false +Lint/EmptyWhen: + Enabled: false +Lint/EnsureReturn: + Enabled: false +Lint/ErbNewArguments: + Enabled: false +Lint/FlipFlop: + Enabled: false +Lint/FloatComparison: + Enabled: false +Lint/FloatOutOfRange: + Enabled: false +Lint/FormatParameterMismatch: + Enabled: false +Lint/HashCompareByIdentity: + Enabled: false +Lint/IdentityComparison: + Enabled: false +Lint/ImplicitStringConcatenation: + Enabled: false +Lint/IneffectiveAccessModifier: + Enabled: false +Lint/InheritException: + Enabled: false +Lint/InterpolationCheck: + Enabled: false +Lint/LiteralAsCondition: + Enabled: false +Lint/LiteralInInterpolation: + Enabled: false +Lint/Loop: + Enabled: false +Lint/MissingCopEnableDirective: + Enabled: false +Lint/MissingSuper: + Enabled: false +Lint/MixedRegexpCaptureTypes: + Enabled: false +Lint/MultipleComparison: + Enabled: false +Lint/NestedMethodDefinition: + Enabled: false +Lint/NestedPercentLiteral: + Enabled: false +Lint/NextWithoutAccumulator: + Enabled: false +Lint/NonDeterministicRequireOrder: + Enabled: false +Lint/NonLocalExitFromIterator: + Enabled: false +Lint/OrderedMagicComments: + Enabled: false +Lint/OutOfRangeRegexpRef: + Enabled: false +Lint/ParenthesesAsGroupedExpression: + Enabled: false +Lint/PercentStringArray: + Enabled: false +Lint/PercentSymbolArray: + Enabled: false +Lint/RaiseException: + Enabled: false +Lint/RandOne: + Enabled: false +Lint/RedundantCopDisableDirective: + Enabled: false +Lint/RedundantCopEnableDirective: + Enabled: false +Lint/RedundantRequireStatement: + Enabled: false +Lint/RedundantSafeNavigation: + Enabled: false +Lint/RedundantSplatExpansion: + Enabled: false +Lint/RedundantStringCoercion: + Enabled: false +Lint/RedundantWithIndex: + Enabled: false +Lint/RedundantWithObject: + Enabled: false +Lint/RegexpAsCondition: + Enabled: false +Lint/RequireParentheses: + Enabled: false +Lint/RescueException: + Enabled: false +Lint/RescueType: + Enabled: false +Lint/ReturnInVoidContext: + Enabled: false +Lint/SafeNavigationChain: + Enabled: false +Lint/SafeNavigationConsistency: + Enabled: false +Lint/SafeNavigationWithEmpty: + Enabled: false +Lint/ScriptPermission: + Enabled: false +Lint/SelfAssignment: + Enabled: false +Lint/SendWithMixinArgument: + Enabled: false +Lint/ShadowedArgument: + Enabled: false +Lint/ShadowedException: + Enabled: false +Lint/ShadowingOuterLocalVariable: + Enabled: false +Lint/StructNewOverride: + Enabled: false +Lint/SuppressedException: + Enabled: false +Lint/ToJSON: + Enabled: false +Lint/TopLevelReturnWithArgument: + Enabled: false +Lint/TrailingCommaInAttributeDeclaration: + Enabled: false +Lint/UnderscorePrefixedVariableName: + Enabled: false +Lint/UnifiedInteger: + Enabled: false +Lint/UnreachableCode: + Enabled: false +Lint/UnreachableLoop: + Enabled: false +Lint/UnusedBlockArgument: + Enabled: false +Lint/UnusedMethodArgument: + Enabled: false +Lint/UriEscapeUnescape: + Enabled: false +Lint/UriRegexp: + Enabled: false +Lint/UselessAccessModifier: + Enabled: false +Lint/UselessAssignment: + Enabled: false +Lint/UselessElseWithoutRescue: + Enabled: false +Lint/UselessMethodDefinition: + Enabled: false +Lint/UselessSetterCall: + Enabled: false +Lint/UselessTimes: + Enabled: false +Lint/Void: + 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/AsciiIdentifiers: + Enabled: false +Naming/BinaryOperatorParameterName: + Enabled: false +Naming/BlockParameterName: + Enabled: false +Naming/ClassAndModuleCamelCase: + Enabled: false +Naming/ConstantName: + Enabled: false +Naming/FileName: + Enabled: false +Naming/HeredocDelimiterCase: + Enabled: false +Naming/HeredocDelimiterNaming: + Enabled: false +Naming/MemoizedInstanceVariableName: + Enabled: false +Naming/MethodName: + Enabled: false +Naming/MethodParameterName: + Enabled: false +Naming/PredicateName: + Enabled: false +Naming/RescuedExceptionsVariableName: + Enabled: false +Naming/VariableName: + Enabled: false +Naming/VariableNumber: + Enabled: false +Performance/BindCall: + Enabled: false +Performance/Caller: + Enabled: false +Performance/Casecmp: + Enabled: false +Performance/CompareWithBlock: + Enabled: false +Performance/Count: + Enabled: false +Performance/DeletePrefix: + Enabled: false +Performance/DeleteSuffix: + Enabled: false +Performance/Detect: + Enabled: false +Performance/DoubleStartEndWith: + Enabled: false +Performance/EndWith: + Enabled: false +Performance/FixedSize: + Enabled: false +Performance/FlatMap: + Enabled: false +Performance/InefficientHashSearch: + Enabled: false +Performance/RangeInclude: + Enabled: false +Performance/RedundantBlockCall: + Enabled: false +Performance/RedundantMatch: + Enabled: false +Performance/RedundantMerge: + Enabled: false +Performance/RegexpMatch: + Enabled: false +Performance/ReverseEach: + Enabled: false +Performance/Size: + Enabled: false +Performance/StartWith: + Enabled: false +Performance/StringReplacement: + Enabled: false +Performance/TimesMap: + Enabled: false +Performance/UnfreezeString: + Enabled: false +Performance/UriDefaultParser: + Enabled: false +RSpec/AnyInstance: + Enabled: false +RSpec/AroundBlock: + Enabled: false +RSpec/Be: + Enabled: false +RSpec/BeEql: + Enabled: false +RSpec/BeforeAfterAll: + Enabled: false +RSpec/Capybara/FeatureMethods: + Enabled: false +RSpec/ContainExactly: + Enabled: false +RSpec/ContextMethod: + Enabled: false +RSpec/ContextWording: + Enabled: false +RSpec/DescribeClass: + Enabled: false +RSpec/DescribeMethod: + Enabled: false +RSpec/DescribeSymbol: + Enabled: false +RSpec/DescribedClass: + Enabled: false +RSpec/EmptyExampleGroup: + Enabled: false +RSpec/EmptyHook: + Enabled: false +RSpec/EmptyLineAfterExample: + Enabled: false +RSpec/EmptyLineAfterExampleGroup: + Enabled: false +RSpec/EmptyLineAfterFinalLet: + Enabled: false +RSpec/EmptyLineAfterHook: + Enabled: false +RSpec/EmptyLineAfterSubject: + Enabled: false +RSpec/ExampleLength: + Enabled: false +RSpec/ExampleWithoutDescription: + Enabled: false +RSpec/ExampleWording: + Enabled: false +RSpec/ExpectActual: + Enabled: false +RSpec/ExpectChange: + Enabled: false +RSpec/ExpectInHook: + Enabled: false +RSpec/ExpectOutput: + Enabled: false +RSpec/FactoryBot/AttributeDefinedStatically: + Enabled: false +RSpec/FactoryBot/CreateList: + Enabled: false +RSpec/FactoryBot/FactoryClassName: + Enabled: false +RSpec/FilePath: + Enabled: false +RSpec/Focus: + Enabled: false +RSpec/HookArgument: + Enabled: false +RSpec/HooksBeforeExamples: + Enabled: false +RSpec/ImplicitBlockExpectation: + Enabled: false +RSpec/ImplicitExpect: + Enabled: false +RSpec/ImplicitSubject: + Enabled: false +RSpec/InstanceSpy: + Enabled: false +RSpec/InstanceVariable: + Enabled: false +RSpec/ItBehavesLike: + Enabled: false +RSpec/IteratedExpectation: + Enabled: false +RSpec/LeadingSubject: + Enabled: false +RSpec/LeakyConstantDeclaration: + Enabled: false +RSpec/LetBeforeExamples: + Enabled: false +RSpec/LetSetup: + Enabled: false +RSpec/MatchArray: + Enabled: false +RSpec/MessageChain: + Enabled: false +RSpec/MessageSpies: + Enabled: false +RSpec/MissingExampleGroupArgument: + Enabled: false +RSpec/MultipleDescribes: + Enabled: false RSpec/MultipleExpectations: - Max: 3 + Enabled: false +RSpec/MultipleMemoizedHelpers: + Enabled: false +RSpec/MultipleSubjects: + Enabled: false +RSpec/NamedSubject: + Enabled: false +RSpec/NestedGroups: + Enabled: false +RSpec/NotToNot: + Enabled: false +RSpec/OverwritingSetup: + Enabled: false +RSpec/PredicateMatcher: + Enabled: false +RSpec/ReceiveCounts: + Enabled: false +RSpec/ReceiveNever: + Enabled: false +RSpec/RepeatedDescription: + Enabled: false +RSpec/RepeatedExample: + Enabled: false +RSpec/RepeatedExampleGroupBody: + Enabled: false +RSpec/RepeatedExampleGroupDescription: + Enabled: false +RSpec/RepeatedIncludeExample: + Enabled: false +RSpec/ReturnFromStub: + Enabled: false +RSpec/ScatteredLet: + Enabled: false +RSpec/ScatteredSetup: + Enabled: false +RSpec/SharedContext: + Enabled: false +RSpec/SharedExamples: + Enabled: false +RSpec/SingleArgumentMessageChain: + Enabled: false +RSpec/StubbedMock: + Enabled: false +RSpec/SubjectStub: + Enabled: false +RSpec/UnspecifiedException: + Enabled: false +RSpec/VariableDefinition: + Enabled: false +RSpec/VariableName: + Enabled: false +RSpec/VerifiedDoubles: + Enabled: false +RSpec/VoidExpect: + Enabled: false +RSpec/Yield: + Enabled: false +Security/Eval: + Enabled: false +Security/JSONLoad: + Enabled: false +Security/MarshalLoad: + Enabled: false +Security/Open: + Enabled: false +Security/YAMLLoad: + Enabled: false +Style/AccessModifierDeclarations: + Enabled: false +Style/AccessorGrouping: + Enabled: false +Style/Alias: + Enabled: false +Style/AndOr: + Enabled: false +Style/ArrayJoin: + Enabled: false +Style/Attr: + Enabled: false +Style/BarePercentLiterals: + Enabled: false +Style/BeginBlock: + Enabled: false +Style/BisectedAttrAccessor: + Enabled: false +Style/BlockComments: + Enabled: false +Style/BlockDelimiters: + Enabled: false +Style/CaseEquality: + Enabled: false +Style/CaseLikeIf: + Enabled: false +Style/CharacterLiteral: + Enabled: false +Style/ClassAndModuleChildren: + Enabled: false +Style/ClassCheck: + Enabled: false +Style/ClassEqualityComparison: + Enabled: false +Style/ClassMethods: + Enabled: false +Style/ClassVars: + Enabled: false +Style/ColonMethodCall: + Enabled: false +Style/ColonMethodDefinition: + Enabled: false +Style/CombinableLoops: + Enabled: false +Style/CommandLiteral: + Enabled: false +Style/CommentAnnotation: + Enabled: false +Style/CommentedKeyword: + Enabled: false +Style/ConditionalAssignment: + Enabled: false +Style/DefWithParentheses: + Enabled: false +Style/Dir: + Enabled: false +Style/Documentation: + Enabled: false +Style/DoubleCopDisableDirective: + Enabled: false +Style/DoubleNegation: + Enabled: false +Style/EachForSimpleLoop: + Enabled: false +Style/EachWithObject: + Enabled: false +Style/EmptyBlockParameter: + Enabled: false +Style/EmptyCaseCondition: + Enabled: false +Style/EmptyElse: + Enabled: false +Style/EmptyLambdaParameter: + Enabled: false +Style/EmptyLiteral: + Enabled: false +Style/EmptyMethod: + Enabled: false +Style/Encoding: + Enabled: false +Style/EndBlock: + Enabled: false +Style/EvalWithLocation: + Enabled: false +Style/EvenOdd: + Enabled: false +Style/ExpandPathArguments: + Enabled: false +Style/ExplicitBlockArgument: + Enabled: false +Style/ExponentialNotation: + Enabled: false +Style/FloatDivision: + Enabled: false +Style/For: + Enabled: false +Style/FormatString: + Enabled: false +Style/FormatStringToken: + Enabled: false +Style/FrozenStringLiteralComment: + Enabled: false +Style/GlobalStdStream: + Enabled: false +Style/GlobalVars: + Enabled: false +Style/GuardClause: + Enabled: false +Style/HashAsLastArrayItem: + Enabled: false +Style/HashEachMethods: + Enabled: false +Style/HashLikeCase: + Enabled: false +Style/HashSyntax: + Enabled: false +Style/HashTransformKeys: + Enabled: false +Style/HashTransformValues: + Enabled: false +Style/IdenticalConditionalBranches: + Enabled: false +Style/IfInsideElse: + Enabled: false +Style/IfUnlessModifier: + Enabled: false +Style/IfUnlessModifierOfIfUnless: + Enabled: false +Style/IfWithSemicolon: + Enabled: false +Style/InfiniteLoop: + Enabled: false +Style/InverseMethods: + Enabled: false +Style/KeywordParametersOrder: + Enabled: false +Style/Lambda: + Enabled: false +Style/LambdaCall: + Enabled: false +Style/LineEndConcatenation: + Enabled: false +Style/MethodCallWithoutArgsParentheses: + Enabled: false +Style/MethodDefParentheses: + Enabled: false +Style/MinMax: + Enabled: false +Style/MissingRespondToMissing: + Enabled: false +Style/MixinGrouping: + Enabled: false +Style/MixinUsage: + Enabled: false +Style/ModuleFunction: + Enabled: false +Style/MultilineBlockChain: + Enabled: false +Style/MultilineIfModifier: + Enabled: false +Style/MultilineIfThen: + Enabled: false +Style/MultilineMemoization: + Enabled: false +Style/MultilineTernaryOperator: + Enabled: false +Style/MultilineWhenThen: + Enabled: false +Style/MultipleComparison: + Enabled: false +Style/MutableConstant: + Enabled: false +Style/NegatedIf: + Enabled: false +Style/NegatedUnless: + Enabled: false +Style/NegatedWhile: + Enabled: false +Style/NestedModifier: + Enabled: false +Style/NestedParenthesizedCalls: + Enabled: false +Style/NestedTernaryOperator: + Enabled: false +Style/Next: + Enabled: false +Style/NilComparison: + Enabled: false +Style/NonNilCheck: + Enabled: false +Style/Not: + Enabled: false +Style/NumericLiteralPrefix: + Enabled: false +Style/NumericLiterals: + Enabled: false +Style/NumericPredicate: + Enabled: false +Style/OneLineConditional: + Enabled: false +Style/OptionalArguments: + Enabled: false +Style/OptionalBooleanParameter: + Enabled: false +Style/OrAssignment: + Enabled: false +Style/ParallelAssignment: + Enabled: false +Style/ParenthesesAroundCondition: + Enabled: false +Style/PercentLiteralDelimiters: + Enabled: false +Style/PercentQLiterals: + Enabled: false +Style/PerlBackrefs: + Enabled: false +Style/PreferredHashMethods: + Enabled: false +Style/Proc: + Enabled: false +Style/RaiseArgs: + Enabled: false +Style/RandomWithOffset: + Enabled: false +Style/RedundantAssignment: + Enabled: false +Style/RedundantBegin: + Enabled: false +Style/RedundantCapitalW: + Enabled: false +Style/RedundantCondition: + Enabled: false +Style/RedundantConditional: + Enabled: false +Style/RedundantException: + Enabled: false +Style/RedundantFetchBlock: + Enabled: false +Style/RedundantFileExtensionInRequire: + Enabled: false +Style/RedundantFreeze: + Enabled: false +Style/RedundantInterpolation: + Enabled: false +Style/RedundantParentheses: + Enabled: false +Style/RedundantPercentQ: + Enabled: false +Style/RedundantRegexpCharacterClass: + Enabled: false +Style/RedundantRegexpEscape: + Enabled: false +Style/RedundantReturn: + Enabled: false +Style/RedundantSelf: + Enabled: false +Style/RedundantSelfAssignment: + Enabled: false +Style/RedundantSort: + Enabled: false +Style/RedundantSortBy: + Enabled: false +Style/RegexpLiteral: + Enabled: false +Style/RescueModifier: + Enabled: false +Style/RescueStandardError: + Enabled: false +Style/SafeNavigation: + Enabled: false +Style/Sample: + Enabled: false +Style/SelfAssignment: + Enabled: false +Style/Semicolon: + Enabled: false +Style/SignalException: + Enabled: false +Style/SingleArgumentDig: + Enabled: false +Style/SingleLineMethods: + Enabled: false +Style/SlicingWithRange: + Enabled: false +Style/SoleNestedConditional: + Enabled: false +Style/SpecialGlobalVars: + Enabled: false +Style/StabbyLambdaParentheses: + Enabled: false +Style/StderrPuts: + Enabled: false +Style/StringConcatenation: + Enabled: false +Style/StringLiterals: + Enabled: false +Style/StringLiteralsInInterpolation: + Enabled: false +Style/Strip: + Enabled: false +Style/StructInheritance: + Enabled: false +Style/SymbolArray: + Enabled: false +Style/SymbolLiteral: + Enabled: false +Style/SymbolProc: + Enabled: false +Style/TernaryParentheses: + Enabled: false +Style/TrailingBodyOnClass: + Enabled: false +Style/TrailingBodyOnMethodDefinition: + Enabled: false +Style/TrailingBodyOnModule: + Enabled: false +Style/TrailingCommaInArguments: + Enabled: false +Style/TrailingCommaInArrayLiteral: + Enabled: false +Style/TrailingCommaInHashLiteral: + Enabled: false +Style/TrailingMethodEndStatement: + Enabled: false +Style/TrailingUnderscoreVariable: + Enabled: false +Style/TrivialAccessors: + Enabled: false +Style/UnlessElse: + Enabled: false +Style/UnpackFirst: + Enabled: false +Style/VariableInterpolation: + Enabled: false +Style/WhenThen: + Enabled: false +Style/WhileUntilDo: + Enabled: false +Style/WhileUntilModifier: + Enabled: false +Style/WordArray: + Enabled: false +Style/YodaCondition: + Enabled: false +Style/ZeroLengthPredicate: + 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/DuplicateMatchPattern: + 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/AncestorsInclude: + Enabled: false +Performance/BigDecimalWithNumericArgument: + Enabled: false +Performance/BlockGivenWithExplicitBlock: + Enabled: false +Performance/CollectionLiteralInLoop: + Enabled: false +Performance/ConcurrentMonotonicTime: + Enabled: false +Performance/ConstantRegexp: + Enabled: false +Performance/MapCompact: + Enabled: false +Performance/MethodObjectAsBlock: + Enabled: false +Performance/RedundantEqualityComparisonBlock: + Enabled: false +Performance/RedundantSortBlock: + Enabled: false +Performance/RedundantSplitRegexpArgument: + Enabled: false +Performance/RedundantStringChars: + Enabled: false +Performance/ReverseFirst: + Enabled: false +Performance/SortReverse: + Enabled: false +Performance/Squeeze: + Enabled: false +Performance/StringIdentifierArgument: + Enabled: false +Performance/StringInclude: + Enabled: false +Performance/Sum: + 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/DataInheritance: + 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/RedundantLineContinuation: + Enabled: false +Style/RedundantSelfAssignmentBranch: + Enabled: false +Style/RedundantStringEscape: + Enabled: false +Style/SelectByRegexp: + Enabled: false +Style/StringChars: + Enabled: false +Style/SwapValues: + Enabled: false diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index e7902ddd..ecc743ff 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,139 +1,7 @@ # This configuration was generated by # `rubocop --auto-gen-config` -# on 2023-04-24 09:19:55 UTC using RuboCop version 1.48.1. +# on 2023-11-29 05:33:30 UTC using RuboCop version 1.48.1. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new # versions of RuboCop, may require this file to be generated again. - -# Offense count: 1 -# This cop supports unsafe autocorrection (--autocorrect-all). -Lint/OrAssignmentToConstant: - Exclude: - - 'lib/puppet/provider/exec/powershell.rb' - -# Offense count: 3 -# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes. -Metrics/AbcSize: - Max: 35 - -# Offense count: 2 -# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode. -# AllowedMethods: refine -Metrics/BlockLength: - Max: 83 - -# Offense count: 2 -# Configuration parameters: AllowedMethods, AllowedPatterns. -Metrics/CyclomaticComplexity: - Max: 9 - -# Offense count: 4 -# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns. -Metrics/MethodLength: - Max: 14 - -# Offense count: 2 -# Configuration parameters: AllowedMethods, AllowedPatterns. -Metrics/PerceivedComplexity: - Max: 9 - -# Offense count: 2 -RSpec/AnyInstance: - Exclude: - - 'spec/unit/provider/exec/powershell_spec.rb' - - 'spec/unit/provider/exec/pwsh_spec.rb' - -# Offense count: 6 -RSpec/BeforeAfterAll: - Exclude: - - 'spec/spec_helper.rb' - - 'spec/rails_helper.rb' - - 'spec/support/**/*.rb' - - 'spec/acceptance/exec_powershell_spec.rb' - - 'spec/acceptance/exec_pwsh_spec.rb' - -# Offense count: 4 -# Configuration parameters: IgnoredMetadata. -RSpec/DescribeClass: - Exclude: - - '**/spec/features/**/*' - - '**/spec/requests/**/*' - - '**/spec/routing/**/*' - - '**/spec/system/**/*' - - '**/spec/views/**/*' - - 'spec/acceptance/exec_powershell_spec.rb' - - 'spec/acceptance/exec_pwsh_spec.rb' - - 'spec/unit/provider/exec/powershell_spec.rb' - - 'spec/unit/provider/exec/pwsh_spec.rb' - -# Offense count: 6 -# Configuration parameters: CountAsOne. -RSpec/ExampleLength: - Max: 26 - -# Offense count: 15 -# Configuration parameters: . -# SupportedStyles: have_received, receive -RSpec/MessageSpies: - EnforcedStyle: receive - -# Offense count: 5 -# Configuration parameters: AllowSubject. -RSpec/MultipleMemoizedHelpers: - Max: 8 - -# Offense count: 10 -# Configuration parameters: AllowedGroups. -RSpec/NestedGroups: - Max: 4 - -# Offense count: 38 -# Configuration parameters: AllowedPatterns. -# AllowedPatterns: ^expect_, ^assert_ -RSpec/NoExpectationExample: - Exclude: - - 'spec/acceptance/exec_powershell_spec.rb' - - 'spec/acceptance/exec_pwsh_spec.rb' - -# Offense count: 12 -RSpec/RepeatedExample: - Exclude: - - 'spec/acceptance/exec_powershell_spec.rb' - - 'spec/acceptance/exec_pwsh_spec.rb' - -# Offense count: 2 -RSpec/StubbedMock: - Exclude: - - 'spec/unit/provider/exec/powershell_spec.rb' - - 'spec/unit/provider/exec/pwsh_spec.rb' - -# Offense count: 14 -RSpec/SubjectStub: - Exclude: - - 'spec/unit/provider/exec/powershell_spec.rb' - - 'spec/unit/provider/exec/pwsh_spec.rb' - -# Offense count: 2 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: prefer_alias, prefer_alias_method -Style/Alias: - Exclude: - - 'spec/unit/provider/exec/powershell_spec.rb' - - 'spec/unit/provider/exec/pwsh_spec.rb' - -# Offense count: 2 -# Configuration parameters: AllowedMethods. -# AllowedMethods: respond_to_missing? -Style/OptionalBooleanParameter: - Exclude: - - 'lib/puppet/provider/exec/powershell.rb' - - 'lib/puppet/provider/exec/pwsh.rb' - -# Offense count: 9 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns. -# URISchemes: http, https -Layout/LineLength: - Max: 203 diff --git a/.sync.yml b/.sync.yml index 59ba38f0..53c46fd9 100644 --- a/.sync.yml +++ b/.sync.yml @@ -3,15 +3,13 @@ delete: true ".rubocop.yml": selected_profile: false + include_todos: true appveyor.yml: delete: true - Gemfile: optional: ":development": - gem: ruby-pwsh - - gem: github_changelog_generator - version: '= 1.15.2' spec/spec_helper.rb: coverage_report: true .gitpod.Dockerfile: diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 2f1e4f73..6da8d472 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,6 +1,6 @@ { "recommendations": [ "puppet.puppet-vscode", - "rebornix.Ruby" + "Shopify.ruby-lsp" ] } diff --git a/CHANGELOG.md b/CHANGELOG.md index 641a4183..27887be3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,305 +1,418 @@ -# Change log + +# 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). +All notable changes to this project will be documented in this file. -## [v6.0.0](https://github.com/puppetlabs/puppetlabs-powershell/tree/v6.0.0) (2023-04-24) +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). + +## [v6.0.1](https://github.com/puppetlabs/puppetlabs-powershell/tree/v6.0.1) - 2024-12-17 + +[Full Changelog](https://github.com/puppetlabs/puppetlabs-powershell/compare/v6.0.0...v6.0.1) + +### Fixed + +- (CAT-2180) Upgrade rexml to address CVE-2024-49761 [#425](https://github.com/puppetlabs/puppetlabs-powershell/pull/425) ([amitkarsale](https://github.com/amitkarsale)) + +## [v6.0.0](https://github.com/puppetlabs/puppetlabs-powershell/tree/v6.0.0) - 2023-04-24 [Full Changelog](https://github.com/puppetlabs/puppetlabs-powershell/compare/v5.2.1...v6.0.0) ### Changed -- \(CONT-793\) - Add Puppet 8/Drop Puppet 6 [\#400](https://github.com/puppetlabs/puppetlabs-powershell/pull/400) ([jordanbreen28](https://github.com/jordanbreen28)) +- (CONT-793) - Add Puppet 8/Drop Puppet 6 [#400](https://github.com/puppetlabs/puppetlabs-powershell/pull/400) ([jordanbreen28](https://github.com/jordanbreen28)) -## [v5.2.1](https://github.com/puppetlabs/puppetlabs-powershell/tree/v5.2.1) (2023-04-21) +## [v5.2.1](https://github.com/puppetlabs/puppetlabs-powershell/tree/v5.2.1) - 2023-04-21 [Full Changelog](https://github.com/puppetlabs/puppetlabs-powershell/compare/v5.2.0...v5.2.1) ### Fixed -- pdksync - \(CONT-130\) - Dropping Support for Debian 9 [\#384](https://github.com/puppetlabs/puppetlabs-powershell/pull/384) ([jordanbreen28](https://github.com/jordanbreen28)) +- pdksync - (CONT-130) - Dropping Support for Debian 9 [#384](https://github.com/puppetlabs/puppetlabs-powershell/pull/384) ([jordanbreen28](https://github.com/jordanbreen28)) -## [v5.2.0](https://github.com/puppetlabs/puppetlabs-powershell/tree/v5.2.0) (2022-10-03) +## [v5.2.0](https://github.com/puppetlabs/puppetlabs-powershell/tree/v5.2.0) - 2022-10-03 [Full Changelog](https://github.com/puppetlabs/puppetlabs-powershell/compare/v5.1.0...v5.2.0) ### Added -- pdksync - \(GH-cat-11\) Certify Support for Ubuntu 22.04 [\#381](https://github.com/puppetlabs/puppetlabs-powershell/pull/381) ([david22swan](https://github.com/david22swan)) +- pdksync - (GH-cat-11) Certify Support for Ubuntu 22.04 [#381](https://github.com/puppetlabs/puppetlabs-powershell/pull/381) ([david22swan](https://github.com/david22swan)) ### Fixed -- \(MAINT\) Dropped support for Windows\(7,8,2008 + 2008 R2\(Server\), Fedora\(27+28\) and OSX OS's\(10.12-.14\) [\#382](https://github.com/puppetlabs/puppetlabs-powershell/pull/382) ([jordanbreen28](https://github.com/jordanbreen28)) +- (MAINT) Dropped support for Windows(7,8,2008 + 2008 R2(Server), Fedora(27+28) and OSX OS's(10.12-.14) [#382](https://github.com/puppetlabs/puppetlabs-powershell/pull/382) ([jordanbreen28](https://github.com/jordanbreen28)) -## [v5.1.0](https://github.com/puppetlabs/puppetlabs-powershell/tree/v5.1.0) (2022-06-13) +## [v5.1.0](https://github.com/puppetlabs/puppetlabs-powershell/tree/v5.1.0) - 2022-06-13 [Full Changelog](https://github.com/puppetlabs/puppetlabs-powershell/compare/v5.0.0...v5.1.0) ### Added -- pdksync - \(GH-cat-12\) Add Support for Redhat 9 [\#379](https://github.com/puppetlabs/puppetlabs-powershell/pull/379) ([david22swan](https://github.com/david22swan)) -- pdksync - \(FM-8922\) - Add Support for Windows 2022 [\#370](https://github.com/puppetlabs/puppetlabs-powershell/pull/370) ([david22swan](https://github.com/david22swan)) -- \(IAC-1734\) - Certify Debian 11 [\#368](https://github.com/puppetlabs/puppetlabs-powershell/pull/368) ([david22swan](https://github.com/david22swan)) -- pdksync - \(IAC-1753\) - Add Support for AlmaLinux 8 [\#364](https://github.com/puppetlabs/puppetlabs-powershell/pull/364) ([david22swan](https://github.com/david22swan)) -- pdksync - \(IAC-1751\) - Add Support for Rocky 8 [\#363](https://github.com/puppetlabs/puppetlabs-powershell/pull/363) ([david22swan](https://github.com/david22swan)) -- \(IAC-900\) - Certify Ubuntu 20.04 [\#359](https://github.com/puppetlabs/puppetlabs-powershell/pull/359) ([david22swan](https://github.com/david22swan)) +- pdksync - (GH-cat-12) Add Support for Redhat 9 [#379](https://github.com/puppetlabs/puppetlabs-powershell/pull/379) ([david22swan](https://github.com/david22swan)) +- pdksync - (FM-8922) - Add Support for Windows 2022 [#370](https://github.com/puppetlabs/puppetlabs-powershell/pull/370) ([david22swan](https://github.com/david22swan)) +- (IAC-1734) - Certify Debian 11 [#368](https://github.com/puppetlabs/puppetlabs-powershell/pull/368) ([david22swan](https://github.com/david22swan)) +- pdksync - (IAC-1753) - Add Support for AlmaLinux 8 [#364](https://github.com/puppetlabs/puppetlabs-powershell/pull/364) ([david22swan](https://github.com/david22swan)) +- pdksync - (IAC-1751) - Add Support for Rocky 8 [#363](https://github.com/puppetlabs/puppetlabs-powershell/pull/363) ([david22swan](https://github.com/david22swan)) +- (IAC-900) - Certify Ubuntu 20.04 [#359](https://github.com/puppetlabs/puppetlabs-powershell/pull/359) ([david22swan](https://github.com/david22swan)) ### Fixed -- pdksync - \(GH-iac-334\) Remove Support for Ubuntu 14.04/16.04 [\#372](https://github.com/puppetlabs/puppetlabs-powershell/pull/372) ([david22swan](https://github.com/david22swan)) -- pdksync - \(IAC-1598\) - Remove Support for Debian 8 [\#361](https://github.com/puppetlabs/puppetlabs-powershell/pull/361) ([david22swan](https://github.com/david22swan)) +- pdksync - (GH-iac-334) Remove Support for Ubuntu 14.04/16.04 [#372](https://github.com/puppetlabs/puppetlabs-powershell/pull/372) ([david22swan](https://github.com/david22swan)) +- pdksync - (IAC-1598) - Remove Support for Debian 8 [#361](https://github.com/puppetlabs/puppetlabs-powershell/pull/361) ([david22swan](https://github.com/david22swan)) -## [v5.0.0](https://github.com/puppetlabs/puppetlabs-powershell/tree/v5.0.0) (2021-02-27) +## [v5.0.0](https://github.com/puppetlabs/puppetlabs-powershell/tree/v5.0.0) - 2021-03-02 [Full Changelog](https://github.com/puppetlabs/puppetlabs-powershell/compare/v4.1.0...v5.0.0) ### Changed -- pdksync - Remove Puppet 5 from testing and bump minimal version to 6.0.0 [\#330](https://github.com/puppetlabs/puppetlabs-powershell/pull/330) ([carabasdaniel](https://github.com/carabasdaniel)) +- pdksync - Remove Puppet 5 from testing and bump minimal version to 6.0.0 [#330](https://github.com/puppetlabs/puppetlabs-powershell/pull/330) ([carabasdaniel](https://github.com/carabasdaniel)) -## [v4.1.0](https://github.com/puppetlabs/puppetlabs-powershell/tree/v4.1.0) (2020-12-07) +## [v4.1.0](https://github.com/puppetlabs/puppetlabs-powershell/tree/v4.1.0) - 2020-12-07 [Full Changelog](https://github.com/puppetlabs/puppetlabs-powershell/compare/v4.0.0...v4.1.0) ### Added -- Add support for Puppet 7 [\#322](https://github.com/puppetlabs/puppetlabs-powershell/pull/322) ([daianamezdrea](https://github.com/daianamezdrea)) -- \(MODULES-10722\) Inherit pipe\_timeout from timeout [\#321](https://github.com/puppetlabs/puppetlabs-powershell/pull/321) ([michaeltlombardi](https://github.com/michaeltlombardi)) +- Add support for Puppet 7 [#322](https://github.com/puppetlabs/puppetlabs-powershell/pull/322) ([daianamezdrea](https://github.com/daianamezdrea)) +- (MODULES-10722) Inherit pipe_timeout from timeout [#321](https://github.com/puppetlabs/puppetlabs-powershell/pull/321) ([michaeltlombardi](https://github.com/michaeltlombardi)) -## [v4.0.0](https://github.com/puppetlabs/puppetlabs-powershell/tree/v4.0.0) (2020-07-09) +## [v4.0.0](https://github.com/puppetlabs/puppetlabs-powershell/tree/v4.0.0) - 2020-07-09 [Full Changelog](https://github.com/puppetlabs/puppetlabs-powershell/compare/v3.0.1...v4.0.0) ### Changed -- Correct supported Puppet lower bound to 5.5.0 [\#282](https://github.com/puppetlabs/puppetlabs-powershell/pull/282) ([michaeltlombardi](https://github.com/michaeltlombardi)) - -### Fixed - -- \(MODULES-10539\) Remove commands idiom from PowerShell provider [\#287](https://github.com/puppetlabs/puppetlabs-powershell/pull/287) ([michaeltlombardi](https://github.com/michaeltlombardi)) - -## [v3.0.1](https://github.com/puppetlabs/puppetlabs-powershell/tree/v3.0.1) (2020-01-15) - -[Full Changelog](https://github.com/puppetlabs/puppetlabs-powershell/compare/v3.0.0...v3.0.1) +- Correct supported Puppet lower bound to 5.5.0 [#282](https://github.com/puppetlabs/puppetlabs-powershell/pull/282) ([michaeltlombardi](https://github.com/michaeltlombardi)) ### Added -- \(IAC-835\) Support added for Debian 10 and CentOS/RHEL 8 [\#306](https://github.com/puppetlabs/puppetlabs-powershell/pull/306) ([david22swan](https://github.com/david22swan)) - -### Fixed - -- \(MODULES-10389\) - Safeguard powershell provider loading [\#277](https://github.com/puppetlabs/puppetlabs-powershell/pull/277) ([michaeltlombardi](https://github.com/michaeltlombardi)) - -## [v3.0.0](https://github.com/puppetlabs/puppetlabs-powershell/tree/v3.0.0) (2020-01-06) - -[Full Changelog](https://github.com/puppetlabs/puppetlabs-powershell/compare/2.3.0...v3.0.0) - -### Changed - -- \(FM-8475\) Replace library code [\#264](https://github.com/puppetlabs/puppetlabs-powershell/pull/264) ([michaeltlombardi](https://github.com/michaeltlombardi)) +- (IAC-835) Support added for Debian 10 and CentOS/RHEL 8 [#306](https://github.com/puppetlabs/puppetlabs-powershell/pull/306) ([david22swan](https://github.com/david22swan)) ### Fixed -- \(MODULES-9473\) Fix Issues Link [\#259](https://github.com/puppetlabs/puppetlabs-powershell/pull/259) ([RandomNoun7](https://github.com/RandomNoun7)) -- \(MODULES-9084\) Increase pipe timeout to 180s [\#257](https://github.com/puppetlabs/puppetlabs-powershell/pull/257) ([michaeltlombardi](https://github.com/michaeltlombardi)) +- (MODULES-10539) Remove commands idiom from PowerShell provider [#287](https://github.com/puppetlabs/puppetlabs-powershell/pull/287) ([michaeltlombardi](https://github.com/michaeltlombardi)) -## 2.3.0 +## [v3.0.1](https://github.com/puppetlabs/puppetlabs-powershell/tree/v3.0.1) - 2020-01-15 -### Added - -- Metadata for supporting Windows Server 2019 ([FM-7693](https://tickets.puppetlabs.com/browse/FM-7693)) -- Added a 'pwsh' provider for PowerShell Core ([MODULES-8355](https://tickets.puppetlabs.com/browse/MODULES-8355), [MODULES-8356](https://tickets.puppetlabs.com/browse/MODULES-8356), [MODULES-8357](https://tickets.puppetlabs.com/browse/MODULES-8357), [MODULES-8358](https://tickets.puppetlabs.com/browse/MODULES-8358), [MODULES-8359](https://tickets.puppetlabs.com/browse/MODULES-8359)) -- Updated metadata for PowerShell Core support (CentOS, Debian, Fedora, OSX and RedHat) ([MODULES-8356](https://tickets.puppetlabs.com/browse/MODULES-8356)) - -### Changed - -- Only initialise constant when not defined ([MODULES-7067](https://tickets.puppetlabs.com/browse/MODULES-7067)) +[Full Changelog](https://github.com/puppetlabs/puppetlabs-powershell/compare/v3.0.0...v3.0.1) ### Fixed -- Improved pipe reading in the PowerShell Manager ([MODULES-8748](https://tickets.puppetlabs.com/browse/MODULES-8748)) +- (MODULES-10389) - Safeguard powershell provider loading [#277](https://github.com/puppetlabs/puppetlabs-powershell/pull/277) ([michaeltlombardi](https://github.com/michaeltlombardi)) -## [2.2.0] - 2018-10-29 +## [v3.0.0](https://github.com/puppetlabs/puppetlabs-powershell/tree/v3.0.0) - 2020-01-06 -### Added - -- Added support for Puppet 6 ([MODULES-7833](https://tickets.puppetlabs.com/browse/MODULES-7833)) +[Full Changelog](https://github.com/puppetlabs/puppetlabs-powershell/compare/2.3.0...v3.0.0) ### Changed -- Updated the module to PDK format ([MODULES-7402](https://tickets.puppetlabs.com/browse/MODULES-7402)) -- Updated Beaker to version 4 ([MODULES-7658](https://tickets.puppetlabs.com/browse/MODULES-7658)) - -## [2.1.5] - 2018-05-08 - -### Added - -- Metadata for supporting Windows Server 2016 ([MODULES-4271](https://tickets.puppetlabs.com/browse/MODULES-4271)) - -### Fixed - -- Upgraded message to make .NET Framework requirements clearer when running PowerShell 2.0 ([MODULES-7011](https://tickets.puppetlabs.com/browse/MODULES-7011)) -- Fixed timeout handling when the user specifies a timeout parameter value of `0` to substitute the default of 300 seconds ([MODULES-7018](https://tickets.puppetlabs.com/browse/MODULES-7018)) - -## [2.1.4] - 2017-03-29 - -### Fixed - -- Ensured that the code is able to start the pipes server in a PowerShell process on Windows 2008R2 images ([MODULES-6927](https://tickets.puppetlabs.com/browse/MODULES-6927)) -- Updated PowerShell syntax in README examples - -## [2.1.3] - 2017-12-08 +- (FM-8475) Replace library code [#264](https://github.com/puppetlabs/puppetlabs-powershell/pull/264) ([michaeltlombardi](https://github.com/michaeltlombardi)) ### Fixed -- Fixed timeouts and zombie process creation ([MODULES-4748](https://tickets.puppetlabs.com/browse/MODULES-4748)) -- Corrected PowerShell executable name for experimental cross-platform / PowerShell 6 support ([MODULES-6081](https://tickets.puppetlabs.com/browse/MODULES-6081)) +- (MODULES-9473) Fix Issues Link [#259](https://github.com/puppetlabs/puppetlabs-powershell/pull/259) ([RandomNoun7](https://github.com/RandomNoun7)) +- (MODULES-9084) Increase pipe timeout to 180s [#257](https://github.com/puppetlabs/puppetlabs-powershell/pull/257) ([michaeltlombardi](https://github.com/michaeltlombardi)) -## [2.1.2] - 2017-07-27 +## [2.3.0](https://github.com/puppetlabs/puppetlabs-powershell/tree/2.3.0) - 2019-04-22 -### Fixed - -- Fixed Global Warning variable ([MODULES-5224](https://tickets.puppetlabs.com/browse/MODULES-5224)) -- Moved the PowerShell template file to stop it conflicting with the DSC module ([MODULES-5228](https://tickets.puppetlabs.com/browse/MODULES-5228)) - -## [2.1.1] - 2017-07-07 - -### Added - -- Rake tasks for release automation -- Experimental support for non-Windows Support (CentOS, Ubuntu) ([MODULES-3945](https://tickets.puppetlabs.com/browse/MODULES-3945)) - -### Fixed - -- Updated documentation ([DOC-2960](https://tickets.puppetlabs.com/browse/DOC-2960)) -- Updated metadata for Puppet 4 and Puppet 5 ([MODULES-4528](https://tickets.puppetlabs.com/browse/MODULES-4528), [MODULES-4822](https://tickets.puppetlabs.com/browse/MODULES-4822), [MODULES-5144](https://tickets.puppetlabs.com/browse/MODULES-5144)) -- Dispose runspace on pipe close ([MODULES-4754](https://tickets.puppetlabs.com/browse/MODULES-4754)) -- Removed rspec configuration for win32_console ([MODULES-4976](https://tickets.puppetlabs.com/browse/MODULES-4976)) -- Provider will now respect the environment parameter ([MODULES-4138](https://tickets.puppetlabs.com/browse/MODULES-4138)) -- Return available UI Output on error ([MODULES-5145](https://tickets.puppetlabs.com/browse/MODULES-5145)) - -## [2.1.0] - 2016-11-17 - -### Fixed - -- Support for Windows 2016/WMF 5.1 using named pipes ([MODULES-3690](https://tickets.puppetlabs.com/browse/MODULES-3690)) -- Fixed documentation for herestring ([DOC-2960](https://tickets.puppetlabs.com/browse/DOC-2960)) - -### Added - -- Speed improvements to the PowerShell manager ([MODULES-3690](https://tickets.puppetlabs.com/browse/MODULES-3690)) - -## [2.0.3] - 2016-10-05 - -### Added - -- The ability to set the current working directory ([MODULES-3565](https://tickets.puppetlabs.com/browse/MODULES-3565)) - -### Fixed +[Full Changelog](https://github.com/puppetlabs/puppetlabs-powershell/compare/2.2.0...2.3.0) -- Miscellaneous fixes to improve reliability -- Fixed capture exit codes when executing external scripts ([MODULES-3399](https://tickets.puppetlabs.com/browse/MODULES-3399)) -- Fixed respect user specified timeout ([MODULES-3709](https://tickets.puppetlabs.com/browse/MODULES-3709)) -- Improved handling of user code exceptions ([MODULES-3443](https://tickets.puppetlabs.com/browse/MODULES-3443)) -- Fixed output line and stacktrace of user code exception ([MODULES-3839](https://tickets.puppetlabs.com/browse/MODULES-3839)) -- Improved the PowerShell host so that it is more resilient to failure ([MODULES-3875](https://tickets.puppetlabs.com/browse/MODULES-3875)) -- Fixed race condition in threading with the PowerShell host ([MODULES-3144](https://tickets.puppetlabs.com/browse/MODULES-3144)) -- Modified tests to detect differences in PowerShell error text ([MODULES-3443](https://tickets.puppetlabs.com/browse/MODULES-3443)) -- Documented how to handle exit codes ([MODULES-3588](https://tickets.puppetlabs.com/browse/MODULES-3588)) +### Other -## [2.0.2] - 2016-07-12 +- (MODULES-8924) DOCS Release Review [#254](https://github.com/puppetlabs/puppetlabs-powershell/pull/254) ([clairecadman](https://github.com/clairecadman)) +- (MODULES-8924) Prepare module for 2.3.0 release [#253](https://github.com/puppetlabs/puppetlabs-powershell/pull/253) ([glennsarti](https://github.com/glennsarti)) +- (WIN-280) add skip() unless pattern to tests [#251](https://github.com/puppetlabs/puppetlabs-powershell/pull/251) ([ThoughtCrhyme](https://github.com/ThoughtCrhyme)) +- (MODULES-8748) Improve pipe reading in the PowerShell Manager [#250](https://github.com/puppetlabs/puppetlabs-powershell/pull/250) ([glennsarti](https://github.com/glennsarti)) +- (MODULES-8359) Remove non-Windows support for powershell provider [#249](https://github.com/puppetlabs/puppetlabs-powershell/pull/249) ([glennsarti](https://github.com/glennsarti)) +- (MODULES-8358) Fix typo for EL based test hosts [#248](https://github.com/puppetlabs/puppetlabs-powershell/pull/248) ([glennsarti](https://github.com/glennsarti)) +- (MODULES-8358) Add PowerShell manager to pwsh provider [#247](https://github.com/puppetlabs/puppetlabs-powershell/pull/247) ([glennsarti](https://github.com/glennsarti)) +- (MODULES-8356) Improve pwsh searching [#246](https://github.com/puppetlabs/puppetlabs-powershell/pull/246) ([glennsarti](https://github.com/glennsarti)) +- (MODULES-8532) PDK Update to template SHA 7281db5 [#245](https://github.com/puppetlabs/puppetlabs-powershell/pull/245) ([glennsarti](https://github.com/glennsarti)) +- (FM-7693) Add Windows Server 2019 [#243](https://github.com/puppetlabs/puppetlabs-powershell/pull/243) ([glennsarti](https://github.com/glennsarti)) +- (maint) Fix module installing in master-agent scenario [#242](https://github.com/puppetlabs/puppetlabs-powershell/pull/242) ([glennsarti](https://github.com/glennsarti)) +- (MODULES-8356) Search for pwsh binary [#241](https://github.com/puppetlabs/puppetlabs-powershell/pull/241) ([glennsarti](https://github.com/glennsarti)) +- (MODULES-8357) Add cross platform support for pwsh provider [#240](https://github.com/puppetlabs/puppetlabs-powershell/pull/240) ([glennsarti](https://github.com/glennsarti)) +- (maint) Update pdk template [#239](https://github.com/puppetlabs/puppetlabs-powershell/pull/239) ([jpogran](https://github.com/jpogran)) +- (MODULES-8355) Add pwsh provider [#238](https://github.com/puppetlabs/puppetlabs-powershell/pull/238) ([glennsarti](https://github.com/glennsarti)) +- Fix issues in README.md [#237](https://github.com/puppetlabs/puppetlabs-powershell/pull/237) ([pdoconnell](https://github.com/pdoconnell)) +- Mergeback for 2.2.0 release [#236](https://github.com/puppetlabs/puppetlabs-powershell/pull/236) ([ThoughtCrhyme](https://github.com/ThoughtCrhyme)) +- (MODULES-8120) Prepare module for 2.2.0 release [#235](https://github.com/puppetlabs/puppetlabs-powershell/pull/235) ([glennsarti](https://github.com/glennsarti)) +- (MODULES-7067) Only initialise constant when not defined [#224](https://github.com/puppetlabs/puppetlabs-powershell/pull/224) ([btoonk](https://github.com/btoonk)) + +## [2.2.0](https://github.com/puppetlabs/puppetlabs-powershell/tree/2.2.0) - 2018-10-24 + +[Full Changelog](https://github.com/puppetlabs/puppetlabs-powershell/compare/2.1.5...2.2.0) + +### Other + +- (MODULES-8120) Prepare module for 2.2.0 release [#235](https://github.com/puppetlabs/puppetlabs-powershell/pull/235) ([glennsarti](https://github.com/glennsarti)) +- (MODULES-7833) Update module for Puppet 6 [#234](https://github.com/puppetlabs/puppetlabs-powershell/pull/234) ([ThoughtCrhyme](https://github.com/ThoughtCrhyme)) +- pdksync - (MODULES-7658) use beaker4 in puppet-module-gems [#233](https://github.com/puppetlabs/puppetlabs-powershell/pull/233) ([tphoney](https://github.com/tphoney)) +- pdksync - (MODULES-7658) use beaker3 in puppet-module-gems [#232](https://github.com/puppetlabs/puppetlabs-powershell/pull/232) ([tphoney](https://github.com/tphoney)) +- (MOUDLES-7402) PDK Convert the module [#231](https://github.com/puppetlabs/puppetlabs-powershell/pull/231) ([glennsarti](https://github.com/glennsarti)) +- (PDK-1035) Remove the rspec-puppet pin [#230](https://github.com/puppetlabs/puppetlabs-powershell/pull/230) ([rodjek](https://github.com/rodjek)) +- Mergeback release into master [#229](https://github.com/puppetlabs/puppetlabs-powershell/pull/229) ([glennsarti](https://github.com/glennsarti)) + +## [2.1.5](https://github.com/puppetlabs/puppetlabs-powershell/tree/2.1.5) - 2018-05-09 + +[Full Changelog](https://github.com/puppetlabs/puppetlabs-powershell/compare/2.1.4...2.1.5) + +### Other -### Added +- (MODULES-7109) CHANGELOG edits [#228](https://github.com/puppetlabs/puppetlabs-powershell/pull/228) ([clairecadman](https://github.com/clairecadman)) +- (MODULES-7109) Release Prep [#227](https://github.com/puppetlabs/puppetlabs-powershell/pull/227) ([RandomNoun7](https://github.com/RandomNoun7)) +- (MAINT) Update Changelog to KAC Format [#226](https://github.com/puppetlabs/puppetlabs-powershell/pull/226) ([RandomNoun7](https://github.com/RandomNoun7)) +- (MODULES-7018) Fix Zero Timeout Behavior [#225](https://github.com/puppetlabs/puppetlabs-powershell/pull/225) ([RandomNoun7](https://github.com/RandomNoun7)) +- (MODULES-7033) Kill test unreliable [#223](https://github.com/puppetlabs/puppetlabs-powershell/pull/223) ([RandomNoun7](https://github.com/RandomNoun7)) +- (MODULES-7011) Fix .NET upgrade message [#222](https://github.com/puppetlabs/puppetlabs-powershell/pull/222) ([RandomNoun7](https://github.com/RandomNoun7)) +- (MODULES-4271) Add Server 2016 to metadata [#221](https://github.com/puppetlabs/puppetlabs-powershell/pull/221) ([glennsarti](https://github.com/glennsarti)) +- (maint) Remove errant pry command [#220](https://github.com/puppetlabs/puppetlabs-powershell/pull/220) ([glennsarti](https://github.com/glennsarti)) +- (MODULES-6937) Mergeback release to master [#219](https://github.com/puppetlabs/puppetlabs-powershell/pull/219) ([RandomNoun7](https://github.com/RandomNoun7)) + +## [2.1.4](https://github.com/puppetlabs/puppetlabs-powershell/tree/2.1.4) - 2018-03-29 + +[Full Changelog](https://github.com/puppetlabs/puppetlabs-powershell/compare/2.1.3...2.1.4) + +### Other + +- (MAINT) Update changelog prior to 2.1.4 release [#218](https://github.com/puppetlabs/puppetlabs-powershell/pull/218) ([RandomNoun7](https://github.com/RandomNoun7)) +- (MODULES-6937) Release Prep 2.1.4 [#217](https://github.com/puppetlabs/puppetlabs-powershell/pull/217) ([RandomNoun7](https://github.com/RandomNoun7)) +- (MODULES-6927) Fix Pipe Server on Win 2008r2 [#216](https://github.com/puppetlabs/puppetlabs-powershell/pull/216) ([RandomNoun7](https://github.com/RandomNoun7)) +- Revert "(IMAGES-795) 2008r2 template failing PowerShell module tests" [#215](https://github.com/puppetlabs/puppetlabs-powershell/pull/215) ([RandomNoun7](https://github.com/RandomNoun7)) +- (IMAGES-795) 2008r2 template failing PowerShell module tests [#214](https://github.com/puppetlabs/puppetlabs-powershell/pull/214) ([RandomNoun7](https://github.com/RandomNoun7)) +- (MODULES-6750) Add testmode switcher [#212](https://github.com/puppetlabs/puppetlabs-powershell/pull/212) ([glennsarti](https://github.com/glennsarti)) +- (maint) Minor PowerShell syntax updates to README [#209](https://github.com/puppetlabs/puppetlabs-powershell/pull/209) ([Iristyle](https://github.com/Iristyle)) +- (maint) Update sync.yaml for new modsync config options [#208](https://github.com/puppetlabs/puppetlabs-powershell/pull/208) ([glennsarti](https://github.com/glennsarti)) +- (maint) modulesync cd884db Remove AppVeyor OpenSSL update on Ruby 2.4 [#204](https://github.com/puppetlabs/puppetlabs-powershell/pull/204) ([michaeltlombardi](https://github.com/michaeltlombardi)) +- (maint) - modulesync 384f4c1 [#203](https://github.com/puppetlabs/puppetlabs-powershell/pull/203) ([tphoney](https://github.com/tphoney)) + +## [2.1.3](https://github.com/puppetlabs/puppetlabs-powershell/tree/2.1.3) - 2017-12-08 + +[Full Changelog](https://github.com/puppetlabs/puppetlabs-powershell/compare/2.1.2...2.1.3) + +### Other + +- (MODULES-4748) Prevent zombie procs from timeout [#202](https://github.com/puppetlabs/puppetlabs-powershell/pull/202) ([michaeltlombardi](https://github.com/michaeltlombardi)) +- (MODULES-4748) Increase timeout for opening PowerShell [#201](https://github.com/puppetlabs/puppetlabs-powershell/pull/201) ([michaeltlombardi](https://github.com/michaeltlombardi)) +- (MODULES-6081) Rename PowerShell executable [#200](https://github.com/puppetlabs/puppetlabs-powershell/pull/200) ([RandomNoun7](https://github.com/RandomNoun7)) +- (maint) Add Github Pull Request Template [#199](https://github.com/puppetlabs/puppetlabs-powershell/pull/199) ([jpogran](https://github.com/jpogran)) +- (maint) modulesync 892c4cf [#198](https://github.com/puppetlabs/puppetlabs-powershell/pull/198) ([HAIL9000](https://github.com/HAIL9000)) +- Release branch merge back for 2.1.2 [#196](https://github.com/puppetlabs/puppetlabs-powershell/pull/196) ([jpogran](https://github.com/jpogran)) +- (maint) Modulesync update [#195](https://github.com/puppetlabs/puppetlabs-powershell/pull/195) ([Iristyle](https://github.com/Iristyle)) + +## [2.1.2](https://github.com/puppetlabs/puppetlabs-powershell/tree/2.1.2) - 2017-07-27 + +[Full Changelog](https://github.com/puppetlabs/puppetlabs-powershell/compare/2.1.1...2.1.2) + +### Other + +- (MODULES-5308) Prepare for release of version 2.1.2 [#194](https://github.com/puppetlabs/puppetlabs-powershell/pull/194) ([glennsarti](https://github.com/glennsarti)) +- (MODULES-5228) Move PowerShell Manager template file [#193](https://github.com/puppetlabs/puppetlabs-powershell/pull/193) ([glennsarti](https://github.com/glennsarti)) +- (MODULES-5224) Fix Global Warning variable [#192](https://github.com/puppetlabs/puppetlabs-powershell/pull/192) ([jpogran](https://github.com/jpogran)) +- (maint) Update date in Changelog [#191](https://github.com/puppetlabs/puppetlabs-powershell/pull/191) ([glennsarti](https://github.com/glennsarti)) +- Mergeback Release 2.1.1 [#190](https://github.com/puppetlabs/puppetlabs-powershell/pull/190) ([jpogran](https://github.com/jpogran)) +- (MODULES-5187) mysnc puppet 5 and ruby 2.4 [#189](https://github.com/puppetlabs/puppetlabs-powershell/pull/189) ([eputnam](https://github.com/eputnam)) + +## [2.1.1](https://github.com/puppetlabs/puppetlabs-powershell/tree/2.1.1) - 2017-07-07 + +[Full Changelog](https://github.com/puppetlabs/puppetlabs-powershell/compare/2.1.0...2.1.1) + +### Other + +- fix broken link, tidy up punctuation [#188](https://github.com/puppetlabs/puppetlabs-powershell/pull/188) ([jbondpdx](https://github.com/jbondpdx)) +- (MODULES-5163) Release prep 2.1.1 [#187](https://github.com/puppetlabs/puppetlabs-powershell/pull/187) ([glennsarti](https://github.com/glennsarti)) +- (MODULES-5145) Return available UI Output on error [#185](https://github.com/puppetlabs/puppetlabs-powershell/pull/185) ([Iristyle](https://github.com/Iristyle)) +- (MODULES-5144) Prep for puppet 5 [#184](https://github.com/puppetlabs/puppetlabs-powershell/pull/184) ([hunner](https://github.com/hunner)) +- (MODULES-4138) Provider will respect the environment parameter [#183](https://github.com/puppetlabs/puppetlabs-powershell/pull/183) ([glennsarti](https://github.com/glennsarti)) +- (MODULES-4976) Remove rspec configuration for win32_console [#182](https://github.com/puppetlabs/puppetlabs-powershell/pull/182) ([glennsarti](https://github.com/glennsarti)) +- MODULES-4822 puppetlabs-powershell: Update the version compatibility to >= 4.7.0 < 5.0.0 [#180](https://github.com/puppetlabs/puppetlabs-powershell/pull/180) ([marsmensch](https://github.com/marsmensch)) +- (MODULES-4754) Dispose runspace on pipe close [#179](https://github.com/puppetlabs/puppetlabs-powershell/pull/179) ([Iristyle](https://github.com/Iristyle)) +- [msync] 786266 Implement puppet-module-gems, a45803 Remove metadata.json from locales config [#176](https://github.com/puppetlabs/puppetlabs-powershell/pull/176) ([wilson208](https://github.com/wilson208)) +- (MODULES-3945) Add Non Windows PowerShell platform support [#175](https://github.com/puppetlabs/puppetlabs-powershell/pull/175) ([glennsarti](https://github.com/glennsarti)) +- [MODULES-4528] Replace Puppet.version.to_f version comparison from spec_helper.rb [#173](https://github.com/puppetlabs/puppetlabs-powershell/pull/173) ([wilson208](https://github.com/wilson208)) +- [MODULES-4556] Remove PE requirement from metadata.json [#172](https://github.com/puppetlabs/puppetlabs-powershell/pull/172) ([wilson208](https://github.com/wilson208)) +- (maint) stable mergeback [#171](https://github.com/puppetlabs/puppetlabs-powershell/pull/171) ([DavidS](https://github.com/DavidS)) +- (MODULES-4098) Sync the rest of the files [#170](https://github.com/puppetlabs/puppetlabs-powershell/pull/170) ([hunner](https://github.com/hunner)) +- (MODULES-4263) add blacksmith rake tasks [#168](https://github.com/puppetlabs/puppetlabs-powershell/pull/168) ([eputnam](https://github.com/eputnam)) +- (MODULES-4097) Sync travis.yml [#167](https://github.com/puppetlabs/puppetlabs-powershell/pull/167) ([hunner](https://github.com/hunner)) +- (FM-5972) Update to next modulesync_configs [dedaf10] [#165](https://github.com/puppetlabs/puppetlabs-powershell/pull/165) ([DavidS](https://github.com/DavidS)) +- (FM-5939) removes spec.opts [#164](https://github.com/puppetlabs/puppetlabs-powershell/pull/164) ([eputnam](https://github.com/eputnam)) +- Workaround frozen strings on ruby 1.9 [#160](https://github.com/puppetlabs/puppetlabs-powershell/pull/160) ([hunner](https://github.com/hunner)) + +## [2.1.0](https://github.com/puppetlabs/puppetlabs-powershell/tree/2.1.0) - 2016-11-17 + +[Full Changelog](https://github.com/puppetlabs/puppetlabs-powershell/compare/2.0.3...2.1.0) + +### Other + +- (FM-5728) Update Changlog Date [#161](https://github.com/puppetlabs/puppetlabs-powershell/pull/161) ([jpogran](https://github.com/jpogran)) +- (MODULES-3632) Update modulesync [#159](https://github.com/puppetlabs/puppetlabs-powershell/pull/159) ([hunner](https://github.com/hunner)) +- (FM-5728) Update changelog for 2.1.0 [#157](https://github.com/puppetlabs/puppetlabs-powershell/pull/157) ([jpogran](https://github.com/jpogran)) +- (MODULES-3690) PowerShell v2 + .NET Framework less than 3.5 is unsupported for PowerShell Manager [#155](https://github.com/puppetlabs/puppetlabs-powershell/pull/155) ([ferventcoder](https://github.com/ferventcoder)) +- DOC-2960: new limitation and a bit of editing [#154](https://github.com/puppetlabs/puppetlabs-powershell/pull/154) ([bmjen](https://github.com/bmjen)) +- DOC-2960: new limitation and a bit of editing [#153](https://github.com/puppetlabs/puppetlabs-powershell/pull/153) ([jbondpdx](https://github.com/jbondpdx)) +- (MODULES-3690) Use custom binary pipe IPC [#142](https://github.com/puppetlabs/puppetlabs-powershell/pull/142) ([Iristyle](https://github.com/Iristyle)) + +## [2.0.3](https://github.com/puppetlabs/puppetlabs-powershell/tree/2.0.3) - 2016-10-05 + +[Full Changelog](https://github.com/puppetlabs/puppetlabs-powershell/compare/2.0.2...2.0.3) + +### Other + +- (maint) Update changelog and metadata for release [#151](https://github.com/puppetlabs/puppetlabs-powershell/pull/151) ([jpogran](https://github.com/jpogran)) +- (maint) Fix multiline stderr capture [#150](https://github.com/puppetlabs/puppetlabs-powershell/pull/150) ([Iristyle](https://github.com/Iristyle)) +- (maint) Re-enable PowerShell 2 tests [#149](https://github.com/puppetlabs/puppetlabs-powershell/pull/149) ([Iristyle](https://github.com/Iristyle)) +- (MODULES-3443) Modify error test for differences in Powershell version [#148](https://github.com/puppetlabs/puppetlabs-powershell/pull/148) ([glennsarti](https://github.com/glennsarti)) +- (MODULES-3144) Fix race condition draining pipes [#147](https://github.com/puppetlabs/puppetlabs-powershell/pull/147) ([Iristyle](https://github.com/Iristyle)) +- (maint) Merge master down to stable [#146](https://github.com/puppetlabs/puppetlabs-powershell/pull/146) ([jpogran](https://github.com/jpogran)) +- (MODULES-3144) Drain stdout / stderr in separate threads [#145](https://github.com/puppetlabs/puppetlabs-powershell/pull/145) ([Iristyle](https://github.com/Iristyle)) +- (MODULES-3875) Improve PowerShellManager resilience to failure [#144](https://github.com/puppetlabs/puppetlabs-powershell/pull/144) ([Iristyle](https://github.com/Iristyle)) +- (maint) Minor PS tweaks in prep for pipe rewrite [#143](https://github.com/puppetlabs/puppetlabs-powershell/pull/143) ([Iristyle](https://github.com/Iristyle)) +- (MODULES-3443) Emit better user code exceptions [#139](https://github.com/puppetlabs/puppetlabs-powershell/pull/139) ([glennsarti](https://github.com/glennsarti)) +- (MODULES-3588) Update documentation for change in MODULES-3399 [#138](https://github.com/puppetlabs/puppetlabs-powershell/pull/138) ([glennsarti](https://github.com/glennsarti)) +- (MODULES-3775) (msync 8d0455c) update travis/appveyer w/Ruby 2.3 [#137](https://github.com/puppetlabs/puppetlabs-powershell/pull/137) ([MosesMendoza](https://github.com/MosesMendoza)) +- (MODULES-3709) Respect resource timeout interval in powershell manager [#136](https://github.com/puppetlabs/puppetlabs-powershell/pull/136) ([glennsarti](https://github.com/glennsarti)) +- (maint) Fix test failures for Puppet 4.6 [#135](https://github.com/puppetlabs/puppetlabs-powershell/pull/135) ([Iristyle](https://github.com/Iristyle)) +- (maint) modulesync 70360747 [#134](https://github.com/puppetlabs/puppetlabs-powershell/pull/134) ([glennsarti](https://github.com/glennsarti)) +- (MODULES-3640) Update modulesync 30fc4ab [#132](https://github.com/puppetlabs/puppetlabs-powershell/pull/132) ([MosesMendoza](https://github.com/MosesMendoza)) +- (MODULES-3399) Exit user scripts via $LASTEXITCODE [#129](https://github.com/puppetlabs/puppetlabs-powershell/pull/129) ([Iristyle](https://github.com/Iristyle)) +- (MODULES-3565) Change the working directory if specified in the resource [#125](https://github.com/puppetlabs/puppetlabs-powershell/pull/125) ([glennsarti](https://github.com/glennsarti)) + +## [2.0.2](https://github.com/puppetlabs/puppetlabs-powershell/tree/2.0.2) - 2016-07-12 + +[Full Changelog](https://github.com/puppetlabs/puppetlabs-powershell/compare/2.0.1...2.0.2) + +### Other + +- (FM-5344) Prepare for release 2.0.2 [#128](https://github.com/puppetlabs/puppetlabs-powershell/pull/128) ([glennsarti](https://github.com/glennsarti)) +- (MODULES-3468) Update README.md [#127](https://github.com/puppetlabs/puppetlabs-powershell/pull/127) ([glennsarti](https://github.com/glennsarti)) +- (maint) modulesync 724153ca2 [#126](https://github.com/puppetlabs/puppetlabs-powershell/pull/126) ([glennsarti](https://github.com/glennsarti)) +- (maint) modulesync 99efa6139 [#124](https://github.com/puppetlabs/puppetlabs-powershell/pull/124) ([glennsarti](https://github.com/glennsarti)) +- (MODULES-3536) modsync update [#122](https://github.com/puppetlabs/puppetlabs-powershell/pull/122) ([glennsarti](https://github.com/glennsarti)) +- (MODULES-2634) PowerShell Module doesn't run template with try/catch [#120](https://github.com/puppetlabs/puppetlabs-powershell/pull/120) ([DLuCJ](https://github.com/DLuCJ)) +- (MODULES-2634) Fix PS try/catch in puppet 3.X [#119](https://github.com/puppetlabs/puppetlabs-powershell/pull/119) ([jpogran](https://github.com/jpogran)) +- (MODULES-2634) Fix tests for non-Windows agents [#118](https://github.com/puppetlabs/puppetlabs-powershell/pull/118) ([Iristyle](https://github.com/Iristyle)) +- (MODULES-2634) Remove unnecessary binary test file [#117](https://github.com/puppetlabs/puppetlabs-powershell/pull/117) ([glennsarti](https://github.com/glennsarti)) +- (MODULES-3406) Optimize PowerShell parse time [#115](https://github.com/puppetlabs/puppetlabs-powershell/pull/115) ([Iristyle](https://github.com/Iristyle)) +- (maint) Remove require_relative for Ruby 1.8.7 [#114](https://github.com/puppetlabs/puppetlabs-powershell/pull/114) ([Iristyle](https://github.com/Iristyle)) +- (MODULES-2634) Try / Catch Test Updates [#113](https://github.com/puppetlabs/puppetlabs-powershell/pull/113) ([Iristyle](https://github.com/Iristyle)) +- (maint) Fix changelog release dates [#111](https://github.com/puppetlabs/puppetlabs-powershell/pull/111) ([glennsarti](https://github.com/glennsarti)) + +## [2.0.1](https://github.com/puppetlabs/puppetlabs-powershell/tree/2.0.1) - 2016-05-24 + +[Full Changelog](https://github.com/puppetlabs/puppetlabs-powershell/compare/2.0.0...2.0.1) + +### Other + +- (FM-5241) Release Powershell 2.0.1 [#107](https://github.com/puppetlabs/puppetlabs-powershell/pull/107) ([glennsarti](https://github.com/glennsarti)) +- (FM-5240) Prevent powershell_manager DSC conflict [#106](https://github.com/puppetlabs/puppetlabs-powershell/pull/106) ([Iristyle](https://github.com/Iristyle)) +- (MODULES-2634) Verify try/catch with PowerShell module [#104](https://github.com/puppetlabs/puppetlabs-powershell/pull/104) ([jpogran](https://github.com/jpogran)) + +## [2.0.0](https://github.com/puppetlabs/puppetlabs-powershell/tree/2.0.0) - 2016-05-18 + +[Full Changelog](https://github.com/puppetlabs/puppetlabs-powershell/compare/1.0.6...2.0.0) + +### Other + +- Merge branch 'master' into stable [#102](https://github.com/puppetlabs/puppetlabs-powershell/pull/102) ([glennsarti](https://github.com/glennsarti)) +- (MODULES-3356) Branding Name Change [#101](https://github.com/puppetlabs/puppetlabs-powershell/pull/101) ([jpogran](https://github.com/jpogran)) +- (MODULES-3344) Nano Server Compatibility [#100](https://github.com/puppetlabs/puppetlabs-powershell/pull/100) ([Iristyle](https://github.com/Iristyle)) +- (FM-4639) Prepare module for 2.0.0 release [#98](https://github.com/puppetlabs/puppetlabs-powershell/pull/98) ([glennsarti](https://github.com/glennsarti)) +- (MODULES-3321) Ensure upgrade warning Windows only [#97](https://github.com/puppetlabs/puppetlabs-powershell/pull/97) ([Iristyle](https://github.com/Iristyle)) +- (maint) Update copyright notice with correct authors [#96](https://github.com/puppetlabs/puppetlabs-powershell/pull/96) ([glennsarti](https://github.com/glennsarti)) +- Merge stable to master [#95](https://github.com/puppetlabs/puppetlabs-powershell/pull/95) ([ferventcoder](https://github.com/ferventcoder)) +- (maint) modsync update - master [#94](https://github.com/puppetlabs/puppetlabs-powershell/pull/94) ([glennsarti](https://github.com/glennsarti)) +- (maint) modsync update - stable [#93](https://github.com/puppetlabs/puppetlabs-powershell/pull/93) ([glennsarti](https://github.com/glennsarti)) +- {WIP}(FM-4639) Release 2.0.0 [#92](https://github.com/puppetlabs/puppetlabs-powershell/pull/92) ([glennsarti](https://github.com/glennsarti)) +- Revert "(MODULES-2634) Test try/catch in PowerShell provider" [#90](https://github.com/puppetlabs/puppetlabs-powershell/pull/90) ([glennsarti](https://github.com/glennsarti)) +- (MODULES-3280) Remove Verbose Environment Variable Handling [#87](https://github.com/puppetlabs/puppetlabs-powershell/pull/87) ([jpogran](https://github.com/jpogran)) +- (MODULES-3137) Log PowerShell Streams [#86](https://github.com/puppetlabs/puppetlabs-powershell/pull/86) ([jpogran](https://github.com/jpogran)) +- (MODULES-2634) Test try/catch in PowerShell provider [#84](https://github.com/puppetlabs/puppetlabs-powershell/pull/84) ([jpogran](https://github.com/jpogran)) +- (MODULES-3192) Use file() instead of template() in the README [#83](https://github.com/puppetlabs/puppetlabs-powershell/pull/83) ([natemccurdy](https://github.com/natemccurdy)) +- (maint) Fix private FFI declarations [#82](https://github.com/puppetlabs/puppetlabs-powershell/pull/82) ([Iristyle](https://github.com/Iristyle)) +- (FM-4952) Restrict Rake to ~> 10.1 [#81](https://github.com/puppetlabs/puppetlabs-powershell/pull/81) ([ferventcoder](https://github.com/ferventcoder)) +- (maint) Changed allowed rspec version [#79](https://github.com/puppetlabs/puppetlabs-powershell/pull/79) ([Iristyle](https://github.com/Iristyle)) +- (MODULES-2962) Reuse PowerShell Session [#78](https://github.com/puppetlabs/puppetlabs-powershell/pull/78) ([Iristyle](https://github.com/Iristyle)) +- (FM-4881) Remove gem install bundler on Appveyor [#76](https://github.com/puppetlabs/puppetlabs-powershell/pull/76) ([jpogran](https://github.com/jpogran)) +- (MODULES-3011) Acceptance Test for Single Session [#75](https://github.com/puppetlabs/puppetlabs-powershell/pull/75) ([cowofevil](https://github.com/cowofevil)) +- Mention that templates need to have DOS linefeeds [#73](https://github.com/puppetlabs/puppetlabs-powershell/pull/73) ([mattock](https://github.com/mattock)) +- (maint) update modsync / fix build [#71](https://github.com/puppetlabs/puppetlabs-powershell/pull/71) ([ferventcoder](https://github.com/ferventcoder)) +- (maint) update modulesync files [#68](https://github.com/puppetlabs/puppetlabs-powershell/pull/68) ([ferventcoder](https://github.com/ferventcoder)) -- Noticable speed increase by reducing the time start for a PowerShell command ([MODULES-3406](https://tickets.puppetlabs.com/browse/MODULES-3406)) -- Tests for try/catch ([MODULES-2634](https://tickets.puppetlabs.com/browse/MODULES-2634)) +## [1.0.6](https://github.com/puppetlabs/puppetlabs-powershell/tree/1.0.6) - 2015-12-07 -### Fixed +[Full Changelog](https://github.com/puppetlabs/puppetlabs-powershell/compare/1.0.5...1.0.6) -- Fixed minor bugs in tests ([MODULES-3347](https://tickets.puppetlabs.com/browse/MODULES-3347)) -- Fixed bug with older ruby (1.8) +### Other -## [2.0.1] - 2016-05-24 +- (FM-3477) Release 1.0.6 [#69](https://github.com/puppetlabs/puppetlabs-powershell/pull/69) ([ferventcoder](https://github.com/ferventcoder)) +- (MODULES-2452) Update Beaker Version [#66](https://github.com/puppetlabs/puppetlabs-powershell/pull/66) ([ferventcoder](https://github.com/ferventcoder)) +- (MODULES-2443) Ensure Facter version for old Puppets [#65](https://github.com/puppetlabs/puppetlabs-powershell/pull/65) ([ferventcoder](https://github.com/ferventcoder)) -### Fixed +## [1.0.5](https://github.com/puppetlabs/puppetlabs-powershell/tree/1.0.5) - 2015-07-29 -- Updated the PowerShell manager so that it does not conflict with the PowerShell Manager in the Puppet DSC module ([FM-5240](https://tickets.puppetlabs.com/browse/FM-5240)) +[Full Changelog](https://github.com/puppetlabs/puppetlabs-powershell/compare/1.0.4...1.0.5) -## [2.0.0] - 2016-05-17 +### Other -### Changed +- (FM-3079) Release 1.0.5 - PE 2015.2.0 update [#64](https://github.com/puppetlabs/puppetlabs-powershell/pull/64) ([cyberious](https://github.com/cyberious)) +- (maint) puppetlabs_spec_helper ~>0.10.3 [#63](https://github.com/puppetlabs/puppetlabs-powershell/pull/63) ([ferventcoder](https://github.com/ferventcoder)) +- (MODULES-2207) bin beaker-rspec to ~> 5.1 [#62](https://github.com/puppetlabs/puppetlabs-powershell/pull/62) ([ferventcoder](https://github.com/ferventcoder)) +- (MODULES-2207) Add Beaker-Rspec [#61](https://github.com/puppetlabs/puppetlabs-powershell/pull/61) ([ferventcoder](https://github.com/ferventcoder)) +- (MODULES-2207) Update Modulesync [#60](https://github.com/puppetlabs/puppetlabs-powershell/pull/60) ([ferventcoder](https://github.com/ferventcoder)) +- (maint) Add FUTURE_PARSER back into spec_helper_acceptance [#59](https://github.com/puppetlabs/puppetlabs-powershell/pull/59) ([cyberious](https://github.com/cyberious)) +- (maint) Add beaker-puppet_install_helper and remove old code - Allows us to move forward with AIO testing and unified installer [#58](https://github.com/puppetlabs/puppetlabs-powershell/pull/58) ([cyberious](https://github.com/cyberious)) +- (maint) Update beaker-rspec to 5.0+ [#56](https://github.com/puppetlabs/puppetlabs-powershell/pull/56) ([Iristyle](https://github.com/Iristyle)) +- (maint) Remove step call which was removed from Beaker - Beaker made a breaking change that we now need to remove step calls [#55](https://github.com/puppetlabs/puppetlabs-powershell/pull/55) ([cyberious](https://github.com/cyberious)) +- (FM-2752) Add modulesync config and puppet 4 as allowed failure [#54](https://github.com/puppetlabs/puppetlabs-powershell/pull/54) ([cyberious](https://github.com/cyberious)) +- Edits to grammar, markdown, and format to match current styleguide. [#50](https://github.com/puppetlabs/puppetlabs-powershell/pull/50) ([jtappa](https://github.com/jtappa)) +- (BKR-147) add Gemfile setting for BEAKER_VERSION for puppet... [#49](https://github.com/puppetlabs/puppetlabs-powershell/pull/49) ([anodelman](https://github.com/anodelman)) +- Pin Beaker-rspec to 4.x until fixed [#47](https://github.com/puppetlabs/puppetlabs-powershell/pull/47) ([cyberious](https://github.com/cyberious)) +- FM-1523: added module summary to metadata.json [#45](https://github.com/puppetlabs/puppetlabs-powershell/pull/45) ([jbondpdx](https://github.com/jbondpdx)) +- (maint) Allow setting gem mirror via GEM_SOURCE env var [#44](https://github.com/puppetlabs/puppetlabs-powershell/pull/44) ([justinstoller](https://github.com/justinstoller)) +- merge 1.0.x into master [#43](https://github.com/puppetlabs/puppetlabs-powershell/pull/43) ([underscorgan](https://github.com/underscorgan)) -- Major performance improvement by sharing a single PowerShell session, instead of creating a new PowerShell session per command. This change no longer writes temporary scripts to file system. ([MODULES-2962](https://tickets.puppetlabs.com/browse/MODULES-2962)) +## [1.0.4](https://github.com/puppetlabs/puppetlabs-powershell/tree/1.0.4) - 2014-11-04 -### Fixed +[Full Changelog](https://github.com/puppetlabs/puppetlabs-powershell/compare/1.0.3...1.0.4) -- Updated test suites with later versions ([MODULES-2452](https://tickets.puppetlabs.com/browse/MODULES-2452), [MODULES-3011](https://tickets.puppetlabs.com/browse/MODULES-3011)) -- Cleaned up documentation ([MODULES-3192](https://tickets.puppetlabs.com/browse/MODULES-3192)) -- Removed extra verbose output +### Other -## [1.0.6] - 2015-12-08 +- 1.0.4 prep [#42](https://github.com/puppetlabs/puppetlabs-powershell/pull/42) ([underscorgan](https://github.com/underscorgan)) +- 1.0.4 Changelog update [#41](https://github.com/puppetlabs/puppetlabs-powershell/pull/41) ([cyberious](https://github.com/cyberious)) +- FM-1519 Add future parser testing support [#40](https://github.com/puppetlabs/puppetlabs-powershell/pull/40) ([cyberious](https://github.com/cyberious)) +- Update issues url in metadata.json and Add license file [#38](https://github.com/puppetlabs/puppetlabs-powershell/pull/38) ([cyberious](https://github.com/cyberious)) -### Fixed +## [1.0.3](https://github.com/puppetlabs/puppetlabs-powershell/tree/1.0.3) - 2014-08-27 -- Fixed testing bug when testing on Puppet 3+ on Windows Server 2003 ([MODULES-2443](https://tickets.puppetlabs.com/browse/MODULES-2443)) +[Full Changelog](https://github.com/puppetlabs/puppetlabs-powershell/compare/1.0.2...1.0.3) -## [1.0.5] - 2015-07-28 +### Other -### Added +- Forgot to move this line too [#37](https://github.com/puppetlabs/puppetlabs-powershell/pull/37) ([hunner](https://github.com/hunner)) +- Missed some more default hosts [#36](https://github.com/puppetlabs/puppetlabs-powershell/pull/36) ([hunner](https://github.com/hunner)) +- Bugfix for #34 [#35](https://github.com/puppetlabs/puppetlabs-powershell/pull/35) ([hunner](https://github.com/hunner)) +- Tests need to install module for PE also [#34](https://github.com/puppetlabs/puppetlabs-powershell/pull/34) ([hunner](https://github.com/hunner)) +- Release 1.0.3 [#33](https://github.com/puppetlabs/puppetlabs-powershell/pull/33) ([hunner](https://github.com/hunner)) +- Foss testing refactor [#32](https://github.com/puppetlabs/puppetlabs-powershell/pull/32) ([cyberious](https://github.com/cyberious)) -- Metadata for Puppet 4 and PE 2015.2.0 ([FM-2752](https://tickets.puppetlabs.com/browse/FM-2752)) +## [1.0.2](https://github.com/puppetlabs/puppetlabs-powershell/tree/1.0.2) - 2014-07-16 -### Fixed +[Full Changelog](https://github.com/puppetlabs/puppetlabs-powershell/compare/1.0.1...1.0.2) -- Minor testing bug fixes ([MODULES-2207](https://tickets.puppetlabs.com/browse/MODULES-2207)) -- Readme cleanup ([DOC-1497](https://tickets.puppetlabs.com/browse/DOC-1497)) +### Other -## [1.0.4] 2014-11-04 +- 1.0.x [#31](https://github.com/puppetlabs/puppetlabs-powershell/pull/31) ([cyberious](https://github.com/cyberious)) +- Prepare 1.0.2 release. [#30](https://github.com/puppetlabs/puppetlabs-powershell/pull/30) ([apenney](https://github.com/apenney)) -### Fixed +## [1.0.1](https://github.com/puppetlabs/puppetlabs-powershell/tree/1.0.1) - 2014-07-09 -- Fixed issues URL in metadata.json +[Full Changelog](https://github.com/puppetlabs/puppetlabs-powershell/compare/1.0.0...1.0.1) -### Added +### Other -- Future Parser testing support ([FM-1519](https://tickets.puppetlabs.com/browse/FM-1519)) +- Update metadata.json as it does not implicitly assume that 3.2.3 is not > 3.2.0 [#29](https://github.com/puppetlabs/puppetlabs-powershell/pull/29) ([cyberious](https://github.com/cyberious)) -## [1.0.3] - 2014-08-25 - -### Fixed - -- Updated tests to verify that PowerShell continues to function on x64-native ruby - -## [1.0.2] - 2014-07-15 - -### Fixed - -- Updated metadata.json so that the module can be uninstalled and upgraded via the puppet module command - -## [1.0.1] - -### Fixed +## [1.0.0](https://github.com/puppetlabs/puppetlabs-powershell/tree/1.0.0) - 2014-07-08 -- Fixed issue with metadata and PE version requirement - -[Unreleased]: https://github.com/puppetlabs/puppetlabs-powershell/compare/2.3.0...main -[2.3.0]: https://github.com/puppetlabs/puppetlabs-powershell/compare/2.2.0...2.3.0 -[2.2.0]: https://github.com/puppetlabs/puppetlabs-powershell/compare/2.1.5...2.2.0 -[2.1.5]: https://github.com/puppetlabs/puppetlabs-powershell/compare/2.1.4...2.1.5 -[2.1.4]: https://github.com/puppetlabs/puppetlabs-powershell/compare/2.1.3...2.1.4 -[2.1.3]: https://github.com/puppetlabs/puppetlabs-powershell/compare/2.1.2...2.1.3 -[2.1.2]: https://github.com/puppetlabs/puppetlabs-powershell/compare/2.1.1...2.1.2 -[2.1.1]: https://github.com/puppetlabs/puppetlabs-powershell/compare/2.1.0...2.1.1 -[2.1.0]: https://github.com/puppetlabs/puppetlabs-powershell/compare/2.0.3...2.1.0 -[2.0.3]: https://github.com/puppetlabs/puppetlabs-powershell/compare/2.0.2...2.0.3 -[2.0.2]: https://github.com/puppetlabs/puppetlabs-powershell/compare/2.0.1...2.0.2 -[2.0.1]: https://github.com/puppetlabs/puppetlabs-powershell/compare/2.0.0...2.0.1 -[2.0.0]: https://github.com/puppetlabs/puppetlabs-powershell/compare/1.0.6...2.0.0 -[1.0.6]: https://github.com/puppetlabs/puppetlabs-powershell/compare/1.0.5...1.0.6 -[1.0.5]: https://github.com/puppetlabs/puppetlabs-powershell/compare/1.0.4...1.0.5 -[1.0.4]: https://github.com/puppetlabs/puppetlabs-powershell/compare/1.0.3...1.0.4 -[1.0.3]: https://github.com/puppetlabs/puppetlabs-powershell/compare/1.0.2...1.0.3 -[1.0.2]: https://github.com/puppetlabs/puppetlabs-powershell/compare/1.0.1...1.0.2 -[1.0.1]: https://github.com/puppetlabs/puppetlabs-powershell/compare/1.0.0...1.0.1 - - -\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)* +[Full Changelog](https://github.com/puppetlabs/puppetlabs-powershell/compare/5b20faca7410a193cd14a70d5d3f7bfa41d6d0e1...1.0.0) diff --git a/Gemfile b/Gemfile index f9780895..2c483db9 100644 --- a/Gemfile +++ b/Gemfile @@ -14,32 +14,37 @@ def location_for(place_or_version, fake_version = nil) end group :development do - gem "json", '= 2.1.0', require: false if Gem::Requirement.create(['>= 2.5.0', '< 2.7.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup)) - gem "json", '= 2.3.0', require: false if Gem::Requirement.create(['>= 2.7.0', '< 3.0.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup)) - gem "json", '= 2.5.1', require: false if Gem::Requirement.create(['>= 3.0.0', '< 3.0.5']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup)) - gem "json", '= 2.6.1', require: false if Gem::Requirement.create(['>= 3.1.0', '< 3.1.3']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup)) - gem "json", '= 2.6.3', require: false if Gem::Requirement.create(['>= 3.2.0', '< 4.0.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup)) - gem "voxpupuli-puppet-lint-plugins", '~> 4.0', require: false - gem "facterdb", '~> 1.18', require: false - gem "metadata-json-lint", '>= 2.0.2', '< 4.0.0', require: false - gem "puppetlabs_spec_helper", '~> 5.0', require: false - gem "rspec-puppet-facts", '~> 2.0', require: false - gem "codecov", '~> 0.2', require: false - gem "dependency_checker", '~> 0.2', require: false - gem "parallel_tests", '= 3.12.1', require: false - gem "pry", '~> 0.10', require: false - gem "simplecov-console", '~> 0.5', require: false - gem "puppet-debugger", '~> 1.0', require: false - gem "rubocop", '~> 1.48.1', require: false - gem "rubocop-performance", '~> 1.16', require: false - gem "rubocop-rspec", '~> 2.19', require: false - gem "rb-readline", '= 0.5.5', require: false, platforms: [:mswin, :mingw, :x64_mingw] - gem "ruby-pwsh", require: false - gem "github_changelog_generator", '= 1.15.2', require: false + gem "json", '= 2.1.0', require: false if Gem::Requirement.create(['>= 2.5.0', '< 2.7.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup)) + gem "json", '= 2.3.0', require: false if Gem::Requirement.create(['>= 2.7.0', '< 3.0.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup)) + gem "json", '= 2.5.1', require: false if Gem::Requirement.create(['>= 3.0.0', '< 3.0.5']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup)) + gem "json", '= 2.6.1', require: false if Gem::Requirement.create(['>= 3.1.0', '< 3.1.3']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup)) + gem "json", '= 2.6.3', require: false if Gem::Requirement.create(['>= 3.2.0', '< 4.0.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup)) + gem "racc", '~> 1.4.0', require: false if Gem::Requirement.create(['>= 2.7.0', '< 3.0.0']).satisfied_by?(Gem::Version.new(RUBY_VERSION.dup)) + gem "deep_merge", '~> 1.2.2', require: false + gem "voxpupuli-puppet-lint-plugins", '~> 5.0', require: false + gem "facterdb", '~> 2.1', require: false + gem "metadata-json-lint", '~> 4.0', require: false + gem "rspec-puppet-facts", '~> 4.0', require: false + gem "dependency_checker", '~> 1.0.0', require: false + gem "parallel_tests", '= 3.12.1', require: false + gem "pry", '~> 0.10', require: false + gem "simplecov-console", '~> 0.9', require: false + gem "puppet-debugger", '~> 1.0', require: false + gem "rubocop", '~> 1.50.0', require: false + gem "rubocop-performance", '= 1.16.0', require: false + gem "rubocop-rspec", '= 2.19.0', require: false + gem "rb-readline", '= 0.5.5', require: false, platforms: [:mswin, :mingw, :x64_mingw] + gem "rexml", '>= 3.3.9', require: false + gem "ruby-pwsh", require: false +end +group :development, :release_prep do + gem "puppet-strings", '~> 4.0', require: false + gem "puppetlabs_spec_helper", '~> 7.0', require: false end group :system_tests do - gem "puppet_litmus", '< 1.0.0', require: false, platforms: [:ruby, :x64_mingw] - gem "serverspec", '~> 2.41', require: false + gem "puppet_litmus", '~> 1.0', require: false, platforms: [:ruby, :x64_mingw] + gem "CFPropertyList", '< 3.0.7', require: false, platforms: [:mswin, :mingw, :x64_mingw] + gem "serverspec", '~> 2.41', require: false end puppet_version = ENV['PUPPET_GEM_VERSION'] diff --git a/README.md b/README.md index 6b0acb9c..663948b4 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,8 @@ * [Console Error Output](#console-error-output) 5. [Reference - An under-the-hood peek at what the module is doing and how](#reference) 5. [Limitations - OS compatibility, etc.](#limitations) -6. [Development - Guide for contributing to the module](#development) +6. [License](#license) +7. [Development - Guide for contributing to the module](#development) ## Overview @@ -248,6 +249,10 @@ Runs the `exec`, unless the command returns 0. Valid options: String. Default: U } ``` +## License + +This codebase is licensed under the Apache2.0 licensing, however due to the nature of the codebase the open source dependencies may also use a combination of [AGPL](https://opensource.org/license/agpl-v3/), [BSD-2](https://opensource.org/license/bsd-2-clause/), [BSD-3](https://opensource.org/license/bsd-3-clause/), [GPL2.0](https://opensource.org/license/gpl-2-0/), [LGPL](https://opensource.org/license/lgpl-3-0/), [MIT](https://opensource.org/license/mit/) and [MPL](https://opensource.org/license/mpl-2-0/) Licensing. + ## Development Puppet modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We can’t access the huge number of platforms and myriad hardware, software, and deployment configurations that Puppet is intended to serve. We want to keep it as easy as possible to contribute changes so that our modules work in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things. For more information, see our [module contribution guide.](https://docs.puppet.com/forge/contributing.html) diff --git a/Rakefile b/Rakefile index 53152e21..77590fe6 100644 --- a/Rakefile +++ b/Rakefile @@ -1,88 +1,9 @@ # frozen_string_literal: true require 'bundler' -require 'puppet_litmus/rake_tasks' if Bundler.rubygems.find_name('puppet_litmus').any? +require 'puppet_litmus/rake_tasks' if Gem.loaded_specs.key? 'puppet_litmus' require 'puppetlabs_spec_helper/rake_tasks' require 'puppet-syntax/tasks/puppet-syntax' -require 'github_changelog_generator/task' if Bundler.rubygems.find_name('github_changelog_generator').any? -require 'puppet-strings/tasks' if Bundler.rubygems.find_name('puppet-strings').any? - -def changelog_user - return unless Rake.application.top_level_tasks.include? "changelog" - returnVal = nil || JSON.load(File.read('metadata.json'))['author'] - raise "unable to find the changelog_user in .sync.yml, or the author in metadata.json" if returnVal.nil? - puts "GitHubChangelogGenerator user:#{returnVal}" - returnVal -end - -def changelog_project - return unless Rake.application.top_level_tasks.include? "changelog" - - returnVal = nil - returnVal ||= begin - metadata_source = JSON.load(File.read('metadata.json'))['source'] - metadata_source_match = metadata_source && metadata_source.match(%r{.*\/([^\/]*?)(?:\.git)?\Z}) - - metadata_source_match && metadata_source_match[1] - end - - raise "unable to find the changelog_project in .sync.yml or calculate it from the source in metadata.json" if returnVal.nil? - - puts "GitHubChangelogGenerator project:#{returnVal}" - returnVal -end - -def changelog_future_release - return unless Rake.application.top_level_tasks.include? "changelog" - returnVal = "v%s" % JSON.load(File.read('metadata.json'))['version'] - raise "unable to find the future_release (version) in metadata.json" if returnVal.nil? - puts "GitHubChangelogGenerator future_release:#{returnVal}" - returnVal -end +require 'puppet-strings/tasks' if Gem.loaded_specs.key? 'puppet-strings' PuppetLint.configuration.send('disable_relative') - - -if Bundler.rubygems.find_name('github_changelog_generator').any? - GitHubChangelogGenerator::RakeTask.new :changelog do |config| - raise "Set CHANGELOG_GITHUB_TOKEN environment variable eg 'export CHANGELOG_GITHUB_TOKEN=valid_token_here'" if Rake.application.top_level_tasks.include? "changelog" and ENV['CHANGELOG_GITHUB_TOKEN'].nil? - config.user = "#{changelog_user}" - config.project = "#{changelog_project}" - config.future_release = "#{changelog_future_release}" - config.exclude_labels = ['maintenance'] - config.header = "# Change log\n\nAll 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)." - config.add_pr_wo_labels = true - config.issues = false - config.merge_prefix = "### UNCATEGORIZED PRS; LABEL THEM ON GITHUB" - config.configure_sections = { - "Changed" => { - "prefix" => "### Changed", - "labels" => ["backwards-incompatible"], - }, - "Added" => { - "prefix" => "### Added", - "labels" => ["enhancement", "feature"], - }, - "Fixed" => { - "prefix" => "### Fixed", - "labels" => ["bug", "documentation", "bugfix"], - }, - } - end -else - desc 'Generate a Changelog from GitHub' - task :changelog do - raise < 1.15' - condition: "Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.3.0')" -EOM - end -end - diff --git a/metadata.json b/metadata.json index 3a5b923d..fbec4c5d 100644 --- a/metadata.json +++ b/metadata.json @@ -1,12 +1,12 @@ { "name": "puppetlabs-powershell", - "version": "6.0.0", + "version": "6.0.1", "author": "puppetlabs", "summary": "Adds a new exec provider for executing PowerShell commands.", "license": "Apache-2.0", "source": "https://github.com/puppetlabs/puppetlabs-powershell", "project_page": "https://github.com/puppetlabs/puppetlabs-powershell", - "issues_url": "https://tickets.puppet.com/browse/MODULES", + "issues_url": "https://github.com/puppetlabs/puppetlabs-powershell/issues", "dependencies": [ { "name": "puppetlabs/pwshlib", @@ -74,7 +74,7 @@ "version_requirement": ">= 7.0.0 < 9.0.0" } ], - "pdk-version": "2.7.0", + "pdk-version": "3.2.0", "template-url": "https://github.com/puppetlabs/pdk-templates.git#main", - "template-ref": "heads/main-0-ge5b0114" + "template-ref": "tags/3.2.0.4-0-g5d17ec1" } diff --git a/provision.yaml b/provision.yaml index cc86b647..f17f2f90 100644 --- a/provision.yaml +++ b/provision.yaml @@ -11,18 +11,18 @@ vagrant: - generic/ubuntu1804 - generic/debian8 - gusztavvargadr/windows-server -travis_deb: +docker_deb: provisioner: docker images: - litmusimage/debian:8 - litmusimage/debian:9 - litmusimage/debian:10 -travis_ub: +docker_ub: provisioner: docker images: - litmusimage/ubuntu:16.04 - litmusimage/ubuntu:18.04 -travis_el7: +docker_el7: provisioner: docker images: - litmusimage/centos:7 diff --git a/spec/default_facts.yml b/spec/default_facts.yml index f777abfc..3346c394 100644 --- a/spec/default_facts.yml +++ b/spec/default_facts.yml @@ -2,7 +2,8 @@ # # Facts specified here will override the values provided by rspec-puppet-facts. --- -ipaddress: "172.16.254.254" -ipaddress6: "FE80:0000:0000:0000:AAAA:AAAA:AAAA" +networking: + ip: "172.16.254.254" + ip6: "FE80:0000:0000:0000:AAAA:AAAA:AAAA" + mac: "AA:AA:AA:AA:AA:AA" is_pe: false -macaddress: "AA:AA:AA:AA:AA:AA" diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 5b1f4faa..ae7c1f68 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -9,23 +9,24 @@ require 'spec_helper_local' if File.file?(File.join(File.dirname(__FILE__), 'spec_helper_local.rb')) -include RspecPuppetFacts # rubocop:disable Style/MixinUsage +include RspecPuppetFacts default_facts = { puppetversion: Puppet.version, - facterversion: Facter.version + facterversion: Facter.version, } default_fact_files = [ File.expand_path(File.join(File.dirname(__FILE__), 'default_facts.yml')), - File.expand_path(File.join(File.dirname(__FILE__), 'default_module_facts.yml')) + File.expand_path(File.join(File.dirname(__FILE__), 'default_module_facts.yml')), ] default_fact_files.each do |f| next unless File.exist?(f) && File.readable?(f) && File.size?(f) begin - default_facts.merge!(YAML.safe_load(File.read(f), [], [], true)) + require 'deep_merge' + default_facts.deep_merge!(YAML.safe_load(File.read(f), permitted_classes: [], permitted_symbols: [], aliases: true)) rescue StandardError => e RSpec.configuration.reporter.message "WARNING: Unable to load #{f}: #{e}" end @@ -33,12 +34,12 @@ # read default_facts and merge them over what is provided by facterdb default_facts.each do |fact, value| - add_custom_fact fact, value + add_custom_fact fact, value, merge_facts: true end RSpec.configure do |c| c.default_facts = default_facts - c.before do + c.before :each do # set to strictest setting for testing # by default Puppet runs at warning level Puppet.settings[:strict] = :warning @@ -51,8 +52,8 @@ # Filter backtrace noise backtrace_exclusion_patterns = [ - /spec_helper/, - /gems/ + %r{spec_helper}, + %r{gems}, ] if c.respond_to?(:backtrace_exclusion_patterns)