Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE]: Account level installer #920

Closed
1 task done
FastLee opened this issue Feb 7, 2024 · 0 comments · Fixed by #1339
Closed
1 task done

[FEATURE]: Account level installer #920

FastLee opened this issue Feb 7, 2024 · 0 comments · Fixed by #1339
Assignees
Labels
enhancement New feature or request feat/account-level cross-workspace installations feat/installer install/upgrade the app

Comments

@FastLee
Copy link
Contributor

FastLee commented Feb 7, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Problem statement

Currently we install UCX to a single workspace at a time. This is unsustainable for accounts with 10s and 100s of workspaces.

Proposed Solution

Allow admins to run the installer as account admins and install it to all the workspaces in a given account at once.

  • Perform CLI auth to login to the account.
  • Run the installer.
  • Select the option to install to all workspaces
  • UCX is installed to all workspaces.
  • We place a config.yml with a list of all workspace ids
  • we create workspaces.json with workspace id to workspace name mapping

Additional Context

Related to:

@FastLee FastLee added enhancement New feature or request feat/account-level cross-workspace installations feat/installer install/upgrade the app needs-triage London-Workshop labels Feb 7, 2024
@FastLee FastLee added this to UCX Feb 7, 2024
@github-project-automation github-project-automation bot moved this to Triage in UCX Feb 7, 2024
@nfx nfx changed the title [FEATURE]: Account level installer. [FEATURE]: Account level installer Mar 5, 2024
@pohlposition pohlposition moved this from Triage to Active Backlog in UCX Apr 8, 2024
@nfx nfx closed this as completed in #1339 Apr 11, 2024
nfx pushed a commit that referenced this issue Apr 11, 2024
## Changes

Allow admins to run the installer as account admins and install it to
all the workspaces in a given account at once.

- Perform necessary auth to login to the account.
- Prompt for configuration for the first workspace
- Run the installer.
- Confirm that user wants to repeat that for the remaining workspaces
- Repeat
- UCX is installed to all workspaces.

This is done by splitting the prompts for `_configure_new_installation`
into a new method `prompt_for_new_installation`, which saves the answers
to a new `InstallationConfig` data class. This allows the answers to be
reused for other workspaces

### Linked issues
<!-- DOC: Link issue with a keyword: close, closes, closed, fix, fixes,
fixed, resolve, resolves, resolved. See
https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword
-->

Resolves #920

### Functionality 

- [x] added relevant user documentation
- [x] modified existing command: `databricks labs install ucx ...` will
switch to account-level installation when the environment variable
`UCX_FORCE_INSTALL` is set to `account`


### Tests
<!-- How is this tested? Please see the checklist below and also
describe any other relevant tests -->

- [x] manually tested
@github-project-automation github-project-automation bot moved this from Active Backlog to Archive in UCX Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feat/account-level cross-workspace installations feat/installer install/upgrade the app
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants