Ask Your Question
0

Seeking some simple way to update /etc/hosts on all nodes

asked 2013-12-18 21:38:06 -0600

kj-tanaka gravatar image

I wanted to use { get_attr: [ name, first_address ] } to retrieve ip addresses of all instances, but I get the following error. Which makes sense.

"ERROR: Remote error: CircularDependencyException Circular Dependency Found"

So my question is, is there some way to list all instances on /etc/hosts of all instances? It would be great if Heat can/(will be able to) do it with a few lines in the template.

I've spent a couple of days to learn HOT syntax by writing a Hadoop template. Here's the link of what I got.

https://github.com/kjtanaka/heat_templates/tree/master/hadoop (https://github.com/kjtanaka/heat_temp...)

Over all in my investigation, Heat did great for simplifying the initial process. I'd like to thank the developers.

Thanks and best regards, Koji

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2013-12-18 23:30:57 -0600

kj-tanaka gravatar image

Serf looks good http://www.serfdom.io/

I'll close this question.

edit flag offensive delete link more
0

answered 2013-12-18 21:51:27 -0600

Excerpts from Koji's message of 2013-12-18 21:41:27 UTC:

New question #241010 on heat: https://answers.launchpad.net/heat/+question/241010 (https://answers.launchpad.net/heat/+q...)

I wanted to use { get_attr: [ name, first_address ] } to retrieve ip addresses of all instances, but I get the following error. Which makes sense.

"ERROR: Remote error: CircularDependencyException Circular Dependency Found"

So my question is, is there some way to list all instances on /etc/hosts of all instances? It would be great if Heat can/(will be able to) do it with a few lines in the template.

I've spent a couple of days to learn HOT syntax by writing a Hadoop template. Here's the link of what I got.

https://github.com/kjtanaka/heat_templates/tree/master/hadoop (https://github.com/kjtanaka/heat_temp...)

Over all in my investigation, Heat did great for simplifying the initial process. I'd like to thank the developers.

Thanks and best regards, Koji

We abuse the AWS::AutoScaling::LaunchConfiguration to achieve this with TripleO. You can refer to all of the other parts of the stack in the Metadata section, and it will be the last thing created. Then you have to use cfn-hup or os-collect-config to query the Metadata of that resource post-boot.

edit flag offensive delete link more
0

answered 2013-12-18 22:42:06 -0600

kj-tanaka gravatar image

Thanks Clint. I will check cfn-hup and os-collect-config.

Koji

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-12-18 21:38:06 -0600

Seen: 574 times

Last updated: Dec 18 '13