{"id":27968652,"url":"https://github.com/ging/idm-migration","last_synced_at":"2025-05-07T21:06:02.301Z","repository":{"id":29285558,"uuid":"32818307","full_name":"ging/idm-migration","owner":"ging","description":"Migration scripts from fi-ware-idm to keystone-horizon","archived":false,"fork":false,"pushed_at":"2015-05-06T16:42:07.000Z","size":260,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-05-07T21:05:58.976Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ging.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-24T18:50:08.000Z","updated_at":"2015-05-06T16:42:07.000Z","dependencies_parsed_at":"2022-09-04T09:40:09.539Z","dependency_job_id":null,"html_url":"https://github.com/ging/idm-migration","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ging%2Fidm-migration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ging%2Fidm-migration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ging%2Fidm-migration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ging%2Fidm-migration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ging","download_url":"https://codeload.github.com/ging/idm-migration/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252954429,"owners_count":21830904,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-07T21:06:01.626Z","updated_at":"2025-05-07T21:06:02.291Z","avatar_url":"https://github.com/ging.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"MIGRATION PROCEDURE\n \n1. Clone data_template folder to data\n2. Create dist folder (and shell folder inside)\n3. Clone migration_config.js.template file to migration_config.js\n4. Configure migration_config.js\n5. Fill data/keystone_users.json and data/service_catalogue.json\n6. Copy fi-ware-idm/current/migrationdata.json remote file to data/ local folder\n7. Run scripts/delete_old_users.js It will generate data/migrate_json_med.js\n8. Run scripts/migrate_json.js It will generate data/migrate_json_new.js\n9. Run scripts: \n\t- scripts/users.js --\u003elogs/users.log\n\t- scripts/orgs.js --\u003elogs/orgs.log\n\t- scripts/apps.js --\u003elogs/apps.log\n\t- scripts/ruser_org.js --\u003elogs/ruser_org.log  -- not debug mode available\n\t- scripts/roles.js --\u003elogs/roles.log\n\t- scripts/rusers.js --\u003elogs/rusers.log\n\t- scripts/perms.js --\u003elogs/perms.log\n\t- scripts/rperms.js --\u003elogs/rperms.log\n\t- scripts/rstore.js --\u003elogs/rstore.log\n\t- scripts/horizon_admins.js --\u003elogs/horizon_admins.log\n\t- scripts/keystone_users.js --\u003elogs/keystone_users.log  -- partial debug mode available\n\t- scripts/user_categories.js --\u003elogs/user_categories.log\n10. Copy fi-ware-idm/shared/system remote folder to horizon server\t\n11. In the horizon server create media folder with the structure: \n\tmedia/\n\t\tApplicationAvatar/\n\t\t\tmedium/\n\t\t\tsmall/\n\t\t\toriginal/\n\t\tOrganizationAvatar/\n\t\t\tmedium/\n\t\t\tsmall/\n\t\t\toriginal/\n\t\tUserAvatar/\n\t\t\tmedium/\n\t\t\tsmall/\n\t\t\toriginal/\n12. In the horizon server run dist/shell scripts\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fging%2Fidm-migration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fging%2Fidm-migration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fging%2Fidm-migration/lists"}