Skip to content

Commit

Permalink
anchor function removal
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasAud committed Dec 22, 2022
1 parent aa24044 commit a28808d
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 18 deletions.
1 change: 0 additions & 1 deletion .puppet-lint.rc
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
--relative
--no-anchor_resource-check
2 changes: 0 additions & 2 deletions .sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ Gemfile:
- gem: github_changelog_generator
Rakefile:
changelog_user: puppetlabs
extra_disabled_lint_checks:
- anchor_resource
spec/spec_helper.rb:
mock_with: ":rspec"
coverage_report: true
Expand Down
1 change: 0 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ def changelog_future_release
end

PuppetLint.configuration.send('disable_relative')
PuppetLint.configuration.send('disable_anchor_resource')

if Bundler.rubygems.find_name('github_changelog_generator').any?
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
Expand Down
14 changes: 0 additions & 14 deletions manifests/instance.pp
Original file line number Diff line number Diff line change
Expand Up @@ -234,18 +234,4 @@
service_options => $service_options,
sysconfig_options => $sysconfig_options,
}

if $package_ensure == 'absent' or $package_ensure == 'purged' {
anchor { "${title}::haproxy::begin": }
~> Haproxy::Service[$title]
-> Haproxy::Config[$title]
-> Haproxy::Install[$title]
-> anchor { "${title}::haproxy::end": }
} else {
anchor { "${title}::haproxy::begin": }
-> Haproxy::Install[$title]
-> Haproxy::Config[$title]
~> Haproxy::Service[$title]
-> anchor { "${title}::haproxy::end": }
}
}

0 comments on commit a28808d

Please sign in to comment.