Why migrate a native Ansible Open edX install to Tutor
If your Open edX platform was built with the Ansible-based native install and your team must keep it running and patched, the question is how to replace that deployment with Tutor without losing learner data or the customizations your courses depend on. The answer is a migration project in its own right: Tutor replaces the Ansible deployment, your MySQL and MongoDB data is exported and imported, and custom settings, themes and XBlocks are mapped to Tutor configuration and plugins or rebuilt. It is not a file copy from one server to another.
Tutor has been the community-supported installation method since the Lilac release, and the edx-platform maintainers say bare-metal installation is complex and receives limited community support. They recommend Tutor or a service provider for production. That matters for an older Ansible estate because the community path your team can rely on for fixes, documentation and upgrades now runs through Tutor. Before you commit, confirm with your internal platform owners which Ansible roles, overrides and server-side patches are actually in use, since undocumented changes are the usual reason this work runs longer than expected.
Plan the work around the named release you will land on. Open edX supports only the latest named release, and Verawood is the current release, so a move to Tutor is also a point where you choose a release and may need upgrade work on top of the migration. Ask any partner or internal team to write down the source release, the target release, the data stores in scope and the customizations that must be rebuilt, so the migration is scoped as a fixed body of work rather than an open-ended rebuild.
What maps cleanly from an Ansible install to Tutor and what does not
This table compares each part of a native Ansible-based Open edX install with its Tutor equivalent and marks whether it carries over, needs rebuilding, needs verification against the target release, or should be retired. Read each row as a planning decision: the right-hand column tells you what to do with the item before cutover. Items marked for verification depend on the release you choose, so confirm them against that release's documentation before you build.
| Source item | Tutor equivalent | What to do |
|---|---|---|
| Ansible playbooks and inventory | Tutor config.yml, environment templates and the project root | Rebuild. Record the values you need from inventory and variables, then set them in Tutor configuration. Playbooks do not carry over. |
| Custom settings in LMS and CMS env files | Configuration keys in config.yml, plus settings overrides through a Tutor plugin | Map each override to a documented key or plugin setting. Anything without an equivalent needs a plugin, so review each one. |
| MySQL data | MySQL service in the Tutor deployment, restored from a dump | Verify. Dump, restore and check schema and row counts on the target release before cutover. |
| MongoDB data | MongoDB service in the Tutor deployment, restored from a dump | Verify. Confirm the MongoDB version your target release expects, and check forum data separately if you use the legacy forum backend. |
| Theme directories | Tutor theme handling and the theme volume in the project root | Rebuild. Port theme code against the target release's frontend and styling, since older theme files rarely work unchanged. |
| Custom XBlocks | Tutor plugin or a mounted package installed into the Open edX image | Rebuild and retest. Check each XBlock against the target release's Python and Django versions before you port it. |
| Third-party authentication | Identity provider settings in configuration, with the provider configured again | Verify. Confirm each provider type is supported on the release you choose, and retest login and account linking. |
| Aspects or edX Insights | Aspects plugin with its ClickHouse and Superset services, or no equivalent for Insights | Retire Insights and plan Aspects as a separate project. Historical data needs its own mapping. |
| Custom nginx and TLS setup | Tutor-managed reverse proxy and certificate handling, or your own proxy in front of Tutor | Rebuild. Decide who terminates TLS and where certificates are stored before you move DNS. |
Documented export, configuration and import paths
A native Ansible migration moves three things: database contents, configuration and course content. Each has its own documented path, and each needs a confirmed command set for the release you are moving to. The cards below map those paths to the work your team or a partner will do.
Source database dumps
Take consistent MySQL and MongoDB dumps from the Ansible server while the platform is in a quiet window, so users, enrollments, grades and course structure line up. MySQL holds most platform state, and MongoDB holds the content store and older forum data on releases that still use it. Confirm the dump tooling and the exact database names against the documentation for your source release, then verify row counts and a sample learner record after restore. Also confirm the source and target database versions are compatible.
Target Tutor installation
Install Tutor on the target host first and bring it to a clean, running state before importing any data. The installation guide covers the supported container engine, DNS and the first configuration. Keep the target on the Open edX release you intend to run, and record that release in the migration plan, because the Tutor version controls the data format you import into.
Tutor installation guideMapping custom settings to Tutor
Walk through every custom setting in the Ansible variables and decide whether it becomes a Tutor configuration value, a plugin, or a setting that no longer applies. Secrets such as SMTP credentials, OAuth keys and storage keys should move into Tutor's configuration handling rather than into plain files. Write the mapping as a table with a source value, a target key and an owner, and review it with the team that maintains the old playbooks.
Plugins and custom code
Custom Python changes made inside the Ansible-managed tree need a Tutor plugin, a hook, or a documented extension point before they run on the new platform. Forks of edx-platform code are the hardest case, since they must be reviewed against the target release. Confirm which plugin mechanism covers each change in the Tutor plugin documentation, and list any change that has no equivalent as a rebuild item.
Course export and import in Studio
Course content moves as course export packages from the old Studio and import into the new one, which keeps course structure, units and most block content intact. Learner data does not travel with these packages, so enrollments and progress come only from the database restore. Plan a test import of at least one course with video, assessments and internal links, then check links, grading policy and any custom XBlocks each course uses.
Theme and asset rebuild
Themes, static assets and uploaded files live in paths the Ansible role managed, and they do not come across with the database dumps. Copy uploads and static content to the target storage location and confirm the paths in the new configuration. Rebuild the theme as a Tutor-compatible theme or plugin, then compare pages in a staging environment before any DNS change.
How the migration runs from inventory to decommission
The sequence moves the platform from an Ansible-built install to a Tutor build one controlled stage at a time, so every data set, setting and theme is proven in staging and in a pilot before learners depend on the new site. Each stage ends with a recorded check, and the old hosts are kept until backups are verified.
Inventory the Ansible install and its dependencies
Start by reading the Ansible role variables, the deployed lms.env.json and cms.env.json files, and any custom settings files, then list every theme, custom XBlock, identity provider, email relay, storage bucket and data store in use. Record the exact Open edX release the old install runs, because the Tutor target must match it. The output is a written inventory signed off by the platform owner, with each item marked as carry over, rebuild, replace or retire. Confirm the inventory against the live servers, not only the playbooks, since manual edits made after deployment are common.
Build the Tutor target on a matching release
Install Tutor on a clean environment and select the Open edX release that matches the source install, so that data formats and schema versions line up. Map each inventory item to its Tutor location: settings overrides in the Tutor configuration, plugins for custom behavior, and a theme folder for branding. Deploy an empty build first and confirm that the LMS and Studio start, that the admin account works and that the services in the Tutor stack are healthy. Upgrades to a newer release are a separate project and should be planned after the migration is stable.
Restore data into a staging copy
Take a consistent export of MySQL and MongoDB from the old hosts while the platform is read-only or quiesced, then restore both into the staging Tutor build. Rebuild the custom themes and XBlocks against the target release and run the platform's migrations so the schemas reach the expected state. Check that course structures open in Studio, that learner dashboards render, that media files resolve and that background tasks run. The step is complete when the staging site reproduces the main workflows of the old site and any gaps are logged with an owner.
Pilot with course teams
Invite a small group of course teams and a set of test learners to work on the staging copy for a fixed review window agreed in advance. Ask them to edit, publish and enroll, and to test the flows that matter most to them, such as grading, certificates and identity sign-in. Track each reported defect in the inventory, fix it in configuration or code, and rebuild the staging copy as needed. The pilot closes when the teams sign off on their courses and the open defects are either fixed or accepted in writing.
Run in parallel and reconcile user and enrollment data
Keep the old site serving learners while the new build receives a scheduled data refresh, then compare user counts, enrollments, certificate records and course run identifiers between the two systems. Investigate any mismatch before it reaches learners, paying close attention to accounts created by identity providers and to enrollments with modes such as audit or verified. Record the reconciliation queries and their results so they can be repeated during cutover. The step is done when differences are either explained or corrected and the team agrees the counts match.
Cut over on a dated change with a rollback plan
Schedule the cutover window with the business owners, publish it to learners, and write the rollback steps before the window opens. On the day, freeze writes on the old site, take the final MySQL and MongoDB exports, restore them into the Tutor production environment, repoint DNS or the proxy, and run the reconciliation checks again. Keep the old hosts powered on and read-only so that a return to the previous site is possible if a defect blocks learners. The cutover is complete when the production checks pass and the rollback window has closed without a decision to revert.
Decommission the Ansible hosts after verified backups
Once the new site has run in production long enough for the owners to be satisfied, take a final backup of the old hosts and confirm that a restore of the new platform's backups works in a separate environment. Remove the old hosts from monitoring, revoke their credentials and secrets, and archive the Ansible repository and inventory files for audit purposes. Retire DNS records and certificates that no longer point to them. The step closes when the backup restore test passes, the access and secret inventory shows no active use of the old hosts, and the owner signs the decommission record.
How data and customizations move from the Ansible host to Tutor
The move starts on the source Ansible host, where MySQL, MongoDB, media files, theme and XBlock code, and settings are collected into an inventory. That inventory feeds a rebuild stage in which custom settings become Tutor configuration and plugins, and the code is reinstalled into a Tutor build. Data is restored only into the target, which sits across a trust boundary. Staging validation must pass before any cutover, and the source host stays in place until rollback is no longer needed.
Data and customizations cross from the source host into a rebuilt Tutor target before cutover.
Rebuilding settings, themes and XBlocks on Tutor
Most custom settings in a native install live in a hand-edited configuration file, environment variables or Django settings overrides. On Tutor, these values do not carry over as files. Each one needs a destination: a value in the Tutor configuration (config.yml), an environment override, or a plugin that adds settings through the Tutor hooks system. Start by listing every non-default setting from the old install, then sort each one by whether it is a platform value (domain, email, languages), a feature flag, or a piece of custom logic. Feature flags and simple values usually move into configuration. Custom logic belongs in a plugin, so it survives Tutor upgrades.
- Inventory the old settings: Compare the live settings files against the defaults for the release you are leaving, so nothing is missed.
- Map values to Tutor keys: Move domain, email and language values into the Tutor configuration rather than editing generated files.
- Wrap custom logic in a plugin: Put Django settings additions and hooks in a Tutor plugin with its own version control.
- Drop obsolete overrides: Some Ansible-era workarounds address bugs that no longer exist on the target release.
- Record each decision: Keep a table of old setting, new location and reason, so auditors and the next operator can trace it.
Check that every mapped setting appears in the rendered configuration on the new server before any data is imported.
Themes are the customization most likely to break during a migration. A theme built for an older release often depends on templates, styles or frontend components that changed or were removed. Rebuild the theme against the target release instead of copying the old theme directory across. Begin by identifying which parts of the old theme are branding (logos, colors, text, footer links) and which are template or style overrides. Branding can usually be reapplied to a fresh base. Overrides need to be reviewed against the target release's templates and frontend code, and rewritten where the underlying structure changed.
- Separate branding from overrides: Logos, colors and copy are easy to reapply; template and style overrides carry the risk.
- Check the target release's frontend: Confirm which micro-frontend components and plugin slots the theme touches still exist.
- Rebuild static assets: Recompile styles and collect static files on the new Tutor build, rather than reusing compiled output from the old server.
- Test every theme page: Cover the LMS, Studio, login, dashboard, certificates and emails, since each uses different templates.
- Review translations: Confirm custom strings still match the message keys in the target release.
Check the theme on a staging copy with realistic course content, and have someone outside the build team review the pages learners and course teams see most.
Custom XBlocks are Python packages that add course components. They are tied to the Open edX libraries they import, so an XBlock written for an older release may call APIs that were changed or removed. Reinstall each XBlock as a Python package inside the Tutor image or through a plugin, then test it against the target release before exposing it to courses. Ask the original developer or the current maintainer for the source, the dependency list and any test suite. If none exists, the XBlock must be tested by hand in a staging environment with each mode it supports: author view, student view and any grading or studio views.
- Pin the package source: Keep each XBlock in version control and install it at a fixed version.
- Check imports and API calls: Look for deprecated libraries, changed base classes and removed helper functions.
- Reinstall in a test build: Add the package in a staging Tutor build, not on the production image first.
- Test the learner and author paths: Exercise creating, editing, previewing and submitting the component in both Studio and the LMS.
- Confirm stored course data: Existing courses that use the XBlock must still render and grade correctly after import.
An XBlock that fails silently is worse than one that is missing, so record which components are verified and which are still blocked.
Third-party authentication and analytics are the connections learners and administrators notice first when they break. Open edX supports OAuth2 providers, SAML 2.0 and Shibboleth, and LTI, with CAS and SSL client certificates available only as older provisional support. Confirm which providers the old install used, then check that the target release supports each one before configuring it in Tutor. Provider settings, callback URLs and attribute mappings must be recreated for the new domain, because identity providers usually reject callbacks from unregistered addresses. For analytics, Aspects captures tracking logs as xAPI statements through the event-routing-backends plugin and presents them in Superset dashboards. If the old install sent events elsewhere, rebuild that forwarding and confirm that events arrive.
- Confirm provider support: Check each identity provider against the supported list for the target release.
- Register new callback URLs: Update the identity provider with the new domain before cutover.
- Verify attribute mappings: Test that email, name and any role attributes arrive in the expected fields.
- Rebuild event forwarding: Recreate any custom tracking log or xAPI routing, then check that test events are received.
- Plan the analytics data gap: Confirm with the team whether historical analytics need to move, since not every data store carries over.
Test a learner login and an administrator login with each provider on the new domain before the cutover window.
What drives the cost and duration of the move
This table lists the factors that change how much work a native Ansible to Tutor move takes, and who pays for each part. Read each row as a question to answer during scoping, because the largest unknowns usually sit in custom Ansible overrides and in the data volume. The main takeaway is that a quote is only as reliable as the inventory of settings, data and integrations behind it.
| Driver | Why it changes cost or effort | How to keep it down |
|---|---|---|
| Custom settings and Ansible overrides | Each override in the old playbooks and variable files must be found, understood and mapped to a Tutor configuration key or a plugin. Undocumented overrides are the most common source of rework. | Export the effective configuration from the running server and list every deviation from defaults before scoping. |
| Size of MySQL and MongoDB data | Larger databases lengthen dumps, transfers, restores and verification. MongoDB holds data that the team must check for compatibility with the target version. | Confirm data volumes early, remove stale data where policy allows, and schedule the largest dumps in the cutover window. |
| Media and uploaded files | Course assets, certificates and user uploads must move with the database, and missing files cause broken pages that appear only after cutover. | Measure the media store, decide where it will live in the new setup, and plan a checksum comparison. |
| Number of custom themes and XBlocks | Each theme or XBlock may depend on the old file layout, old Python packages or old asset build steps, so each one needs a rebuild and a test pass. | Inventory every theme and XBlock, mark those still in use, and retire unused code before the build starts. |
| Identity and analytics integrations | Each SSO provider, LTI tool, analytics pipeline or external grader needs its own configuration, credentials and test cases. | List every integration with its owner, its credentials location and whether the vendor still supports it. |
| Gap between source and target releases | A larger gap means more migrations, deprecated settings and changed APIs between the two releases, which adds test and fix time. | Record the source release exactly and confirm the target release notes for breaking changes before quoting. |
| Uptime requirements for cutover | A zero-downtime or short-window cutover needs rehearsals, a delta sync of new data and a tested rollback, which costs more than a planned maintenance window. | Agree the acceptable window in writing and decide whether learner activity during the window is acceptable to lose. |
| Team Tutor and Docker experience | Teams new to Tutor need time to learn the plugin model, image builds and container networking, and that learning is often billed or absorbed as project time. | Ask the team which Tutor and Docker skills exist internally and whether training or pairing is part of the scope. |
What usually goes wrong in a native-to-Tutor move
Most failed migrations from a native Ansible install trace back to a few predictable gaps: the source and target do not run the same release, settings live only in old playbooks, or data and files do not line up. Each card below names one of these risks and the check that prevents it before cutover.
Mismatched Open edX releases
The source and target must run the same named Open edX release before data moves between them, or schema and content formats may not load. Open edX supports only the latest named release, so an old native install may be several releases behind the Tutor version you pick. Record the exact release on the source, install the matching Tutor version on the target, and plan any release upgrade as a separate, tested step rather than folding it into the move.
Release notesUndocumented Ansible overrides
Native installs often carry settings in local overrides, extra variables and hand-edited files that never reached the main playbook. These values, such as custom LMS settings, email backends or feature flags, disappear silently when rebuilt from defaults. Diff the rendered configuration on the source against the Tutor config and plugins on the target, and treat every difference as either a deliberate mapping or a defect to resolve.
MongoDB data without matching versions
Restoring MongoDB content or forum data that was exported from a different release or forum backend leaves course structure and discussion threads out of step. Confirm which MongoDB and forum data format the source uses, and check that the target release expects it. Load MySQL and MongoDB dumps taken at the same moment, then verify that course outlines open in Studio and that discussion threads resolve to the right courses.
Theme breakage after rebuild
A custom theme written for an older release may fail to compile, or may render incorrectly once shared templates and styles change. Themes often depend on overrides that were never versioned. Rebuild the theme as a Tutor plugin or theme package, compile it on the target, and review the login page, dashboard, course page and Studio before any learner sees the site.
Lost media and uploads
Course images, static assets and learner uploads sit on local disks or in storage paths that a database dump does not capture. Missing media produces broken images and links that look like content errors. Inventory every storage location on the source, copy each one with checksums, and confirm the target points at the same paths or an object storage bucket before testing course pages.
Email and DNS cutover errors
Account activation, password reset and certificate emails fail when sending domains, SMTP credentials or DNS records were not moved, and DNS changes can reach learners at different times. Confirm sender authentication records and outbound mail settings on the target before cutover, and lower DNS record lifetimes ahead of the change window so you can reverse the cutover quickly.
No tested rollback
A migration without a rehearsed return path leaves the source server as the only safe copy once learners write new data. Decide in advance which system is authoritative after cutover, freeze writes on the source during the final sync, and rehearse the reverse process on a copy of production. Rehearse restores with the exact dumps and file copies you plan to use, not with fresh exports.
Questions teams ask before moving off an Ansible install
What does it cost to move from an Ansible install to Tutor?
The cost is driven by how much of the existing platform must be reproduced, not by the Tutor tooling itself. The main components are discovery of the current install, export and rebuild of MySQL and MongoDB data, mapping custom settings and theme code to Tutor configuration and plugins, rebuilding XBlocks, and a tested cutover. Some of this is one-time work (the move itself), while hosting, backups and upgrades recur after go-live. Ask any quote to itemize discovery, data migration, theme and XBlock rebuild, cutover testing and handover, and to state which items are fixed and which depend on findings during discovery. DeployOpen plans these items in a written, fixed-scope proposal once the current install has been inspected.
How long does an Ansible to Tutor migration take?
Duration depends on the size of the custom code, the volume of MySQL and MongoDB data, and how many customizations need rebuilding rather than copying. Teams with a small, mostly stock install and few XBlocks finish faster than teams with heavy theme work, custom authentication or many local settings. The work also depends on which release is running today, because Open edX supports only the latest named release, so any version gap adds upgrade steps. Ask for a timeline that separates discovery, the rehearsal of the data move, the rebuild and the cutover window.
What does our internal team need to provide?
Your team needs to provide access to the current servers and their configuration files, the database credentials for a read-only export, a list of custom settings and feature flags, the theme and XBlock source code, and the identity provider details used for sign-in. Someone who owns DNS, certificates and the target cloud or data center account must also be available for the cutover. Name a business owner who can approve the test results and the cutover date. Gaps in any of these usually become the main cause of schedule slips.
Can our own engineers do this migration without a partner?
Yes, if your team has Python and Django experience, has operated MySQL and MongoDB, and can run Docker-based services. The official Tutor documentation describes the configuration model and plugin system, which is the path most in-house teams take. The harder parts are reproducing undocumented custom settings from an old Ansible role set, deciding which legacy customizations to drop, and proving that course data and learner records match after the move. The edx-platform maintainers say bare-metal installs are complex and receive limited community support, so a team without that experience should weigh the risk of learning on a live platform.
Do learners lose data at cutover?
Learners keep their data only when the MySQL and MongoDB exports are taken from the same point in time, restored into the matching Tutor version, and checked against a rehearsal copy before the live switch. Data that changes during the window, such as enrollments, grades and discussion posts written after the export, is lost unless the cutover includes a freeze period or a delta sync. Uploaded media and course assets must also be copied, or learners will see broken images and files. Agree the freeze window, the rollback point and the post-cutover checks in writing before the migration starts.
Is Tutor supported for production use?
Tutor is the official Docker-based Open edX distribution for production and local development, licensed under the AGPL, and it has been the community-supported installation method since the Lilac release. The edx-platform maintainers recommend Tutor or a service provider for production. Community support is different from a service agreement, so ask who will answer incident calls, which Tutor version you will pin, and how upgrades are tested. Edly, which maintains Tutor, also offers professional support, and that option can be compared with a partner engagement during procurement.
Will the migration keep our custom XBlocks and theme working?
Usually only after they are rebuilt against the Tutor release you deploy. Custom XBlocks and themes written for an Ansible install often depend on file paths, build steps or Django settings that Tutor handles differently, so they need to be moved into Tutor plugins or reviewed against the target release. Plan a test pass on each course type and on the learner and instructor views, because styling and component regressions often appear only in those paths. Ask for the list of customizations to be classified as keep, rebuild or retire before the build begins.
How DeployOpen works on this
DeployOpen scopes the move from a native Ansible Open edX install to Tutor in writing before work starts, then builds the Tutor environment inside infrastructure you control. Each stage ends with documented decisions, tested data and a handover your team can run without us.
How we scope
- Inventory the existing Ansible roles, custom settings files, themes, XBlocks and the MySQL and MongoDB data stores
- Agree in writing which courses, users, forum data and custom code move, and which are retired
- Map each custom setting to a Tutor configuration key or plugin, and list the gaps that need decisions
- Confirm the target Open edX release and Tutor version, and the hosting environment, before the build starts
How we build
- Stand up a Tutor environment alongside the existing install, with no change to the live site
- Export and import MySQL and MongoDB data in a rehearsed sequence, then check row counts and sample records
- Rebuild themes and XBlocks as Tutor plugins so custom code survives future Tutor upgrades
- Test course launch, enrollment, grading, certificates and admin access on the rebuilt environment
How we hand over
- Deliver a runbook covering the cutover steps, rollback path and the data checks performed at each stage
- Document every configuration decision, plugin and custom component, with the reason it exists
- Walk your operations and course teams through the Tutor commands they will run day to day
- Provide the cutover record so your auditors or compliance leads can review how data moved
How we support
- Support the cutover window and the first post-cutover checks as part of the written scope
- Offer ongoing support, upgrades and continuous testing as a retainer after handover
- Plan the next Open edX release upgrade as a separate scoped engagement, since only the latest named release is supported
- Confirm retainer terms, response expectations and service boundaries in the written agreement

