Skip to content

Conversation

@andyb-elastic
Copy link
Contributor

This refactor is extracted out from #27682

  • Consolidates provision steps so it's more clear which steps are
    applied to all boxes
  • Removes duplicate configuration that was being stomped
  • Ensure rsync, a dependency for platform steps, is installed on linux
  • Ruby style changes

For #26741

* Consolidates provision steps so it's more clear which steps are
applied to all boxes
* Removes duplicate configuration that was being stomped
* Ensure rsync, a dependency for platform steps, is installed on linux
* Ruby style changes

For elastic#26741
@andyb-elastic andyb-elastic added >non-issue >test Issues or PRs that are addressing/adding tests review labels Jan 10, 2018
@andyb-elastic andyb-elastic requested a review from rjernst January 10, 2018 17:28
PROJECT_DIR = ENV['VAGRANT_PROJECT_DIR'] || Dir.pwd
config.vm.synced_folder PROJECT_DIR, '/project'

'ubuntu-1404'.tap do |box|
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This way of using tap is a ruby idiom for giving a constant a name within the scope of a block - avoids having to retype it or assign it to a variable that won't be used later

ensure tar
ensure curl
ensure unzip
ensure rsync
Copy link
Contributor Author

Choose a reason for hiding this comment

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

rsync is used by the platform tests (which from my understanding we'd like to start using again) and is missing from some of the boxes

Copy link
Member

@nik9000 nik9000 left a comment

Choose a reason for hiding this comment

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

LGTM

@andyb-elastic andyb-elastic merged commit 13083e2 into elastic:master Feb 2, 2018
andyb-elastic added a commit that referenced this pull request Feb 2, 2018
* Consolidates provision steps so it's more clear which steps are
applied to all boxes
* Removes duplicate configuration that was being stomped
* Ensure rsync, a dependency for platform steps, is installed on linux
* Ruby style changes

For #26741
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>non-issue >test Issues or PRs that are addressing/adding tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants