-
Notifications
You must be signed in to change notification settings - Fork 30
Feature: Greenlight3 import #2665
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
base: develop
Are you sure you want to change the base?
Changes from all commits
9f5f286
2b11b13
13c7e25
3ab86e9
78d06ba
a93f7ca
01c642a
cd320d3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,6 +1,6 @@ | ||||||
| --- | ||||||
| title: Migrate from Greenlight v2 | ||||||
| description: Step by step guide to migrate from Greenlight v2 to PILOS | ||||||
| title: Migrate from Greenlight | ||||||
| description: Step by step guide to migrate from Greenlight to PILOS | ||||||
| --- | ||||||
|
|
||||||
| PILOS provides an easy to use command to import all greenlight users (incl. ldap), rooms and shared accesses. | ||||||
|
|
@@ -26,8 +26,17 @@ ports: | |||||
|
|
||||||
| Also make sure the internal firewall of the OS and no external firewall is not blocking access to the port and from the host PILOS is running on. | ||||||
|
|
||||||
| If you want to import Room presentations, copy Greenlight's active storage directory to the PILOS app storage at `/storage/app/migration/presentations` and specify `--presentation-path=migration/presentations` at the command line. | ||||||
| Successfully imported presentation files will be moved to a different location. | ||||||
|
|
||||||
| ## Running migration command | ||||||
|
|
||||||
| The command will output the process of the import and imforms about failed user, room and shared access import. | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| **Note** If a room with the same room id already exists in PILOS it will NOT be imported and the shared accesses are ignored. | ||||||
|
|
||||||
| ### Greenlight 2 | ||||||
|
|
||||||
| ```bash | ||||||
| docker compose exec app pilos-cli import:greenlight-v2 {host : ip or hostname of postgres database server} | ||||||
| {port : port of postgres database server} | ||||||
|
|
@@ -42,9 +51,40 @@ docker compose exec app pilos-cli import:greenlight-v2 {host : ip or hostname | |||||
| docker compose exec app pilos-cli import:greenlight-v2 localhost 5432 greenlight_production postgres 12345678 | ||||||
| ``` | ||||||
|
|
||||||
| The command will output the process of the import and imforms about failed user, room and shared access import. | ||||||
| ### Greenlight 3 | ||||||
|
|
||||||
| **Note** If a room with the same room id already exists in PILOS it will NOT be imported and the shared accesses are ignored. | ||||||
| ``` | ||||||
| Usage: | ||||||
| import:greenlight-v3 [options] [--] <host> <port> <database> <username> <password> | ||||||
|
|
||||||
| Arguments: | ||||||
| host ip or hostname of postgres database server | ||||||
| port port of postgres database server | ||||||
| database greenlight database name, see greenlight .env variable DB_NAME | ||||||
| username greenlight database username, see greenlight .env variable DB_USERNAME | ||||||
| password greenlight database password, see greenlight .env variable DB_PASSWORD | ||||||
|
|
||||||
| Options: | ||||||
| --no-confirm do not ask if the import should be committed | ||||||
| --default-role[=DEFAULT-ROLE] default role for imported external users | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. name of the default role .... |
||||||
| --room-type[=ROOM-TYPE] room type for imported rooms | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. name of the room type .... |
||||||
| --presentation-path[=PRESENTATION-PATH] path to room presentations | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. relative to /storage/app/ |
||||||
| ``` | ||||||
|
|
||||||
| **Example** | ||||||
|
|
||||||
| ```bash | ||||||
| docker compose exec app pilos-cli import:greenlight-v3 \ | ||||||
| --no-confirm \ | ||||||
| --default-role=User \ | ||||||
| --room-type=Meeting \ | ||||||
| --presentation-path=migration/presentations \ | ||||||
| pg-cluster.svc.cluster.local | ||||||
| 5432 | ||||||
| greenlight-db | ||||||
| greenlight-user | ||||||
| d4t4basePa$$Word | ||||||
| ``` | ||||||
|
|
||||||
| ## Adjust nginx to redirect to PILOS (other host) | ||||||
|
|
||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is currently only possible for GL3 import. Move to GL3 section until added to GL2 import