+++ /dev/null
-~FC001
-~FC003
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
action :install do
declare_resource :package, package_name unless installed?
- if new_resource.conf # ~FC023
+ if new_resource.conf
template available_name("conf") do
source new_resource.conf
owner "root"
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
-~FC074
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC003
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC003
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC034
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC003
-~FC064
-~FC065
-~FC066
-~FC071
end
end
-if node[:exim][:smarthost_via] # ~FC023
+if node[:exim][:smarthost_via]
firewall_rule "deny-outbound-smtp" do
action :reject
source "fw"
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC003
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC003
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC005
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC003
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC003
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC003
-~FC019
-~FC064
-~FC065
-~FC066
-~FC071
mode 0o755
end
-forwarders = search(:node, "recipes:logstash\\:\\:forwarder") # ~FC010
+forwarders = search(:node, "recipes:logstash\\:\\:forwarder")
forwarders.sort_by { |n| n[:fqdn] }.each do |forwarder|
forwarder.interfaces(:role => :external) do |interface|
end
end
-gateways = search(:node, "roles:gateway") # ~FC010
+gateways = search(:node, "roles:gateway")
gateways.sort_by { |n| n[:fqdn] }.each do |gateway|
gateway.interfaces(:role => :external) do |interface|
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC021
-~FC064
-~FC065
-~FC066
-~FC071
end
end
- if new_resource.template # ~FC023
+ if new_resource.template
declare_resource :template, "#{mediawiki_directory}/LocalSettings.d/Ext-#{new_resource.extension}.inc.php" do
cookbook new_resource.template_cookbook
source new_resource.template
end
# MobileFrontend extension is required by MinervaNeue skin
- mediawiki_extension "MobileFrontend" do # ~FC005
+ mediawiki_extension "MobileFrontend" do
site new_resource.site
template "mw-ext-MobileFrontend.inc.php.erb"
end
# MobileFrontend extension is required by MinervaNeue skin
- mediawiki_skin "MinervaNeue" do # ~FC005
+ mediawiki_skin "MinervaNeue" do
site new_resource.site
update_site false
legacy false
end
end
- if new_resource.template # ~FC023
+ if new_resource.template
declare_resource :template, "#{mediawiki_directory}/LocalSettings.d/Skin-#{new_resource.skin}.inc.php" do
cookbook "mediawiki"
source new_resource.template
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC003
-~FC005
-~FC064
-~FC065
-~FC066
-~FC071
supports :status => true, :restart => true, :reload => true
end
-servers = search(:node, "recipes:munin\\:\\:server") # ~FC010
+servers = search(:node, "recipes:munin\\:\\:server")
servers.each do |server|
server.interfaces(:role => :external) do |interface|
end
end
-munin_plugin "hpasmcli_temp" do # ~FC005
+munin_plugin "hpasmcli_temp" do
action :delete
end
expiry_time = 14 * 86400
-clients = search(:node, "recipes:munin\\:\\:default").sort_by(&:name) # ~FC010
-frontends = search(:node, "recipes:web\\:\\:frontend").reject { |n| Time.now - Time.at(n[:ohai_time]) > expiry_time }.map(&:name).sort # ~FC010
-backends = search(:node, "recipes:web\\:\\:backend").reject { |n| Time.now - Time.at(n[:ohai_time]) > expiry_time }.map(&:name).sort # ~FC010
+clients = search(:node, "recipes:munin\\:\\:default").sort_by(&:name)
+frontends = search(:node, "recipes:web\\:\\:frontend").reject { |n| Time.now - Time.at(n[:ohai_time]) > expiry_time }.map(&:name).sort
+backends = search(:node, "recipes:web\\:\\:backend").reject { |n| Time.now - Time.at(n[:ohai_time]) > expiry_time }.map(&:name).sort
tilecaches = search(:node, "roles:tilecache").reject { |n| Time.now - Time.at(n[:ohai_time]) > expiry_time }.sort_by(&:name).map do |n|
{ :name => n.name.split(".").first, :interface => n.interfaces(:role => :external).first[:interface].tr(".", "_") }
end
to target_path
end
- if new_resource.conf # ~FC023
+ if new_resource.conf
munin_plugin_conf new_resource.plugin do
cookbook new_resource.conf_cookbook
template new_resource.conf
action :delete
end
- if new_resource.conf # ~FC023
+ if new_resource.conf
munin_plugin_conf new_resource.plugin do
action :delete
restart_munin false
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC003
-~FC015
-~FC064
-~FC065
-~FC066
-~FC071
next unless gateway[:openvpn]
gateway[:openvpn][:tunnels].each_value do |tunnel|
- if tunnel[:peer][:address] # ~FC023
+ if tunnel[:peer][:address]
route tunnel[:peer][:address] do
netmask "255.255.255.255"
gateway interface[:gateway]
+++ /dev/null
-~FC001
-~FC003
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC003
-~FC064
-~FC065
-~FC066
-~FC071
end
end
-if node[:nominatim][:state] == "master" # ~FC023
+if node[:nominatim][:state] == "master"
postgresql_user "replication" do
cluster node[:nominatim][:dbcluster]
password data_bag_item("nominatim", "passwords")["replication"]
:log_file => "#{node[:nominatim][:logdir]}/query.log"
end
-if node[:nominatim][:flatnode_file] # ~FC023
+if node[:nominatim][:flatnode_file]
directory File.dirname(node[:nominatim][:flatnode_file]) do
recursive true
end
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC003
-~FC064
-~FC065
-~FC066
-~FC071
end
keys = {
- "ssh-rsa" => node[:keys][:ssh][:host_rsa_public], # ~FC039
- "ssh-dss" => node[:keys][:ssh][:host_dsa_public] # ~FC039
+ "ssh-rsa" => node[:keys][:ssh][:host_rsa_public],
+ "ssh-dss" => node[:keys][:ssh][:host_dsa_public]
}
- if node[:keys][:ssh][:host_ecdsa_public] # ~FC039
- ecdsa_type = node[:keys][:ssh][:host_ecdsa_type] # ~FC039
+ if node[:keys][:ssh][:host_ecdsa_public]
+ ecdsa_type = node[:keys][:ssh][:host_ecdsa_type]
- keys[ecdsa_type] = node[:keys][:ssh][:host_ecdsa_public] # ~FC039
+ keys[ecdsa_type] = node[:keys][:ssh][:host_ecdsa_public]
end
- if node[:keys][:ssh][:host_ed25519_public] # ~FC039
- keys["ssh-ed25519"] = node[:keys][:ssh][:host_ed25519_public] # ~FC039
+ if node[:keys][:ssh][:host_ed25519_public]
+ keys["ssh-ed25519"] = node[:keys][:ssh][:host_ed25519_public]
end
Hash[
+++ /dev/null
-~FC001
-~FC003
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC003
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC003
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC003
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC003
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC003
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC003
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC015
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC064
-~FC065
-~FC066
-~FC071
+++ /dev/null
-~FC001
-~FC021
-~FC064
-~FC065
-~FC066
-~FC071