consul_export
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -41,3 +41,4 @@ var fs = require('fs'); | ||
if (result.node) { | ||
write_stream.write(util.format('%s\tIN\tA\t%s\n', result.node, result.address)); | ||
write_stream.write(util.format('%s.node\tIN\tA\t%s\n', result.node, result.address)); | ||
write_stream.write(util.format('%s.node.%s\tIN\tA\t%s\n', result.node, result.dc, result.address)); | ||
@@ -47,3 +48,3 @@ var ip_parts_reversed = result.address.split('.').reverse(); | ||
ip_parts_reversed = ip_parts_reversed.join('.'); | ||
reverse_write_stream.write(util.format('%s\tIN\tPTR\t%s.\n', ip_parts_reversed, result.node)); | ||
reverse_write_stream.write(util.format('%s\tIN\tPTR\t%s.node.%s.consul.\n', ip_parts_reversed, result.node, result.dc)); | ||
} | ||
@@ -50,0 +51,0 @@ }); |
@@ -24,2 +24,3 @@ var _ = require('underscore'); | ||
'address': node.Address, | ||
'dc': config.consul.dc | ||
}); | ||
@@ -45,3 +46,4 @@ }); | ||
'address': node.Node.Address, | ||
'address_long': address_long | ||
'address_long': address_long, | ||
'dc': config.consul.dc | ||
}); | ||
@@ -55,3 +57,4 @@ tags_for_node = node.Service.Tags; | ||
'address': node.Node.Address, | ||
'address_long': address_long | ||
'address_long': address_long, | ||
'dc': config.consul.dc | ||
}); | ||
@@ -58,0 +61,0 @@ }); |
{ | ||
"name": "consul_export", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Export information from Consul to be used for disaster recovery.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24111
474