Re: JNS: Juju Name Server
On Tue, Jan 5, 2016 at 4:01 AM Matthew Williams < matthew.willi...@canonical.com> wrote: > That's an awesome idea and tool Andrew thanks for sharing. Any plans for > turning it into a charm? Would only take moments with the go binary charm > layer > We have a set of DNS charms to actually tie your services to a DNS server for resolution of services. https://jujucharms.com/u/zoology/dns/trusty/2 Marco -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
Re: JNS: Juju Name Server
Thanks for this show and tell! I think this might solve some problems I'm having. I'll look into this, if it is usefull to me I'll take a look at charming it... Op dinsdag 5 januari 2016 heeft Andrew Wilkins het volgende geschreven: > Hi, > A little while ago, I found myself wanting to address a service by its Juju name, but outside of Juju. I didn't want to be tied to an IP/host name, because they might change; I didn't want to be tied to any one cloud provider; and I wanted it to work across environments. > So I wrote a little DNS server that resolves Juju entity names to IP addresses. It's called "jns", Juju Name Server. You can find it here: > https://github.com/axw/jns > (go get github.com/axw/jns) > > Names take one of the following forms: > 0.juju# machine 0 > machine-0-lxc-0.juju # machine 0/lxc/0 > mysql.juju # IP address of a random unit of the mysql service > unit-mysql-0.juju # IP address of mysql/0 > In the above forms, the entity is within the current environment. If you want to resolve the address of an entity in another environment, you can precede ".juju" with the name of the environment. e.g. > mysql.prod.juju > mysql.dev.juju > etc. > Enjoy. > > Cheers, > Andrew -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
Re: JNS: Juju Name Server
On Tue, Jan 5, 2016 at 5:00 PM Matthew Williams < matthew.willi...@canonical.com> wrote: > That's an awesome idea and tool Andrew thanks for sharing. Any plans for > turning it into a charm? Would only take moments with the go binary charm > layer > For my needs that would be counter-productive, I specifically want it to exist outside Juju. I'm not likely to create a charm it. It would need additional work, too, because JNS requires the Juju client credentials to exist (though I think there's a charm layer for things that need that). Cheers, Andrew > Matty > On 5 Jan 2016 08:13, "Andrew Wilkins" > wrote: > >> Hi, >> >> A little while ago, I found myself wanting to address a service by its >> Juju name, but outside of Juju. I didn't want to be tied to an IP/host >> name, because they might change; I didn't want to be tied to any one cloud >> provider; and I wanted it to work across environments. >> >> So I wrote a little DNS server that resolves Juju entity names to IP >> addresses. It's called "jns", Juju Name Server. You can find it here: >> https://github.com/axw/jns >> (go get github.com/axw/jns) >> >> Names take one of the following forms: >> 0.juju# machine 0 >> machine-0-lxc-0.juju # machine 0/lxc/0 >> mysql.juju # IP address of a random unit of the mysql >> service >> unit-mysql-0.juju # IP address of mysql/0 >> >> In the above forms, the entity is within the current environment. If you >> want to resolve the address of an entity in another environment, you can >> precede ".juju" with the name of the environment. e.g. >> mysql.prod.juju >> mysql.dev.juju >> etc. >> >> Enjoy. >> >> Cheers, >> Andrew >> >> -- >> Juju mailing list >> Juju@lists.ubuntu.com >> Modify settings or unsubscribe at: >> https://lists.ubuntu.com/mailman/listinfo/juju >> >> -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
Re: JNS: Juju Name Server
That's an awesome idea and tool Andrew thanks for sharing. Any plans for turning it into a charm? Would only take moments with the go binary charm layer Matty On 5 Jan 2016 08:13, "Andrew Wilkins" wrote: > Hi, > > A little while ago, I found myself wanting to address a service by its > Juju name, but outside of Juju. I didn't want to be tied to an IP/host > name, because they might change; I didn't want to be tied to any one cloud > provider; and I wanted it to work across environments. > > So I wrote a little DNS server that resolves Juju entity names to IP > addresses. It's called "jns", Juju Name Server. You can find it here: > https://github.com/axw/jns > (go get github.com/axw/jns) > > Names take one of the following forms: > 0.juju# machine 0 > machine-0-lxc-0.juju # machine 0/lxc/0 > mysql.juju # IP address of a random unit of the mysql > service > unit-mysql-0.juju # IP address of mysql/0 > > In the above forms, the entity is within the current environment. If you > want to resolve the address of an entity in another environment, you can > precede ".juju" with the name of the environment. e.g. > mysql.prod.juju > mysql.dev.juju > etc. > > Enjoy. > > Cheers, > Andrew > > -- > Juju mailing list > Juju@lists.ubuntu.com > Modify settings or unsubscribe at: > https://lists.ubuntu.com/mailman/listinfo/juju > > -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
JNS: Juju Name Server
Hi, A little while ago, I found myself wanting to address a service by its Juju name, but outside of Juju. I didn't want to be tied to an IP/host name, because they might change; I didn't want to be tied to any one cloud provider; and I wanted it to work across environments. So I wrote a little DNS server that resolves Juju entity names to IP addresses. It's called "jns", Juju Name Server. You can find it here: https://github.com/axw/jns (go get github.com/axw/jns) Names take one of the following forms: 0.juju# machine 0 machine-0-lxc-0.juju # machine 0/lxc/0 mysql.juju # IP address of a random unit of the mysql service unit-mysql-0.juju # IP address of mysql/0 In the above forms, the entity is within the current environment. If you want to resolve the address of an entity in another environment, you can precede ".juju" with the name of the environment. e.g. mysql.prod.juju mysql.dev.juju etc. Enjoy. Cheers, Andrew -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju