Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
kpatryk committed Nov 15, 2023
1 parent 26a3317 commit 6f4ce8c
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 21 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ bootstrap: ## Run Ansible to bootstrap tools on Mac
@ansible-playbook playbook/install.yml

tags: ## Show all tags
@ansible-playbook playbook/install.yml --list-tags
@ansible-playbook playbook/install.yml --list-tags | grep 'TASK TAGS' | sed 's/TASK TAGS: //' | tr -d '[]' | tr ',' '\n' | tr -d ' ' | sort

# Git hooks
init-hooks: ## Init Git hooks
Expand Down
46 changes: 26 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,25 @@
[![Ansible lint](https://github.com/patryk-gpl/jumpstart-macos/actions/workflows/lint.yml/badge.svg)](https://github.com/patryk-gpl/jumpstart-macos/actions/workflows/lint.yml)
[![SonarCloud analysis](https://github.com/patryk-gpl/jumpstart-macos/actions/workflows/sonar.yml/badge.svg)](https://github.com/patryk-gpl/jumpstart-macos/actions/workflows/sonar.yml)

- [Important](#important)
- [Tools](#tools)
- [Initial setup](#initial-setup)
- [App Store](#app-store)
- [Custom software from web](#custom-software-from-web)
- [Ansible](#ansible)
- [Cheat sheet](#cheat-sheet)
- [Minikube](#minikube)
- [Known issues](#known-issues)
- [Resources, links](#resources-links)
- [Ansible](#ansible-1)
- [Dev Tools](#dev-tools)
- [Kubernetes and K8S tools](#kubernetes-and-k8s-tools)
- [Sonar](#sonar)
- [Terraform and tools](#terraform-and-tools)
- [Github](#github)
- [Visual Studio Code extensions and settings](#visual-studio-code-extensions-and-settings)
- [jumpstart-macos](#jumpstart-macos)
- [Important](#important)
- [Tools](#tools)
- [Initial setup](#initial-setup)
- [App Store](#app-store)
- [Custom software from web](#custom-software-from-web)
- [Ansible](#ansible)
- [Cheat sheet](#cheat-sheet)
- [Minikube](#minikube)
- [Known issues](#known-issues)
- [Resources, links](#resources-links)
- [Security](#security)
- [Ansible](#ansible-1)
- [Dev Tools](#dev-tools)
- [Kubernetes](#kubernetes)
- [Sonar](#sonar)
- [Terraform](#terraform)
- [Github](#github)
- [Visual Studio Code extensions and settings](#visual-studio-code-extensions-and-settings)

This repository contain an automated procedure to jump-start installation and configuration of Mac OS.
The procedure assume Ansible is going to be used to keep configuration in sync.
Expand Down Expand Up @@ -50,7 +52,7 @@ This procedure was tested on Mac OS Apple Silicon M2:

### App Store

To install:
To install from App Store:

- Microsoft Teams

Expand Down Expand Up @@ -90,6 +92,10 @@ Restart Docker:

## Resources, links

### Security

- [How to disable SMB 1 or NetBIOS in macOS](https://support.apple.com/en-us/102050)

### Ansible

- Interpreter [discovery](https://docs.ansible.com/ansible/latest/reference_appendices/interpreter_discovery.html)
Expand All @@ -101,15 +107,15 @@ Restart Docker:
- 5 Ways to Manage Environment Variables with [direnv](https://www.sixfeetup.com/blog/direnv-manage-environment-variables)
- Custom [status badges](https://css-tricks.com/adding-custom-github-badges-to-your-repo/)

### Kubernetes and K8S tools
### Kubernetes

- Getting started with [Flux v2](https://fluxcd.io/flux/get-started/)

### Sonar

- SonarCloud [docs](https://docs.sonarcloud.io/)

### Terraform and tools
### Terraform

- [tfswitch](https://tfswitch.warrensbox.com/Install/) command line tool lets you switch between different versions of terraform

Expand Down
2 changes: 2 additions & 0 deletions playbook/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
tags:
- install-python-tools

- name: Install network tools
ansible.builtin.import_tasks: tasks/install/network_tools.yml
- name: Install default tools
ansible.builtin.import_tasks: tasks/install/default.yml
- name: Install office tools
Expand Down
10 changes: 10 additions & 0 deletions playbook/tasks/install/network_tools.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
- name: Install network tools
vars:
formula:
- mtr
loop: "{{ formula }}"
community.general.homebrew:
name: "{{ item }}"
tags:
- install-network-tools
5 changes: 5 additions & 0 deletions playbook/tasks/install/python.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---
- name: Install/Upgrade pip

Check failure on line 2 in playbook/tasks/install/python.yml

View workflow job for this annotation

GitHub Actions / Lint Ansible playbooks

fqcn[action-core]

Use FQCN for builtin module actions (pip).

Check failure on line 2 in playbook/tasks/install/python.yml

View workflow job for this annotation

GitHub Actions / Lint Ansible playbooks

package-latest

Package installs should not use latest.
pip:
name: pip
state: latest

- name: Install pipx via pip

Check failure on line 7 in playbook/tasks/install/python.yml

View workflow job for this annotation

GitHub Actions / Lint Ansible playbooks

fqcn[action-core]

Use FQCN for builtin module actions (pip).
pip:
name: pipx
Expand Down

0 comments on commit 6f4ce8c

Please sign in to comment.