Skip to content

Commit 0a96810

Browse files
committedOct 2, 2024·
Deprecate backend resource
Signed-off-by: Corey Hemminger <[email protected]>
1 parent 0c52874 commit 0a96810

File tree

6 files changed

+15
-49
lines changed

6 files changed

+15
-49
lines changed
 

‎.github/workflows/ci.yml

+2-41
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ jobs:
2222
- centos-7
2323
- centos-8
2424
- almalinux-8
25-
# - almalinux-9 # TODO: uncomment this when almalinux-9 dokken image is fixed
26-
- ubuntu-1804
25+
- almalinux-9
2726
- ubuntu-2004
2827
- ubuntu-2204
28+
- ubuntu-2404
2929
suite:
3030
- chef-workstation
3131
- inspec
@@ -62,44 +62,6 @@ jobs:
6262
CHEF_LICENSE: accept-no-persist
6363
KITCHEN_LOCAL_YAML: kitchen.dokken.yml
6464

65-
66-
integration-windows-2016:
67-
runs-on: windows-2016
68-
strategy:
69-
matrix:
70-
os:
71-
- windows-2016
72-
suite:
73-
- chef-workstation
74-
- inspec
75-
fail-fast: false
76-
steps:
77-
- name: Check windows Version
78-
run: systeminfo
79-
- name: Check out code
80-
uses: actions/checkout@main
81-
- name: Install Chef
82-
uses: actionshub/chef-install@main
83-
- name: Test-Kitchen Converge
84-
uses: actionshub/test-kitchen@main
85-
with:
86-
suite: ${{ matrix.suite }}
87-
os: ${{ matrix.os }}
88-
action: converge
89-
env:
90-
CHEF_LICENSE: accept-no-persist
91-
KITCHEN_LOCAL_YAML: kitchen.exec.yml
92-
continue-on-error: false
93-
- name: Test-Kitchen Verify
94-
uses: actionshub/test-kitchen@main
95-
with:
96-
suite: ${{ matrix.suite }}
97-
os: ${{ matrix.os }}
98-
action: verify
99-
env:
100-
CHEF_LICENSE: accept-no-persist
101-
KITCHEN_LOCAL_YAML: kitchen.exec.yml
102-
10365
integration-windows-2019:
10466
runs-on: windows-2019
10567
strategy:
@@ -219,7 +181,6 @@ jobs:
219181
- jsonlint
220182
- cookstylelint
221183
- integration-dokken
222-
- integration-windows-2016
223184
- integration-windows-2019
224185
- integration-windows-2022
225186
- integration-macos-latest

‎CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
This file is used to list changes made in each version of the chef-ingredient cookbook.
44

5+
## 3.5.1 (2024-10-02)
6+
7+
- Add deprecation warning log notice for chef backend resource
8+
59
## 3.5.0 (2022-07-28)
610

711
- Added attribute to specify mixlib-install version, defaults to nil to install latest version - [@stromweld](https://github.com/stromweld)

‎kitchen.dokken.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -66,23 +66,23 @@ platforms:
6666
image: dokken/fedora-latest
6767
pid_one_command: /usr/lib/systemd/systemd
6868

69-
- name: ubuntu-18.04
69+
- name: ubuntu-20.04
7070
driver:
71-
image: dokken/ubuntu-18.04
71+
image: dokken/ubuntu-20.04
7272
pid_one_command: /bin/systemd
7373
intermediate_instructions:
7474
- RUN /usr/bin/apt-get update
7575

76-
- name: ubuntu-20.04
76+
- name: ubuntu-22.04
7777
driver:
78-
image: dokken/ubuntu-20.04
78+
image: dokken/ubuntu-22.04
7979
pid_one_command: /bin/systemd
8080
intermediate_instructions:
8181
- RUN /usr/bin/apt-get update
8282

83-
- name: ubuntu-22.04
83+
- name: ubuntu-24.04
8484
driver:
85-
image: dokken/ubuntu-22.04
85+
image: dokken/ubuntu-24.04
8686
pid_one_command: /bin/systemd
8787
intermediate_instructions:
8888
- RUN /usr/bin/apt-get update

‎metadata.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
maintainer_email 'cookbooks@chef.io'
44
license 'Apache-2.0'
55
description 'Primitives for managing Chef products and packages'
6-
version '3.5.0'
6+
version '3.5.1'
77

88
%w(amazon centos redhat scientific oracle fedora debian ubuntu).each do |os|
99
supports os

‎resources/automatev2.rb

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
not_if { FileTest.file?(bin_path) }
3838
end
3939

40-
## TODO: add dependancy on sysctl cookbook unless chef-client v14.0+
4140
sysctl 'vm.max_map_count' do
4241
value 262144
4342
end

‎resources/backend.rb

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
action :create do
4646
raise 'Must accept the Chef License agreement before continuing.' unless new_resource.accept_license
4747

48+
Chef::Log.warn('The chef_backend resource is deprecated in favor of Automate HA')
49+
4850
new_resource.config = ensurekv(new_resource.config, publish_address: new_resource.publish_address)
4951
chef_ingredient 'chef-backend' do
5052
action :upgrade

0 commit comments

Comments
 (0)
Please sign in to comment.