Skip to content

Automation Environment setup tool for Mac using by Ansible provisioning and Serverspec checks.

License

Notifications You must be signed in to change notification settings

tubone24/mac-auto-setup

Repository files navigation

Mac Automation Environment Setup Tool

license standard-readme compliant Build Status

header

Automation Env Setup tool for Mac

Automation Environment setup tool for Mac using by Ansible provisioning and Serverspec checks.

Table of Contents

Background

One day, every time I replaced my PC, I was getting tired of building my own familiar and useful PC environment.

So that, I created an automatic environment setup tool for Mac with Ansible.

Install

System Requirements

  • XCode
  • Homebrew
  • Ansible
  • Ruby v2.4.0 and more

Preconditions

This tool used by Homebrew, Ansible and Serverspec.

So, Install those apps before run this tool.

Install XCode and Homebrew

# Install XCode
$ xcode-select --install

# Install Homebrew
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

# Homebrew doctor: If error, Search by Google!
$ brew doctor

Install Ansible

# Install Ansible
$ brew install ansible

Git User Config

And also, Set Git config with 2 files.

  • Your name: git user name with commits
  • Your Email: git user email with commits

ansible/mac/roles/dev-tools/vars/main.yml

---
git:
  name: "Your name"
  mail: "Your Email"

serverspec/mac/variables.yml

  git_conf:
    - Your name
    - Your Email

Usage

# Setup your Mac with Ansible
make setup TARGET=mac

# Check your Mac with Serverspec
make before-check TARGET=mac
make check TARGET=mac

CI

This repo is integrated with Azure Develop Pipeline.

Run the Ansible playbook and the Serverspec on MacOSX Mojave.

The badge below shows Build Status.

Build Status

Technically Tips

Ansible

Server provisioning automation tool. The image used in SSH is strong, but there is also a function called local Exec.

It also supports Mac Homebrew.

Serverspec

Server automated test tools using by Ruby run a pre-prepared test script to check if the server is configured to meet the desired requirements.

You can check the command output and installation status.

License

MIT © tubone24

Install Apps

  • Alfred
  • asdf-vm
  • AppCleaner
  • Google Chrome
  • Dash(now not implement because of SSL Error)
  • Docker
  • Drone-CLI
  • Microsoft Visual Studio Code
  • Neovim
  • CotEditor
  • Elixir(via asdf-vm)
  • Erlang(via asdf-vm)
  • ffmpeg
  • Flutter
  • Ricty
  • Git
  • Go(via Goenv)
  • Google日本語入力
  • Gradle
  • The Unarchiver
  • IntellJ
  • iTerm2
  • Lua
  • Nim
  • Node.js(via nodenv)
  • Postman
  • Python(via Pyenv, virtual-env)
  • R
  • Ruby(via Rbenv)
  • Rust
  • Slack
  • Terraform(via Tfenv)
  • VirtualBox(Vagrant)
  • AWS-CLI
  • AWS-EB-CLI
  • Packer
  • jq
  • zsh
  • tmux
  • peco
  • wget
  • zplug
  • coreutils
  • tree
  • q
  • htop
  • editorconfig
  • figret
  • nmap
  • mycli
  • The Silver Searcher(ag)
  • TCP Trace Route

About

Automation Environment setup tool for Mac using by Ansible provisioning and Serverspec checks.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published