Consul

48 views
Skip to first unread message

Евгений Авдюхин

unread,
Jan 22, 2018, 3:01:16 AM1/22/18
to Consul
Hey guys!

In our company we have different environent like production,devolopment and test. So we are integrating consul to all these environments. Have anyone tried some king of script to automatically import data from , for example, test environment to production?
Will be grateful for any help.

Edgaras Apšega

unread,
Jan 22, 2018, 9:36:20 AM1/22/18
to Consul
Hey,

In our case, we have different clusters for different environments and that's probably the best way of doing it. Couldn't think of any use case to replicate all the data for different tiers.

Евгений Авдюхин

unread,
Jan 22, 2018, 9:42:32 AM1/22/18
to Consul
Than you for your reply,but it happends that we need some kind of a walkaround. I am now trying some bash cript with curl usage... but it takes so much time to understand. For example in 1 curl get request, i cant use 2 parameters recurent and raw.. maybe i am doing it wrond? 
curl \
--request GET \

понедельник, 22 января 2018 г., 17:36:20 UTC+3 пользователь Edgaras Apšega написал:

James Phillips

unread,
Feb 2, 2018, 3:30:17 PM2/2/18
to consu...@googlegroups.com
We definitely recommend running different clusters for different
environments. For KV you can use something like consul-replicate to
copy selected data between environments:

https://github.com/hashicorp/consul-replicate

For one off exports/imports there's Consul's kv command which can
import/export subtrees:

https://www.consul.io/docs/commands/kv.html

Finally, you can ingress KV from Git into multiple environments with a
tool like this:

https://github.com/breser/git2consul

-- James
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in violation
> of those guidelines may result in your removal from this mailing list.
>
> GitHub Issues: https://github.com/hashicorp/consul/issues
> IRC: #consul on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Consul" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to consul-tool...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/consul-tool/9c5b5ecb-e0cb-48d2-a63d-b6770af007b1%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages