Ansible playbook for consistent yet flexible congfiguration of your Mac machines.
Install xcode cli development tools (you will need this anyhow).
To initiante request for installation, run git
command in your terminal.
Run this command in your terminal
# introduce java-like reversed domain name notation for saving git repositories locally
mkdir -p ~/develop/com.github/disfinder/pimp-my-mac/ && cd "$_" && git clone https://github.com/disfinder/pimp-my-mac.git .
Playbook will search for anything inside projects
folder and process discovered data.
Multiproject configuration support:
- git configuration
- bash configuration
- variable configuration
- ssh configuration
projects/PROJECTNAME/project_vars.yaml
must list git includedirs, if gitconfig usage is expected for the project:
git_includeif:
- dir: ~/develop/com.github/PROJECTNAME/
path: ~/opt/dotfiles/projects/PROJECTNAME/gitconfig
Warning
/
at the path's end is crucial for dir:
value.
To make this work, add into .gitattributes
# or *.vault.yml, or *-vault.yml, or whatever convention you use for vaults
vault.yml diff=ansible-vault
Honorable link with quote:
git runs this ansible-vault command from the root directory of the repository (irrespective of where you run git diff from). Therefore you will need to have an ansible.cfg file there that defines where the vault password file is relative to that directory. If your existing ansible.cfg with vault_password_file is lower in your tree, you will need to make another one in root of repo for this diffing to work.
Once I got that sorted, this gist was very helpful in getting my vault diffii ng to work. Thanks muchly.