在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:geerlingguy/mac-dev-playbook开源软件地址:https://github.com/geerlingguy/mac-dev-playbook开源编程语言:Shell 62.3%开源软件介绍:Mac Development Ansible PlaybookThis playbook installs and configures most of the software I use on my Mac for web and software development. Some things in macOS are slightly difficult to automate, so I still have a few manual installation steps, but at least it's all documented here. Installation
Use with a remote MacYou can use this playbook to manage other Macs as well; the playbook doesn't even need to be run from a Mac at all! If you want to manage a remote Mac, either another Mac on your network, or a hosted Mac like the ones from MacStadium, you just need to make sure you can connect to it with SSH:
Then edit the
If you need to supply an SSH password (if you don't use SSH keys), make sure to pass the Running a specific set of tagged tasksYou can filter which part of the provisioning process to run by specifying a set of tags using
Overriding DefaultsNot everyone's development environment and preferred software configuration is the same. You can override any of the defaults configured in homebrew_installed_packages:
- cowsay
- git
- go
mas_installed_apps:
- { id: 443987910, name: "1Password" }
- { id: 498486288, name: "Quick Resizer" }
- { id: 557168941, name: "Tweetbot" }
- { id: 497799835, name: "Xcode" }
composer_packages:
- name: hirak/prestissimo
- name: drush/drush
version: '^8.1'
gem_packages:
- name: bundler
state: latest
npm_packages:
- name: webpack
pip_packages:
- name: mkdocs
configure_dock: true
dockitems_remove:
- Launchpad
- TV
dockitems_persist:
- name: "Sublime Text"
path: "/Applications/Sublime Text.app/"
pos: 5 Any variable can be overridden in Included Applications / Configuration (Default)Applications (installed with Homebrew Cask):
Packages (installed with Homebrew):
My dotfiles are also installed into the current user's home directory, including the Finally, there are a few other preferences and settings added on for various apps and services. Future additionsThings that still need to be done manuallyIt's my hope that I can get the rest of these things wrapped up into Ansible playbooks soon, but for now, these steps need to be completed manually (assuming you already have Xcode and Ansible installed, and have run this playbook).
Configuration to be added:
Testing the PlaybookMany people have asked me if I often wipe my entire workstation and start from scratch just to test changes to the playbook. Nope! Instead, I posted instructions for how I build a Mac OS X VirtualBox VM, on which I can continually run and re-run this playbook to test changes and make sure things work correctly. Additionally, this project is continuously tested on GitHub Actions' macOS infrastructure. Ansible for DevOpsCheck out Ansible for DevOps, which teaches you how to automate almost anything with Ansible. AuthorThis project was created by Jeff Geerling (originally inspired by MWGriffin/ansible-playbooks). |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论