Why automate Jitsi deployments with Ansible or Puppet
If you already run a working single Jitsi server and plan to add videobridges or build a second environment, the Jitsi scalable setup guide recommends configuration management tools such as Ansible or Puppet to manage installation and configuration. The guide also warns that building a scalable infrastructure is not a task for beginning Jitsi administrators. The point of automation is not speed alone. Each server you add must match the others in packages, certificates, service settings and network details, and hand-edited servers drift apart over time. A fleet built from playbooks or manifests lets you rebuild a failed bridge, stand up a staging environment or change a setting once and apply it everywhere, with a record of what changed. Before you write any code, confirm that your team has someone who can read and test the chosen tool, because a faulty template can break every bridge at once.
A Jitsi Meet deployment has four parts that a configuration management tool must cover: a web server (nginx or Apache) serving the web app, the Prosody XMPP server, Jicofo (the conference focus) and one or more Jitsi Videobridge instances. The scalable setup is already configured for horizontal scaling, so you do not design a new architecture when you add bridges. Your automation repeats that configuration reliably. The central server runs Prosody and Jicofo, and each additional videobridge must point at the same XMPP service with the same shared credentials and domain names. Ask your team to list which values differ per host, such as hostnames, advertised addresses and bridge identifiers, and which must stay identical, such as the XMPP domain and component secrets. Those two lists define your templates and variables. Also confirm that TLS certificates, the Debian or Ubuntu package versions and the OpenJDK 17 requirement are pinned the same way on every node.
What to template: Prosody, Jicofo, videobridge, nginx and config.js
A Jitsi Meet deployment is several services that must agree on names, secrets and identities. The cards below cover the settings each component holds and what breaks when a host is configured by hand and drifts from the others. Confirm exact configuration keys against the version you deploy, because file layouts and option names change between releases.
Prosody: domains and component secrets
Prosody is the XMPP server that every other component connects to, so its virtual host and component domains must match what the web app and Jicofo expect. The handbook's scalable setup depends on Prosody knowing the internal component names and passwords used by Jicofo and the bridges. Hand-edited hosts often end up with a different domain spelling or a rotated secret on one machine. Check that the same domain and component entries appear on every central server and that the shared secrets are stored once and rendered into each file.
Scalable setup guideJicofo: conference focus and bridge registration
Jicofo creates conferences and assigns participants to videobridges, so it must hold the same XMPP domain, component credentials and internal domain names as Prosody. When a bridge is added by hand, Jicofo may not know about it or may hold an outdated password, and new meetings then fail to start or land on the wrong bridges. Treat the Jicofo configuration as a rendered template that changes only when the central server's identity changes. Check the component secret, the XMPP domain and the list of connected bridges after every change.
Jitsi Videobridge: identity and connection
Each videobridge needs its own identity while sharing the same connection settings to the central XMPP server. The handbook describes adding bridges as a horizontal scaling step, so the template should generate the per-host values, such as the bridge identifier and advertised address, from inventory data rather than typing them. Copy-pasted bridge configs are a common source of two servers claiming one identity or advertising a private address. Verify that every bridge registers with Jicofo, and that the advertised addresses are the ones clients can reach on UDP 10000.
Nginx or Apache: web server and proxy routes
The web server serves the web app and proxies the BOSH or websocket path to Prosody, so its server name and routing must match the domain in the other components. Certificate paths and the TLS configuration should also be rendered from variables, because the handbook says HTTPS with a proper domain certificate is necessary for working audio and video. Manual edits on one node can leave a stale certificate or a missing proxy location that only shows up for some clients. Check the server name, certificate chain and websocket location on each web node after every template run.
config.js: web build and client settings
The config.js file tells the browser client which domain, bridge settings and feature flags to use, so it must point at the same public domain as the server stack. Settings such as the XMPP domain, the muc domain and the bridge options can drift when one web node is edited directly. Keep config.js in the template with the same domain variables used for the server components, and review any change to features or defaults in one place. Confirm each key against the release you run, since the names are version specific.
Keeping videobridges identical as you add more
Identical videobridges matter because Jicofo chooses which bridge hosts each conference, so any bridge that behaves differently changes call quality in ways that are hard to predict. A bridge with a different config file, an older package, or a missing firewall rule may accept some conferences and fail others, and troubleshooting then becomes a comparison exercise across hosts. The scalable setup guide says the default install is already configured for horizontal scaling, which means the work of adding a bridge is mostly making each new host match the ones already in service. The practical goal is that one playbook or Puppet module, applied to every videobridge, is the only way a bridge gets configured, so hand edits on a single host do not survive the next run.
Split the values by where they belong. Per-host values are the ones that must differ: the hostname, the advertised address that clients use to reach that bridge's UDP 10000 port, and any inventory variables that describe its network position. Keep these in the inventory or Hiera data keyed by host, and never let a template hard-code them. Shared values are the ones every component must agree on: the public domain, the XMPP domain and internal component names, the Prosody and Jicofo connection settings, and the component credentials that link the bridges to Prosody. Set these once in group variables or a shared module parameter, so a change to the domain propagates to every bridge in the same run. Before you rely on this split, confirm with your own test environment which settings the packaged videobridge reads from its own files and which it reads from the shared Jitsi configuration.
Secrets must never sit in a committed template. The component passwords and any JWT signing material belong in an Ansible Vault file or an encrypted store such as Hiera eyaml or a secrets manager that your configuration tool can read at run time, with access limited to the people who deploy. Rotate those credentials through the same pipeline so that every bridge receives the new value together, because a bridge that still holds the old password will drop out of the pool without an obvious error. Ask your partner or internal team to show how secrets are rendered to disk, which file permissions they get, and whether they appear in run logs.
Ansible or Puppet: how to choose for a Jitsi estate
If your platform or infrastructure team already writes and runs Ansible, the simplest path is usually to extend that practice to Jitsi rather than introduce a second tool. Ansible connects over SSH and pushes changes from a control machine, so it needs no agent on the Jitsi hosts. Playbooks and roles can be organized per component, so the Prosody, Jicofo, videobridge, nginx and config.js configuration each live in their own role, with an inventory that separates the central server from each bridge.
- Agentless push: Runs are started from a control node and reach each host over SSH, which fits a small estate with a clear change window.
- Role and inventory structure: Group variables hold shared settings such as the domain and bridge list, while host variables hold per-machine values such as the advertised address.
- Reporting and drift: Ansible reports changed and failed tasks on each run, but it does not continuously correct drift unless you schedule regular check-mode runs.
- Maintenance needs: Someone must own the roles, pin the Jitsi package or image versions, and review changes to the
.envfile and templates.
Before you commit, confirm with your team which Ansible version and collections are approved, and whether your change process accepts push-based runs against production hosts.",
If your organization already runs Puppet, Jitsi should usually join that estate so it inherits the same reporting, node classification and change process. Puppet agents run on each host and pull a compiled catalog from a Puppet server, so the bridges and central server converge on the declared state without anyone starting a run. Jitsi configuration becomes a set of classes, typically one per component, assigned to nodes through a classification model.
- Agent-based pull: Each Jitsi host runs a Puppet agent on a schedule, which suits estates where drift must be corrected automatically.
- Role and profile structure: Component classes such as Prosody, Jicofo, videobridge and nginx are wrapped in profiles, and roles combine profiles for the central server or a bridge.
- Reporting and drift: Puppet reports changed resources to the server and can be configured to enforce desired state on every run, which makes unexpected edits visible.
- Maintenance needs: Someone must maintain the modules, the control repository, the Hiera data for each environment and the agent versions on every host.
Before you commit, confirm whether a Jitsi module is already approved in your organization, how secrets such as the .env passwords are stored, and whether your Puppet server can reach the Jitsi hosts in each network zone.",
If your team runs neither Ansible nor Puppet, the choice depends on how many hosts you expect to manage and who will maintain the automation after the first deployment. A very small estate may be served by a few well-documented scripts, but the Jitsi scalable setup guide recommends configuration management tools such as Ansible or Puppet, and that advice applies once there is more than one bridge. Choosing a tool your team can read and debug matters more than the tool's feature list.
- Skill fit: Ansible uses YAML and needs only SSH access, so it is often the smaller learning step for infrastructure teams.
- Operating model: Puppet adds a server and agents to operate, which is worth the cost when several systems will share the same management plane.
- Reporting and drift: Decide whether you need scheduled correction of drift or only run-by-run reports, since this drives the choice more than any other factor.
- Ownership: Name the person or team that will update the templates when a Jitsi release changes configuration.
Before you commit, ask a partner or your own engineers to show how a bridge is added and how a failed run is diagnosed, because those two tasks reveal whether the chosen tool fits your team.",
How to build an automated Jitsi rollout in order
This sequence turns a hand-built Jitsi Meet install into a repeatable playbook or manifest that builds the central server and videobridge hosts the same way every time. Each step ends with a check so the team knows the automation matches a working reference system.
Build and verify a manual reference install
An experienced administrator installs Jitsi Meet on one server by hand, following the Debian or Ubuntu quick start or the Docker guide for the chosen path. Confirm DNS resolves to the server, the certificate is a proper domain certificate rather than self-signed, and ports 80/TCP, 443/TCP and 10000/UDP are open. Done when a test conference works in two browsers with audio and video. This reference system is the baseline every later step is checked against.
Capture every setting as variables
Write down each value the reference install depends on: domain names, certificate paths, the XMPP domain, the component secrets, the authentication mode, the JVB host list and the firewall ports. Store these as variables in the Ansible inventory or Puppet Hiera data, and move secrets into an encrypted store such as Ansible Vault or Hiera eyaml. Done when a reader who has never seen the reference server can list every input and no value is hard-coded in a task or manifest.
Template the component configuration files
Convert the files you edited by hand into templates for Prosody, Jicofo, the videobridge, nginx and the web app's config.js. Keep the templates limited to values from the variables file so the generated output matches the reference install line for line. Run the template render in check mode and diff the output against the files on the reference server. Done when the diff shows only the expected changes, such as a new hostname.
Split roles into central server and bridge hosts
Create separate roles for the central server, which runs Prosody, Jicofo and the web server, and for each videobridge host. Assign hosts to groups so the central server role and the bridge role apply to different machines, and keep bridge hosts free of other services. Confirm the bridge secret and XMPP settings match between the two roles. Done when a dry run against a test inventory produces the expected configuration on each group.
Build a test environment that mirrors production
Provision a test environment with the same roles, package versions and configuration templates as production, but with a separate domain and certificate. Run the playbook or manifest against it and confirm the bridge registers with the central server. Then run a test conference from outside the test network to confirm that 80/TCP, 443/TCP and 10000/UDP reach the right hosts. Done when the bridge appears as connected in the server logs and the test conference carries audio and video.
Run the playbook twice to confirm idempotence
Run the same playbook or manifest a first time against a clean host, then run it again immediately with no changes to inputs. The second run should report no changes, which shows the automation does not restart services or rewrite files needlessly. Repeat the test conference afterward to confirm nothing drifted. Done when the second run is clean and the conference still works. Record the run output with the change history so reviewers can compare future runs.
Confirm the scalable layout before adding bridges
Add a second bridge through the same role and confirm it registers with the central server without manual edits to the central host. Ask your team to verify that the Jitsi scalable setup guide's recommendations, including configuration management for building a scalable infrastructure, match what you have built. Confirm sizing and network capacity for each bridge with your own load tests rather than assumptions. Done when a new bridge joins the pool by running the playbook alone.
How the control node, central server and bridges fit together
The operator's control node holds the playbooks or manifests and the vault of secrets, then pushes configuration to the central server (web server, Prosody and Jicofo) and to each Jitsi Videobridge host. Browsers reach the central server over 443/TCP for the web app and signaling, while media travels over 10000/UDP directly to the bridges. Check that every bridge renders from the same templates and variables, and that the secrets never leave the trust boundary in plain text.
Control node pushes configuration to the central server and each bridge, while clients connect directly.
Security risks in automated Jitsi configuration
Configuration management makes every Jitsi bridge, Prosody host and proxy identical, which also makes a single mistake or compromise reach all of them at once. The cards below cover the risks that come with that automation and the control to apply to each, so the automation reduces exposure rather than spreading it.
Committed secrets in templates
Playbooks and Puppet modules often hold the XMPP component passwords, the JVB and Jicofo shared secrets, and JWT signing keys that connect Prosody, Jicofo and videobridges. If these values are written into templates in a Git repository, anyone with read access to the repository holds them, and history keeps them after removal. Keep secrets in encrypted variables such as Ansible Vault or Puppet's encrypted data stores, and check the repository history for values already committed before you rotate them.
Compromised control node
The machine that runs Ansible or the Puppet master can push configuration to every bridge, and an attacker who controls it can change the Jicofo and Prosody settings on all of them in one run. Restrict who can log in to the control node, keep its SSH keys and vault passwords off shared accounts, and separate the duty to approve changes from the duty to run them. Confirm the control node is patched and monitored like the Jitsi hosts it manages.
Drift from manual hotfixes
During an incident an operator may edit config.js or a videobridge setting directly on one host. The next automated run either silently reverts that change or leaves that host different from its peers, and the bridges stop behaving the same way. Schedule a check mode or drift report that compares live files with the declared state, and require that every hotfix is back-ported into the templates before the incident is closed.
Over-broad service accounts
Automation usually connects with an account that has root or unrestricted sudo on every Jitsi host, so a leaked key gives full control of the media path. Grant the account only the privileges needed to install packages and write the Jitsi configuration directories, restrict it to the hosts in its group, and use separate accounts for the central server and the bridges. Ask your team which commands the account can run and review that list whenever the playbook changes.
Certificate material distribution
Automation often copies TLS private keys to every host behind the same name, which spreads key material to machines that do not need it and makes revocation harder. Keep the private key on the proxy or the host that terminates TLS, distribute only the certificate chain where other components need it, and restrict file modes and owners on the key. Confirm with your certificate process how renewals reach each host and how a compromised key would be replaced.
Configuration management options and when each fits
This table compares manual configuration, Ansible and Puppet for keeping several Jitsi videobridges and the central server identical. Read each row as a question to answer for your own team, since the right choice depends mostly on the skills you already have and how many bridges you expect to run.
| Factor | Manual configuration | Ansible | Puppet |
|---|---|---|---|
| Agent model | No agent. An operator logs in to each server and edits files or runs installers by hand. | Agentless. Control node connects over SSH and pushes playbooks to each Jitsi host. | Agent based. A Puppet agent on each host pulls a catalog from a Puppet server on a schedule. |
| Skills needed | Linux administration and Jitsi knowledge, with no tooling to learn. | YAML, Jinja2 templates and SSH key management. Usually familiar to Linux operations teams. | Puppet language and server administration. Usually a dedicated skill set that a team must build or hire. |
| Templating Prosody, Jicofo, videobridge, nginx and config.js | Edited by hand on each host, so files drift apart over time. | Jinja2 templates keyed by inventory group, so every bridge renders the same files from one source. | Epp or Erb templates managed as code, rendered from classes assigned to node groups. |
| Secrets handling | Passwords typed or copied per server, often left in shell history or notes. | Encrypted with Ansible Vault or sourced from an external secrets store. Confirm the approach your security team accepts. | Hiera with an encrypted backend or an external lookup. Confirm which backend meets your key management policy. |
| Drift detection | Relies on operator discipline. Differences between bridges usually surface only during an incident. | Check mode and repeated runs report changes, but drift is found only when a playbook runs. | Agents report configuration state on each run, so unexpected changes are visible between deployments. |
| Few bridges (illustrative: two or three) | Workable for a small team that changes little, but every change must be repeated by hand. | Usually proportionate. Little infrastructure to run beyond the control node. | Often more infrastructure than the bridge count justifies, including a server to maintain. |
| Larger fleet or many environments | Hard to keep identical and hard to audit. Not advisable for growing deployments. | Scales through inventories and roles. Pipeline runs need controlled access to credentials. | Scales well with node classification and reporting, provided the team maintains the server. |
| Module and version fit | No module to match. Config files follow the Jitsi release notes you apply by hand. | Confirm that a maintained role or your own role covers your Jitsi release and OS version before you rely on it. | Confirm module availability and versions for your Jitsi release before adopting an existing module. |
Questions buyers ask before automating Jitsi
Can a small team automate a Jitsi deployment in-house?
Yes, if at least one person already runs Linux servers, understands DNS and TLS, and has time to learn the Jitsi component layout first. The Jitsi scalable setup guide says building a scalable infrastructure is not a task for beginning Jitsi administrators and recommends configuration management tools such as Ansible or Puppet, so the skill gap is the real question. A team that has never run a single Jitsi server should first build one by hand, confirm it works, and then write playbooks or manifests from that known-good state. Ask whether the people who will maintain the code can also answer a bridge outage at night. If not, budget for a partner or a retainer, and write that decision down before the first role is written.
What makes the automation effort grow?
The main drivers are the number of videobridges, the tooling you already run, how certificates are issued, and whether you deploy with Debian packages or Docker. Each additional bridge is more hosts to keep identical, more firewall rules for 10000/UDP, and more configuration to test. Existing tooling matters because a team that already uses Ansible, Puppet, or a secrets store can extend those roles instead of adopting a new system. Certificate handling adds work when you use Let's Encrypt renewal on some hosts and an internal CA on others. Docker deployments shift effort toward the .env file, generated passwords, and compose overrides, while package deployments put more weight on the Prosody and Jicofo configuration files. Ask any partner to state these assumptions in the written scope.
How many bridges justify a configuration management tool?
The handbook's advice applies once you move beyond one server, because a single host is easy to rebuild by hand and two or more hosts start to drift. Any setup with more than one videobridge should be templated so that each bridge receives the same packages, the same sip-communicator.properties values, and the same nginx settings. Illustrative example: a team with one central server and three bridges changes a region-specific domain once, and the playbook pushes it to all three rather than three manual edits that differ by a typo. Confirm the bridge count you plan for growth, not only for launch, because the cost of retrofitting automation later is higher than writing it at the start.
What does the team need to run this work?
The team needs Linux administration skills, a method for managing secrets, and a test environment that matches production closely enough to catch mistakes. Playbook and manifest authors must understand how Prosody, Jicofo, the videobridge, and nginx depend on each other, because a wrong hostname in one template breaks signalling without any obvious error. Secrets such as XMPP component passwords and the Docker .env values should never sit in plain text in the repository. Use a vault or encrypted variables and document who can read them. A staging environment with at least one bridge lets you test a change before it reaches users. Ask any partner to show how they handle these three items before you agree on the scope.
How do upgrades work through the automation?
Upgrades should be a version change in one variable, applied through the same playbook or manifest that built the server, followed by tests on staging. Jitsi Meet stable releases are tagged by build number, for example stable/jitsi-meet_11248, so the pinned version should be recorded in code and changed through review. For Docker, the rootless container release introduced directory changes, so upgrade roles must handle the storage paths that release expects before they restart containers. Plan a rollback path, such as keeping the previous image tag and configuration snapshot. Check the Jitsi upgrade notes for each release before pinning a new version, since package and container changes differ. Confirm in your written scope who performs upgrades and how often they are scheduled.
What recurring work remains after automation?
Automation removes repeated manual configuration but does not remove operations. Recurring work includes certificate renewal checks, package and container updates, reviewing firewall rules for 10000/UDP and the optional TCP fallback port, rotating secrets, and watching capacity as meeting load grows. Someone must still read logs, respond to failed runs, and confirm that a new bridge joined the pool. Drift checks should run on a schedule so that a manual change on one host is detected. Ask whether the scope covers these tasks as ongoing support, as a retainer, or as the customer's own responsibility. Ongoing support, upgrades and continuous testing are available as retainers from DeployOpen, and the written scope should state which of these tasks sit in that retainer.
What does a fixed-scope automation engagement usually cover?
Most DeployOpen engagements are fixed-scope, meaning scope, deliverables and timelines are agreed in writing before work starts. For automation, a typical written scope lists the target platform (Debian packages or Docker), the number of central and bridge hosts, the components to template (Prosody, Jicofo, the videobridge, nginx and config.js), how secrets are stored, the test environment, handover documentation, and a verification step on staging. It should also name what is excluded, such as custom web builds, third-party integrations, or 24-hour monitoring. DeployOpen does not publish a price list, so ask for a quote that follows from this written scope and compare quotes only when the scopes match.
Limits to confirm before you automate
Ansible or Puppet code only reproduces what it was written against. The cards below cover the release, roles, operating system, authentication and install method that must match your environment before any playbook or manifest runs. Confirm each one first, because a mismatch shows up later as a failed bridge or a broken login rather than a clear error.
Exact release and build tag
Record the precise Jitsi Meet build tag you intend to deploy, not just a major version. The jitsi-meet repository tags stable releases by build number, for example stable/jitsi-meet_11248, so a playbook pinned to one tag may not match a server that was installed from a different one. Pin the same tag in your role variables, and confirm that every videobridge, the central server and any web build use it. A bridge on a different build than its peers is a common cause of intermittent conference failures.
jitsi-meet repositoryCommunity roles match the install method
Community Ansible roles and Puppet modules are written for a particular install path, either the Debian packages or the Docker setup. Before you adopt one, confirm which path it configures, which Prosody, Jicofo and videobridge files it templates, and whether it still matches the current configuration layout. A role that writes package configuration files on a Docker host will appear to succeed while changing nothing that runs. Review the module source and test it against a disposable host.
Supported operating system versions
The Debian and Ubuntu quick start supports Debian 12 (Bookworm) or newer and Ubuntu 24.04 or newer, and it requires OpenJDK 17. Your automation should assert these versions at the start of each run and fail early on anything older. Images built from an older base can pass a role's package tasks yet fail later on Java or repository mismatches. Confirm the baseline image your cloud or data center provides before you write the first task.
Compatibility with your authentication method
Authentication settings differ by install method. The Docker guide offers internal XMPP accounts, JWT tokens, LDAP, Matrix user verification and a hybrid Matrix plus JWT mode, set through the .env file, while the handbook marks the secure domain method as deprecated for new installations and recommends JWT with a separate anonymous domain. Confirm which method you are templating, and make sure your playbook does not generate the deprecated settings. Secrets for JWT and internal accounts also need a vault or secret store, not plain variables in the repository.
Token authentication guideDocker or packages as the target
Decide whether the automation targets Debian packages or the docker-jitsi-meet setup before writing any role. Packages write files such as Prosody and Jicofo configuration under system paths and are managed by the operating system, while Docker keeps configuration in a .env file and runs rootless containers with read-only filesystems since stable-11146. The two paths do not share templates, so a single codebase for both doubles the testing. Pick one target per fleet and document the reason, so upgrades follow the same route for every server.
Docker setup guideHow DeployOpen scopes and delivers Jitsi automation
DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure, including the configuration management that keeps Jitsi Meet servers consistent. For Automating Jitsi deployments with Ansible or Puppet, we start from the written scope and build the automation in your environment so your team can review and operate it.
How we scope
- Agree in writing which servers, roles and Jitsi components the automation will cover before work starts
- Confirm the target platforms, the Ansible or Puppet tooling your team already uses, and where the code will be stored
- List the secrets, certificates and environment-specific values that must stay outside the templates
- Define the test environment, acceptance checks and handover steps as part of the fixed scope
How we build
- Write roles or modules for Prosody, Jicofo, videobridge, nginx and config.js, driven by inventory variables
- Keep videobridge hosts identical by generating their configuration from one shared source of truth
- Build secret handling and certificate placement into the playbooks or manifests so no credentials sit in plain text
- Test runs against a non-production environment and check idempotency before anything reaches live bridges
How we hand over
- Deliver the code repository, variable reference and a runbook describing how to add or replace a bridge
- Document the rollout order, rollback steps and the checks to run after each change to the Jitsi servers
- Walk your operators through a test deployment so they can run the automation without DeployOpen present
- Include a list of open items, such as settings to confirm with your network or identity team, in the handover
How we support
- Agree on whether ongoing support, upgrades and continuous testing run under a retainer after handover
- Review the automation when Jitsi Meet releases change the configuration files it expects
- Retest the playbooks or manifests after platform updates and after changes to your network or certificate setup
- Scope any further changes, such as new bridges or regions, as separate written work

