Skip to content

Latest commit

 

History

History
74 lines (52 loc) · 1.43 KB

README.md

File metadata and controls

74 lines (52 loc) · 1.43 KB

mac-setup

Ansible Code to setup Mac environment

Prerequisites

HomeBrew

xcode-select --install
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Pyenv & Python

pyenv guide

brew update
brew install openssl readline sqlite3 xz zlib
brew install pyenv

pyenv install 3.9.10
pyenv global 3.9.10
$(pyenv which python3) -m pip install virtualenvwrapper

Add to to .zshrc or .bash_profile

export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"
export WORKON_HOME=~/.virtualenvs
mkdir -p $WORKON_HOME
. ~/.pyenv/versions/3.9.10/bin/virtualenvwrapper.sh

Fira Code Theme

Download and extract. In the TTF folder select all and Open and install

Vscode

Standard install then turn on Setting sync to Elsevier GitHub. Check all boxes and then choose merge local

Ansible

mkvirtualenv ansible
pip install ansible
ansible-galaxy collection install community.general

Running

ansible-playbook mac-setup.yml --ask-become-pass

Note: Some Roles have a never tag on them as they are not very idempotent so will need to be specified directly e.g.

ansible-playbook mac-setup.yml --tags golang --ask-become-pass

Current never tags:

  • argo
  • golang
  • saml2aws
  • aws_cli