fleet/docs/Using-Fleet/MDM-macOS-setup.md
Noah Talerman d524151eec
MDM docs: Explain what happens automatically (#11260)
- Add sentence to explain that Fleet installs fleetd automatically on
hosts
- Add sentence to explain that setup features require ABM
- On MDM macOS settings page, add sentence that explains that Fleet
automatically deploys a "Fleetd configuration" profile.
2023-04-21 17:16:46 -04:00

5.2 KiB

macOS setup

Available in Fleet Premium

In Fleet, you can customize the out-of-the-box macOS setup experience for your end users:

  • Require end users to authenticate with your identity provider (IdP) and agree to an end user license agreement (EULA) before they can use their new Mac

  • Customize the macOS Setup Assistant by choosing to show or hide specific panes

  • Install a bootstrap package to gain full control over the setup experience by installing tools like Puppet, Munki, DEP notify, custom scrips, and more.

In addition to the customization above, Fleet automatically installs the fleetd agent during out-of-the-box macOS setup. This agent is responsible for reporting host vitals to Fleet and presenting Fleet Desktop to the end user.

MacOS setup features require connecting Fleet to Apple Business Manager (ABM). Learn how here.

End user authentication

This feature is currently in development.

Bootstrap package

Fleet supports installing a bootstrap package on macOS hosts that automatically enroll to Fleet.

This enables installing tools like Puppet, Munki, or Chef for configuration management and/or running custom scrips and installing tools like DEP notify to customize the setup experience for you end users.

The following are examples of what some organizations deploy using a bootstrap package:

  • Munki client to install and keep software up to date on your Macs

  • Puppet agent to run custom scripts on your Macs

  • Custom scripts and several packages bundled into one bootstrap package using a tool like InstallApplications to install a base set of applications, set the Mac's background, and install the latest macOS update for the end user.

To add a bootstrap package to Fleet, we will do the following steps:

  1. Download or generate a package
  2. Sign the package
  3. Upload the package to Fleet

Step 1: download or generate a package

Whether you have to download or generate a package depends on what you want to deploy using your bootstrap package:

  • A single client or agent, like Munki or Puppet, can usually be downloaded from the tool's GitHub repository or website. For example, you can download Munki, the Munki client on their releases page on GitHub.

  • To deploy custom scripts, you need to generate a package. The munkipkg tool is a popular tool for generating packages.

Make sure your package is a .pkg file.

Step 2: sign the package

To sign the package we need a valid Developer ID Installer certificate.

  1. Login to your Apple Developer account.
  2. Follow Apple's instructions to create a Developer ID Installer certificate here.

During step 3 in Apple's instructions, make sure you choose "Developer ID Installer." You'll need this kind of certificate to sign the package.

Confirm that certificate is installed on your Mac by opening the Keychain Access application. You should see your certificate in the Certificates tab.

  1. Run the following command in the Terminal application to sign your package with your Developer ID certificate:
productsign --sign "Developer ID Installer: Your name (Serial number)" /path/to/package.pkg /path/to/signed-package.pkg

You might be prompted to enter the password for your local account.

Confirm that your package is signed by running the following command:

pkgutil --check-signature /path/to/signed-package.pkg

In the output you should see that package has a "signed" status.

Step 3: upload the package to Fleet

Fleet supports installing a unique bootstrap package for each team. In Fleet, a team is a group of hosts.

  1. Upload the package to a publicly accessible location on the internet. We'll point Fleet to this location so that Fleet can download the package.

  2. Create a team YAML document if you don't already have one. Learn how here. If you're uploading the package to a team that already exists, make sure the name key in your YAML document matches the name of the team.

If you want to install a bootstrap package on hosts that are assigned to "No team," use the config YAML document. Learn how to create one here.

  1. Add an mdm.macos_setup.bootstrap_package key to your YAML document. This key accepts an absolute URL to the location of the bootstrap package.
apiVersion: v1
kind: team
spec:
  team:
    name: Workstations
    mdm:
      macos_setup:
        bootstrap_package: https://github.com/organinzation/repository/bootstrap-package.pkg

Run the fleetctl apply -f <your-team-here>.yml command to upload your bootstrap package to Fleet.

macOS Setup Assistant

This feature is currently in development.