main
David Vargas 2022-11-25 14:47:56 +00:00
parent 03ee3c52f2
commit 2397f20faa
3 changed files with 14 additions and 15 deletions

View File

@ -3,4 +3,4 @@
require_relative "educatic"
filename = File.join(File.dirname(__FILE__), "services.yaml")
Educatic.new(filename).check_services
Educatic.new(filename).check

View File

@ -11,22 +11,28 @@ class Educatic
@services = settings["services"]
end
def check_services
def check
@services.each_pair do |key, value|
puts "==> #{key} [#{value['hetzner']}]"
output = []
cmd = "host #{value['ip']}| grep #{value['hostname']}| wc -l"
counter = %x[#{cmd}].to_i
if counter.zero?
puts " Check this:"
puts " * hostname = #{value['hostname']}"
puts " * ip = #{value['ip']}"
output << " Check this:"
output << " * hostname = #{value['hostname']}"
output << " * ip = #{value['ip']}"
end
unless value['todo'].nil?
puts " TODO:"
output << " TODO:"
value['todo'].each_with_index do |line, index|
puts " #{index + 1}. #{line}"
output << " #{index + 1}. #{line}"
end
end
unless output.size.zero?
puts "==> #{key} [#{value['hetzner']}]"
puts output.join("\n")
end
end
end

View File

@ -2,7 +2,6 @@
TODO:
1. Se propone eliminar la MV o...
2. Cambiar dominio <encanarias.info> a <txs.es>
==> nextcloud [docus]
==> editorcollab [docus]
TODO:
1. Se muestra la página por defecto de Apache2
@ -11,10 +10,6 @@
TODO:
1. Se propone eliminar la MV o...
2. Cambiar <default hostname> a <*.txs.es>
==> jekyll-www [txs]
==> acceso-keycloak [txs]
==> correo [txs]
==> git [txs]
==> pixel [social]
TODO:
1. Se propone eliminar esta MV
@ -32,7 +27,6 @@
1. Se propone eliminar la MV o...
2. Cambiar <default hostname> a <*.txs.es>
3. Duda: Esto no parece ser Mastodon!
==> xmpp.txs.es [social]
==> encanarias [social]
TODO:
1. Dominio antiguo <encanarias.info>
@ -45,4 +39,3 @@
==> cryptpad [ull]
TODO:
1. Había que eliminar esta MV
==> mattermost [ull]