main
David Vargas 2022-11-25 12:36:23 +00:00
parent 674a24a19e
commit 23e3ca6a1d
2 changed files with 14 additions and 9 deletions

View File

@ -6,14 +6,13 @@ settings = YAML.load(File.read(filename))
services = settings["services"] services = settings["services"]
services.each_pair do |key, value| services.each_pair do |key, value|
print "==> #{key} " puts "==> #{key} "
cmd = "host #{value['ip']}| grep #{value['hostname']}| wc -l" cmd = "host #{value['ip']}| grep #{value['hostname']}| wc -l"
counter = %x[#{cmd}].to_i counter = %x[#{cmd}].to_i
if counter.zero? if counter.zero?
puts "(ERROR: IP <=> hostname)" puts " Check this:"
puts " hostname = #{value['hostname']}" puts " * hostname = #{value['hostname']}"
puts " ip = #{value['ip']}" puts " * ip = #{value['ip']}"
else
puts "(Ok)"
end end
puts " TODO: #{value['todo']}" if value['todo']
end end

View File

@ -1,6 +1,6 @@
services: services:
mini: mini:
state: revise todo: Eliminar la MV
hetzner: docus hetzner: docus
hostname: editor.educar.encanarias.info hostname: editor.educar.encanarias.info
ip: 78.46.183.113 ip: 78.46.183.113
@ -19,18 +19,24 @@ services:
- Documentos en la nube - Documentos en la nube
- Collabora - Collabora
mailu19: mailu19:
todo: No tiene nombre DNS asignado a la IP
hetzner: txs hetzner: txs
hostname: mailugit.txs.es hostname: static.18.144.90.157.clients.your-server.de1
ip: 78.47.176.180 ip: 157.90.144.18
jekyll-www: jekyll-www:
state: revise
hetzner: txs
hostname: www.txs.es hostname: www.txs.es
ip: 142.132.231.21 ip: 142.132.231.21
acceso-keycloak: acceso-keycloak:
hetzner: txs
hostname: acceso.txs.es hostname: acceso.txs.es
ip: 138.201.157.15 ip: 138.201.157.15
correo: correo:
hetzner: txs
hostname: correo.txs.es hostname: correo.txs.es
ip: 88.99.189.54 ip: 88.99.189.54
git: git:
hetzner: txs
hostname: git.txs.es hostname: git.txs.es
ip: 78.47.176.180 ip: 78.47.176.180