[U] .
parent
8ca847cb57
commit
dcb1599503
|
@ -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?
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue