Skip to content

Commit 7cceb77

Browse files
committed
Remove hook name change cleanup code
1 parent 9cb096d commit 7cceb77

File tree

3 files changed

+1
-151
lines changed

3 files changed

+1
-151
lines changed

cookbooks/boxcutter_chef/files/config/attribute-changed-handler.rb

Lines changed: 0 additions & 31 deletions
This file was deleted.

cookbooks/boxcutter_chef/files/config/resource-updated-handler.rb

Lines changed: 0 additions & 28 deletions
This file was deleted.

cookbooks/boxcutter_chef/recipes/cinc_client.rb

Lines changed: 1 addition & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Cookbook:: boxcutter_chef
33
# Recipe:: cinc_client
44
#
5-
# Copyright:: 2024, Boxcutter
5+
# Copyright:: 2024-present, Taylor.dev, LLC
66
#
77
# Licensed under the Apache License, Version 2.0 (the "License");
88
# you may not use this file except in compliance with the License.
@@ -22,82 +22,6 @@
2222
node.default['boxcutter_chef']['cinc_client']['manage_packages'] = false
2323
end
2424

25-
# case node['platform']
26-
# when 'ubuntu'
27-
# case node['kernel']['machine']
28-
# when 'x86_64', 'amd64'
29-
# package_info = value_for_platform(
30-
# 'ubuntu' => {
31-
# '20.04' => {
32-
# 'url' => 'https://downloads.cinc.sh/files/stable/cinc/18.6.2/ubuntu/20.04/cinc_18.6.2-1_amd64.deb',
33-
# 'checksum' => '0547888512fdb96a823933bc339ebb28f85796e2ceffae4922cf5e7ee26f094b',
34-
# },
35-
# '22.04' => {
36-
# 'url' => 'https://downloads.cinc.sh/files/stable/cinc/18.6.2/ubuntu/22.04/cinc_18.6.2-1_amd64.deb',
37-
# 'checksum' => '043c2cb693d1b6038a3341b471efdb5726d7b08c55f4835a1fb59a6a7f1fba21',
38-
# },
39-
# '24.04' => {
40-
# 'url' => 'https://downloads.cinc.sh/files/stable/cinc/18.6.2/ubuntu/24.04/cinc_18.6.2-1_amd64.deb',
41-
# 'checksum' => '48d4e2f5a5befd6a18a90c7dc05aa038a5032825b048e5614dec0e0e83eca42c',
42-
# },
43-
# },
44-
# )
45-
# when 'aarch64', 'arm64'
46-
# package_info = value_for_platform(
47-
# 'ubuntu' => {
48-
# '20.04' => {
49-
# 'url' => 'https://downloads.cinc.sh/files/stable/cinc/18.6.2/ubuntu/20.04/cinc_18.6.2-1_arm64.deb',
50-
# 'checksum' => 'f3181b8fcf7aee139b317c152e7c2b2a564b8024faa58e568e897ad01bdff782',
51-
# },
52-
# '22.04' => {
53-
# 'url' => 'https://downloads.cinc.sh/files/stable/cinc/18.6.2/ubuntu/22.04/cinc_18.6.2-1_arm64.deb',
54-
# 'checksum' => 'a7404177b1bca4eae8b6e79992e6c68606d0da545604635a074cc52ab42dce24',
55-
# },
56-
# '24.04' => {
57-
# 'url' => 'https://downloads.cinc.sh/files/stable/cinc/18.6.2/ubuntu/24.04/cinc_18.6.2-1_arm64.deb',
58-
# 'checksum' => 'f36a1b948f0a3559a7eb4ee60c5512586a961c315f135f281faa7f15623ba560',
59-
# },
60-
# },
61-
# )
62-
# end
63-
# when 'centos'
64-
# case node['kernel']['machine']
65-
# when 'x86_64', 'amd64'
66-
# package_info = value_for_platform(
67-
# 'centos' => {
68-
# '9' => {
69-
# 'url' => 'https://downloads.cinc.sh/files/stable/cinc/18.6.2/el/9/cinc-18.6.2-1.el9.x86_64.rpm',
70-
# 'checksum' => '26ebe3eeb91121def370c44414394fc9a396359c285df6e6a561cfd251cd20f6',
71-
# },
72-
# '10' => {
73-
# 'url' => 'https://downloads.cinc.sh/files/stable/cinc/18.6.2/el/10/cinc-18.6.2-1.el10.x86_64.rpm',
74-
# 'checksum' => '3cb1ca62a4fd603f6ee9f8728f04416b3a3226099c6332790357d909936733d5',
75-
# },
76-
# },
77-
# )
78-
# when 'aarch64', 'arm64'
79-
# package_info = value_for_platform(
80-
# 'centos' => {
81-
# '9' => {
82-
# 'url' => 'https://downloads.cinc.sh/files/stable/cinc/18.6.2/el/9/cinc-18.6.2-1.el9.aarch64.rpm',
83-
# 'checksum' => '3c9091f1f81e7e57410c9d0043fede5c9bc5748d1c204e74b553f726435cf0d2',
84-
# },
85-
# '10' => {
86-
# 'url' => 'https://downloads.cinc.sh/files/stable/cinc/18.6.2/el/10/cinc-18.6.2-1.el10.aarch64.rpm',
87-
# 'checksum' => 'fa45d047567ebe4ff40d728f586264fc3e0d42c24545f635dcd001bae850b447',
88-
# },
89-
# },
90-
# )
91-
# end
92-
# end
93-
94-
# local_path = ::File.join(Chef::Config[:file_cache_path], ::File.basename(package_info['url']))
95-
#
96-
# remote_file local_path do
97-
# source package_info['url']
98-
# checksum package_info['checksum']
99-
# end
100-
10125
remote_file 'cinc_installer' do
10226
path lazy {
10327
::File.join(Chef::Config[:file_cache_path], ::File.basename(node['boxcutter_chef']['cinc_client']['source']))
@@ -194,21 +118,6 @@
194118
mode '0644'
195119
end
196120

197-
cookbook_file "#{config_dir}/handlers/attribute-changed-handler.rb" do
198-
action :delete
199-
end
200-
201-
# cookbook_file "#{config_dir}/handlers/resource-updated-handler.rb" do
202-
# source 'config/resource-updated-handler.rb'
203-
# owner 'root'
204-
# group 'root'
205-
# mode '0644'
206-
# end
207-
208-
cookbook_file "#{config_dir}/handlers/resource-updated-handler.rb" do
209-
action :delete
210-
end
211-
212121
template "#{config_dir}/client-prod.rb" do
213122
source 'client-prod.rb.erb'
214123
cookbook 'boxcutter_chef'

0 commit comments

Comments
 (0)