Skip to content

add_frontend_server improvements - #4573

Merged
philbogle merged 2 commits into
stagingfrom
custom_role
Oct 15, 2015
Merged

add_frontend_server improvements#4573
philbogle merged 2 commits into
stagingfrom
custom_role

Conversation

@philbogle

Copy link
Copy Markdown
Contributor

The add_frontend_server script has several new features:

  • -r ROLE allows a custom role to be specified, overriding the default for the environment. (For example -r front-end-ruby2_2 will deploy a frontend using ruby2.2, as defined by that role.)
  • The script attempts to avoid duplicate names (which will cause an error in chef) by retrying with a new index if the a generated name is known to either EC2 or Chef. (There's still a very slight chance of a race but the window is very narrow.)
  • If an error occurs during bootstrapping the server, the full output is printed to help with debugging.

… Knife, to reduce the window of race-conditions where we try to allocated two nodes with same name
Comment thread bin/add_frontend_server.rb Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, must have snuck in as I saved the file one last time.

@mehalshah

Copy link
Copy Markdown
Contributor

Think there's a typo at the top, suggest you have the output in real time on the user's screen as well. Your call on whether to do it. Otherwise LGTM

philbogle added a commit that referenced this pull request Oct 15, 2015
add_frontend_server improvements
@philbogle
philbogle merged commit 00161e5 into staging Oct 15, 2015
@philbogle
philbogle deleted the custom_role branch October 15, 2015 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants