Skip to content

Instantly share code, notes, and snippets.

@aussielunix
Last active July 29, 2023 21:32
Show Gist options
  • Select an option

  • Save aussielunix/fb1ef2d906183604e3268aa86353bcb3 to your computer and use it in GitHub Desktop.

Select an option

Save aussielunix/fb1ef2d906183604e3268aa86353bcb3 to your computer and use it in GitHub Desktop.

Revisions

  1. aussielunix revised this gist Jan 13, 2023. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions Day0.md
    Original file line number Diff line number Diff line change
    @@ -24,8 +24,6 @@ After factory resetting the maching you will need to do the following things to
    * `ssh-add`
    * Clone (or your fork of) https://github.com/geerlingguy/mac-dev-playbook to laptop
    * `git clone git@github.com:geerlinguuy/mac-dev-playbook.git ~/.macup`
    * Set a convenient alias for running this playbook
    * `alias macup='ANSIBLE_CONFIG=~/.macup/ansible.cfg ansible-playbook -i ~/.macup/inventory ~/.macup/main.yml -K'`
    * airdrop your custom `config.yml` into `~/.macup/` on your new laptop
    * Install roles and collections
    * `cd ~/.macup && ansible-galaxy install -r requirements.yml`
  2. aussielunix revised this gist Jun 30, 2021. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions Day0.md
    Original file line number Diff line number Diff line change
    @@ -10,6 +10,8 @@ After factory resetting the maching you will need to do the following things to
    * `export PATH="$HOME/Library/Python/3.8/bin:$PATH"`
    * Upgrade python's pip
    * `sudo pip3 install --upgrade pip`
    * Install `libyaml` See [Jeff Geerling's Post](https://www.jeffgeerling.com/blog/2021/ansible-might-be-running-slow-if-libyaml-not-available) as to why
    * `python3 -m pip install --user libyaml`
    * Install Ansible
    * `python3 -m pip install --user ansible`
    * Setup ssh keys
  3. aussielunix revised this gist Jun 16, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Day0.md
    Original file line number Diff line number Diff line change
    @@ -26,7 +26,7 @@ After factory resetting the maching you will need to do the following things to
    * `alias macup='ANSIBLE_CONFIG=~/.macup/ansible.cfg ansible-playbook -i ~/.macup/inventory ~/.macup/main.yml -K'`
    * airdrop your custom `config.yml` into `~/.macup/` on your new laptop
    * Install roles and collections
    * `ansible-galaxy install -r requirements.yml`
    * `cd ~/.macup && ansible-galaxy install -r requirements.yml`
    * Some things on an M1 Mac will fail due to not having Rosetta 2.
    * Install Rosetta 2
    * `sudo softwareupdate --install-rosetta`
  4. aussielunix revised this gist Jun 16, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Day0.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Day 0 - Bootstrap a MacBook Pro with Ansible
    # Day 0 - Bootstrap MacOS with Ansible

    After factory resetting the maching you will need to do the following things to bootstrap it with [Ansible](https://github.com/geerlingguy/mac-dev-playbook).

  5. aussielunix revised this gist Jun 16, 2021. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion Day1Plus.md
    Original file line number Diff line number Diff line change
    @@ -10,4 +10,3 @@ There is two locations you should make changes that work with this automation.
    Tune the settings in `~/.macup/config.yml` or your `.osx` file which this automation can run for you.

    After a change is made to either, run `macup`. That is it.
    Oh and don't forget to commit the change to your repository.
  6. aussielunix revised this gist Jun 16, 2021. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions Day1Plus.md
    Original file line number Diff line number Diff line change
    @@ -7,6 +7,7 @@ To lower the time to being productive on a new MacOS install.
    ## How

    There is two locations you should make changes that work with this automation.
    Tune setting in `~/.macup/config.yml` or your `.osx` file which this automation can run for you.
    Tune the settings in `~/.macup/config.yml` or your `.osx` file which this automation can run for you.

    After a change is made to either, run `macup`. That is it. Oh and don't forget to commit the change to your repository.
    After a change is made to either, run `macup`. That is it.
    Oh and don't forget to commit the change to your repository.
  7. aussielunix revised this gist Jun 16, 2021. 1 changed file with 8 additions and 1 deletion.
    9 changes: 8 additions & 1 deletion Day1Plus.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,12 @@
    # Day 2 plus - Mainting MacOS with Ansible
    # Day 1 plus - Maintaining MacOS with Ansible

    ## Why

    To lower the time to being productive on a new MacOS install.

    ## How

    There is two locations you should make changes that work with this automation.
    Tune setting in `~/.macup/config.yml` or your `.osx` file which this automation can run for you.

    After a change is made to either, run `macup`. That is it. Oh and don't forget to commit the change to your repository.
  8. aussielunix revised this gist Jun 16, 2021. 2 changed files with 6 additions and 1 deletion.
    2 changes: 1 addition & 1 deletion MacOS_Bootstrap.md → Day0.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Bootstrap a MacBook Pro with Ansible
    # Day 0 - Bootstrap a MacBook Pro with Ansible

    After factory resetting the maching you will need to do the following things to bootstrap it with [Ansible](https://github.com/geerlingguy/mac-dev-playbook).

    5 changes: 5 additions & 0 deletions Day1Plus.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    # Day 2 plus - Mainting MacOS with Ansible

    ## Why

    To lower the time to being productive on a new MacOS install.
  9. aussielunix revised this gist Jun 16, 2021. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion MacOS_Bootstrap.md
    Original file line number Diff line number Diff line change
    @@ -37,5 +37,4 @@ After factory resetting the maching you will need to do the following things to
    * Create an alias for conveniently running Ansible with this specific config.
    * `alias macup='ANSIBLE_CONFIG=~/.macup/ansible.cfg ansible-playbook -i ~/.macup/inventory ~/.macup/main.yml -K'`
    * Configure laptop
    * `macup --tags dotfiles,homebrew`
    * `macup`
  10. aussielunix revised this gist Jun 16, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions MacOS_Bootstrap.md
    Original file line number Diff line number Diff line change
    @@ -31,6 +31,7 @@ After factory resetting the maching you will need to do the following things to
    * Install Rosetta 2
    * `sudo softwareupdate --install-rosetta`
    * Grant "full disk access" permissions to terminal to be allowed to change settings etc
    * This is to allow the `.osx` file to make changes
    * In `System Preferences --> Privacy --> Full Disk Access` select `Terminal`
    * Quit terminal and reopen before continuing
    * Create an alias for conveniently running Ansible with this specific config.
  11. aussielunix revised this gist Jun 16, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion MacOS_Bootstrap.md
    Original file line number Diff line number Diff line change
    @@ -23,7 +23,7 @@ After factory resetting the maching you will need to do the following things to
    * Clone (or your fork of) https://github.com/geerlingguy/mac-dev-playbook to laptop
    * `git clone git@github.com:geerlinguuy/mac-dev-playbook.git ~/.macup`
    * Set a convenient alias for running this playbook
    * `alias pajuna='ANSIBLE_CONFIG=~/.macup/ansible.cfg ansible-playbook -i ~/.macup/inventory ~/.macup/main.yml -K'`
    * `alias macup='ANSIBLE_CONFIG=~/.macup/ansible.cfg ansible-playbook -i ~/.macup/inventory ~/.macup/main.yml -K'`
    * airdrop your custom `config.yml` into `~/.macup/` on your new laptop
    * Install roles and collections
    * `ansible-galaxy install -r requirements.yml`
  12. aussielunix created this gist Jun 16, 2021.
    40 changes: 40 additions & 0 deletions MacOS_Bootstrap.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,40 @@
    # Bootstrap a MacBook Pro with Ansible

    After factory resetting the maching you will need to do the following things to bootstrap it with [Ansible](https://github.com/geerlingguy/mac-dev-playbook).

    * Set default shell to bash `chsh -s /bin/bash` (optional)
    * Open the App Store and sign in (but do not install anything)
    * Install command line tools
    * `xcode-select --install`
    * Add Python 3.8 to the $PATH
    * `export PATH="$HOME/Library/Python/3.8/bin:$PATH"`
    * Upgrade python's pip
    * `sudo pip3 install --upgrade pip`
    * Install Ansible
    * `python3 -m pip install --user ansible`
    * Setup ssh keys
    * airdrop ssh key pair from working MacBook
    * `mkdir ~/.ssh`
    * `mv ~/Downloads/id_rsa* ~/.ssh/`
    * `chmod 0400 ~/.ssh/id_rsa`
    * `chmod 0644 ~/.ssh/id_rsa.pub`
    * `chmod 0700 ~/.ssh`
    * `ssh-add`
    * Clone (or your fork of) https://github.com/geerlingguy/mac-dev-playbook to laptop
    * `git clone git@github.com:geerlinguuy/mac-dev-playbook.git ~/.macup`
    * Set a convenient alias for running this playbook
    * `alias pajuna='ANSIBLE_CONFIG=~/.macup/ansible.cfg ansible-playbook -i ~/.macup/inventory ~/.macup/main.yml -K'`
    * airdrop your custom `config.yml` into `~/.macup/` on your new laptop
    * Install roles and collections
    * `ansible-galaxy install -r requirements.yml`
    * Some things on an M1 Mac will fail due to not having Rosetta 2.
    * Install Rosetta 2
    * `sudo softwareupdate --install-rosetta`
    * Grant "full disk access" permissions to terminal to be allowed to change settings etc
    * In `System Preferences --> Privacy --> Full Disk Access` select `Terminal`
    * Quit terminal and reopen before continuing
    * Create an alias for conveniently running Ansible with this specific config.
    * `alias macup='ANSIBLE_CONFIG=~/.macup/ansible.cfg ansible-playbook -i ~/.macup/inventory ~/.macup/main.yml -K'`
    * Configure laptop
    * `macup --tags dotfiles,homebrew`
    * `macup`