/jumpstart-macos

Automate Mac OS setup

Primary LanguageShellGNU General Public License v3.0GPL-3.0

jumpstart-macos

Ansible lint SonarCloud analysis

This repository contain an automated procedure to jump-start installation and configuration of Mac OS. The procedure assume Ansible is going to be used to keep configuration in sync.

Important

This procedure was tested on Mac OS Apple Silicon M2:

# sysctl machdep.cpu.brand_string

machdep.cpu.brand_string: Apple M2 Pro

Tools

Initial setup

  1. Make sure you have installed homebrew on your Mac. Detailed instructions to be found here 2. Install required tools via brew install ansible direnv

  2. Install ZSH framework (in case zsh shell is used): sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

  3. Make sure your Git user and email are set.

    git config --global user.name FirstName LastName
    git config --global user.email email
    

    On new computer you can also set this one up:

    git config --global push.autoSetupRemote true
    git config --global branch.autoSetupRebase always
    

App Store

To install:

  • Microsoft Teams

Custom software from web

Ansible

Cheat sheet

  • Get a list of Ansible installed collections

      ansible-galaxy collection list
    

Minikube

To set a default driver with docker:

minikube config set driver docker

To add a local Docker registry:

minikube addons enable registry

Restart Docker:

sudo killall Docker && open /Applications/Docker.app

Known issues

  • Ansible requirements.txt needed with list of collections in order to work properly with Ansible linter running on Github Actions runner, see ansible-lint-action Issue-99

Resources, links

Ansible

Dev Tools

Kubernetes and K8S tools

Sonar

Terraform and tools

  • tfswitch command line tool lets you switch between different versions of terraform

Github

Visual Studio Code extensions and settings