main
David Vargas 2022-11-25 13:12:51 +00:00
parent 8ca847cb57
commit dcb1599503
2 changed files with 9 additions and 1 deletions

View File

@ -6,7 +6,7 @@ settings = YAML.load(File.read(filename))
services = settings["services"] services = settings["services"]
services.each_pair do |key, value| services.each_pair do |key, value|
puts "==> #{key} " puts "==> #{key} [#{value['hetzner']}] "
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?

View File

@ -43,3 +43,11 @@ services:
hetzner: txs hetzner: txs
hostname: git.txs.es hostname: git.txs.es
ip: 78.47.176.180 ip: 78.47.176.180
pixel:
hetzner: social
hostname: pixel.txs.es
ip: 116.202.29.80
blogs:
hetzner: social
hostname: blogs.txs.es
ip: 49.12.44.141