]> git.openstreetmap.org Git - chef.git/commitdiff
Drop incron support
authorTom Hughes <tom@compton.nu>
Fri, 24 Mar 2023 16:50:55 +0000 (16:50 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 24 Mar 2023 16:50:55 +0000 (16:50 +0000)
.github/workflows/test-kitchen.yml
.kitchen.yml
cookbooks/incron/README.md [deleted file]
cookbooks/incron/attributes/default.rb [deleted file]
cookbooks/incron/metadata.rb [deleted file]
cookbooks/incron/recipes/default.rb [deleted file]
test/integration/incron/serverspec/incron_spec.rb [deleted file]

index 1d3f1afb4c18b4aa40822c9fe88c982a8ba9875d..7159b11deebb60cdcb2c7a401a466393a042ceca 100644 (file)
@@ -53,7 +53,6 @@ jobs:
           - gps-tile
           - hardware
           - hot
-          - incron
           - irc
           - kibana
           - letsencrypt
index fae5dcfcce2d211ade072e30484c3fd7808833d8..9b18826f2bf3adea6b7f01b392065c6cefb19deb 100644 (file)
@@ -185,9 +185,6 @@ suites:
   - name: hot
     run_list:
       - recipe[hot::default]
-  - name: incron
-    run_list:
-      - recipe[incron::default]
   - name: irc
     run_list:
       - recipe[irc::default]
diff --git a/cookbooks/incron/README.md b/cookbooks/incron/README.md
deleted file mode 100644 (file)
index 095b006..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-# incron Cookbook
-
-This cookbook installs incron, an inotify-based cron.
diff --git a/cookbooks/incron/attributes/default.rb b/cookbooks/incron/attributes/default.rb
deleted file mode 100644 (file)
index 4d2ce58..0000000
+++ /dev/null
@@ -1 +0,0 @@
-default[:incron] = {}
diff --git a/cookbooks/incron/metadata.rb b/cookbooks/incron/metadata.rb
deleted file mode 100644 (file)
index b2ab678..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-name              "incron"
-maintainer        "OpenStreetMap Administrators"
-maintainer_email  "admins@openstreetmap.org"
-license           "Apache-2.0"
-description       "Configures incron"
-
-version           "1.0.0"
-supports          "ubuntu"
diff --git a/cookbooks/incron/recipes/default.rb b/cookbooks/incron/recipes/default.rb
deleted file mode 100644 (file)
index 4c785d1..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-#
-# Cookbook:: incron
-# Recipe:: default
-#
-# Copyright:: 2014, OpenStreetMap Foundation
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#     https://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-package "incron"
-
-service "incron" do
-  action [:enable, :start]
-  supports :status => true, :reload => true, :restart => true
-end
-
-incrontabs = {}
-
-node[:incron].each_value do |details|
-  user = details[:user]
-  path = details[:path]
-  mask = details[:events].join(",")
-  command = details[:command]
-
-  incrontabs[user] ||= []
-
-  incrontabs[user].push("#{path} #{mask} #{command}")
-end
-
-incrontabs.each do |user, lines|
-  file "/var/spool/incron/#{user}" do
-    owner user
-    group "incron"
-    mode "600"
-    content lines.join("\n")
-  end
-end
-
-file "/etc/incron.allow" do
-  owner "root"
-  group "incron"
-  mode "0640"
-  content incrontabs.keys.sort.join("\n")
-end
diff --git a/test/integration/incron/serverspec/incron_spec.rb b/test/integration/incron/serverspec/incron_spec.rb
deleted file mode 100644 (file)
index 8f514be..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-require "serverspec"
-
-# Required by serverspec
-set :backend, :exec
-
-describe package("incron") do
-  it { should be_installed }
-end
-
-describe service("incron") do
-  it { should be_enabled }
-  it { should be_running }
-end