cookbook 'unifi', '~> 3.0.0'
unifi (7) Versions 3.0.0 Follow3
Installs UniFi OS Server on clean Linux hosts.
cookbook 'unifi', '~> 3.0.0', :supermarket
knife supermarket install unifi
knife supermarket download unifi
UniFi cookbook
Installs UniFi OS Server on a clean Linux host using the official vendor
installer. This cookbook does not manage backups, data migration, application
configuration or upgrades.
Cookbook 3 replaces the legacy UniFi Network Server recipes and attributes with
the [unifi_os_server](documentation/unifi_os_server.md) custom resource.
See [the cookbook API changes](migration.md) before upgrading.
Requirements
- Chef Infra Client 15.3+ or a compatible Cinc Client.
- Ubuntu 24.04+ or Debian 13+, running systemd.
- x86-64 or ARM64 CPU, at least 2 GB RAM and sufficient disk space for the vendor installer. Consult the official requirements for deployment sizing.
- A pinned official Linux installer URL matching the host architecture and its independently verified SHA-256 checksum.
Ubuntu and Debian distribution packages supply Podman, pasta and slirp4netns.
There is no Java cookbook dependency and no legacy UniFi APT repository.
Usage
Obtain an installer URL from the vendor download page,
verify its SHA-256 digest, then pass both explicitly:
unifi_os_server 'controller' do installer_url 'https://fw-download.ubnt.com/data/unifi-os-server/5172-linux-x64-5.1.42-12e9e3cf-8f8b-4e54-928c-76b80a10c8a4.42-x64' installer_checksum 'f6111e9396a42c74016f5dde9b01fbef486a6fe69efe137935e6e38b7c22f94d' end
This example is UniFi OS Server 5.1.42 for x86-64. Use the appropriate vendor
installer and digest for ARM64.
The resource installs host prerequisites, invokes the installer in non-interactive
pasta mode, and enables and starts uosserver.service. The vendor installer
performs its normal resource and port checks. Once installed, later converges do
not reinstall, downgrade or update UniFi OS Server. Product and application
updates remain outside this cookbook's scope.
Existing legacy Network Server state causes a clear failure before any packages,
services or data are changed. Installing the new product over an existing
controller, transferring data and uninstalling either product are outside scope.
Testing
See [TESTING.md](TESTING.md). Real installation tests require disposable systemd
VMs. The vendor does not support running UniFi OS Server as a standalone Docker
container.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
CHANGELOG
This file is used to list changes made in each version of the unfi cookbook.
3.0.0 (2026-11-12)
⚠ BREAKING CHANGES
- Replace legacy Network Server recipes and attributes with an install-only UniFi OS Server resource for Ubuntu 24.04+ and Debian 13+. Existing controller data is never migrated or removed.
Features
Bug Fixes
2.0.17 (2025-10-16)
Bug Fixes
v2.0.0 (2020-02-01)
- Get InSpec tests passing
- Bump minimum Chef Infra Client version to 13+ for
apt_updateresource - Add dependency on the
javacookbook and remove obsolete Java 6 support - Removed support for Debian 8 as openjdk is not easily available
- Removed unused long_description from metadata.rb
- Simplify platforms depends statements in the metadata
- Migrate to Github Actions for testing
v1.2.0 (2016-09-23)
- Add an attribute for setting the repo components so you can use unstable releases
- Require at least Chef 12.1
- Add chef_version metadata
- Misc testing improvements
v1.1.0 (2016-05-24)
- Ownership has been transferred from Orion Labs. Thanks for all the original work folks.
- Updated the PPA resource to work with the Apt 3.0 cookbook
- Added Debian as a supported platform
- Added contributing and testing docs
- Added Debian and Ubuntu 16.04 to the Test Kitchen config
- Added testing in Travis including Kitchen-Dokken integration testing
- Updated the metadata with issues_url and source_url metadata
- Resolved all cookstyle (rubocop) warnings
- Updated the Berksfile to point to the supermarket
- Added maintainers files with contact information
- Added a Rakefile for simplified testing
- Added Github templates for PRs and Issues
- Updated testing deps to the latest versions
- Changed from Rubocop to Cookstyle to bring in a set of sale defaults
- Existing build / CI files have been removed (Makefile, .ruby-version, Thorfile, Vagrantfile)
Collaborator Number Metric
3.0.0 passed this metric
Contributing File Metric
3.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Cookstyle Metric
3.0.0 passed this metric
No Binaries Metric
3.0.0 passed this metric
Testing File Metric
3.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
3.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
3.0.0 passed this metric
3.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Cookstyle Metric
3.0.0 passed this metric
No Binaries Metric
3.0.0 passed this metric
Testing File Metric
3.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
3.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
3.0.0 passed this metric
3.0.0 passed this metric
Testing File Metric
3.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
3.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
3.0.0 failed this metric
3.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number