Ansible playbook to configure a development and desktop environment from a clean macOS install
Switch branches/tags
Nothing to show
Clone or download
Latest commit de05c48 Nov 7, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
group_vars wip Nov 7, 2018
roles wip Nov 7, 2018
.gitignore Breathe some life into this. Oct 23, 2017
Makefile wip Nov 7, 2018
README.md wip Nov 7, 2018
ansible.cfg wip Nov 7, 2018
bootstrap.yml Breathe some life into this. Oct 23, 2017
configure.sh wip Nov 7, 2018
hosts First commit. Dec 21, 2013
main.yml wip Nov 7, 2018

README.md

macbook-playbook

Automatically prepare a Macbook for development and desktop tasks using Ansible.

Last tested on

  • MacBookPro14,3 with macOS 10.12.6

Encrypted files (using Ansible Vault)

  • Private SSH key: ssh-keys/files/id_rsa
  • s3cmd configuraton: s3cmd/files/.s3cfg
  • Enviroment variables for dotfiles:dotfiles/vars/environment.yml
  • Prey API key: prey/vars/api_key.yml

Configuring machine

Manual steps

  1. Enable assistive access
  2. System preferences -> Keyboard -> Modifier Keys -> "Caps Lock -> Control" TODO
  3. Set up Spotify Last.fm connect

Clone repository

$ git clone https://github.com/mpereira/macbook-playbook.git

Prepare machine to run the Ansible playbooks (installs command line developer tools and Ansible)

$ make bootstrap

Create an Ansible Vault password

$ echo 'SomePassword123$' > .ansible_vault_password

Configure machine

$ make converge

Installs

Add:

  • go
  • dcos
  • markdown
  • shellcheck
  • pyre-check
  • cmake
  • xz
  • warsaw (módulo de segurança BB https://seg.bb.com.br/home.html)
  • rescuetime
  • yapf
  • ripgrep
  • terraform
  • hugo
  • black
  • rust
  • wrk
  • bash
  • wn
  • pandoc
  • consolas

TODO:

  • ansible's pip aren't working (pip uses python2.7 under the hood, can't seem to find packages on pypy). the black role for example uses python 3 -m pip install ... instead.

  • pip install with --prefix /usr/local instead of --user.

  • black can't be installed with --prefix /usr/local?

Traceback (most recent call last):
  File "/usr/local/bin/black", line 7, in <module>
    from black import main
ModuleNotFoundError: No module named 'black'

Desktop Applications

Text Editors

Communication

Configuration

Multimedia

Browser Plugins

Programming Languages

Virtualization

Shell

Haskell Utilities

Security

GNU Command Line Tools

  • binutils
  • coreutils
  • diffutils
  • ed
  • findutils
  • gawk
  • gnu-indent
  • gnu-sed
  • gnu-tar
  • gnu-which
  • gnutls
  • grep
  • gzip
  • screen
  • watch
  • wdiff
  • wget

UI

Data Systems

Configuration, Monitoring and Debugging

Document Processors

Package Managers and Build Tools

Miscellaneous

Configures

  • Passwordless sudo
  • Remaps Caps-Lock to Control (currently broken on macOS Sierra)
  • Puts SSH keys in place
  • Patches Monaco font for Powerline

Author

Murilo Pereira

License

MIT