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 #!/usr/bin/env ruby
require_relative "educatic" require_relative "lib/educatic"
filename = File.join(File.dirname(__FILE__), "services.yaml") filename = File.join(File.dirname(__FILE__), "services.yaml")
Educatic.new(filename).check Educatic.new(filename).check

View File

@ -14,6 +14,7 @@ class Educatic
def check def check
@services.each_pair do |key, value| @services.each_pair do |key, value|
output = [] output = []
todo = value['todo'] || []
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
@ -22,9 +23,17 @@ class Educatic
output << " * hostname = #{value['hostname']}" output << " * hostname = #{value['hostname']}"
output << " * ip = #{value['ip']}" output << " * ip = #{value['ip']}"
end 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? unless value['todo'].nil?
output << " TODO:" output << " TODO:"
value['todo'].each_with_index do |line, index| todo.each_with_index do |line, index|
output << " #{index + 1}. #{line}" output << " #{index + 1}. #{line}"
end end
end end

View File

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

View File

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