main
David Vargas 2022-12-01 14:09:51 +00:00
parent 821a163b48
commit 257f0ea6f1
4 changed files with 12 additions and 16 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/env ruby
require_relative "educatic"
require_relative "lib/educatic"
filename = File.join(File.dirname(__FILE__), "services.yaml")
Educatic.new(filename).check

View File

@ -14,6 +14,7 @@ class Educatic
def check
@services.each_pair do |key, value|
output = []
todo = value['todo'] || []
cmd = "host #{value['ip']}| grep #{value['hostname']}| wc -l"
counter = %x[#{cmd}].to_i
@ -22,9 +23,17 @@ class Educatic
output << " * hostname = #{value['hostname']}"
output << " * ip = #{value['ip']}"
end
if (value['hostname'].end_with? ".info" or value['hostname'].end_with? "clients.your-server.de")
todo << "Cambiar <#{value['hostname']}> el dominio @txs.es"
end
if value['hostname'].start_with? "staticeducar.info"
todo << "Cambiar <#{value['hostname']}> el dominio @txs.es"
end
unless value['todo'].nil?
output << " TODO:"
value['todo'].each_with_index do |line, index|
todo.each_with_index do |line, index|
output << " #{index + 1}. #{line}"
end
end

View File

@ -6,7 +6,6 @@ services:
todo:
- Se propone eliminar la MV o...
- Cambiar http por https
- Cambiar dominio <encanarias.info> a <txs.es>
nextcloud:
hetzner: docus
hostname: docs.txs.es
@ -32,7 +31,6 @@ services:
ip: 157.90.144.18
todo:
- Se propone eliminar la MV o...
- Cambiar <default hostname> a <*.txs.es>
jekyll-www:
state: revise
hetzner: txs
@ -69,15 +67,11 @@ services:
hostname: tuvideo.encanarias.info
ip: 116.203.254.222
desc: Peertube
todo:
- Cambiar dominio de <encanarias.info> a <txs.es>
micanal:
hetzner: social
hostname: micanal.encanarias.info
ip: 188.34.188.55
desc: Peertubte
todo:
- Cambiar dominio de <encanarias.info> a <txs.es>
txs:
hetzner: social
hostname: static.192.237.46.78.clients.your-server.de
@ -85,7 +79,6 @@ services:
desc: Mastodon?
todo:
- Se propone eliminar la MV o...
- Cambiar <default hostname> a <*.txs.es>
- "Duda: Esto no parece ser Mastodon!"
xmpp.txs.es:
hetzner: social
@ -97,22 +90,16 @@ services:
hostname: encanarias.info
ip: 78.47.122.22
desc: Diaspora viejo. Red social
todo:
- Dominio antiguo <encanarias.info>
bbbold:
hetzner: ull
hostname: static.19.113.69.159.clients.your-server.de
ip: 159.69.113.19
desc: BBB
todo:
- Cambiar <default hostname> a <*.txs.es>
bbb:
hetzner: ull
hostname: bbb.educar.encanarias.info
ip: 49.12.216.60
desc: BBB
todo:
- Dominio antiguo <encanarias.info>
cryptpad:
hetzner: ull
hostname: cryptpad.txs.es

View File

@ -1,6 +1,6 @@
#!/usr/bin/env ruby
require_relative "educatic"
require_relative "lib/educatic"
filename = File.join(File.dirname(__FILE__), "services.yaml")
Educatic.new(filename).urls