-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: chez-shanpu <[email protected]>
- Loading branch information
1 parent
5acd4de
commit ab7285c
Showing
30 changed files
with
195 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,5 @@ $ vagrant up --provisioning | |
$ vagrant halt | ||
$ vagrant destroy | ||
``` | ||
|
||
## Test with Lima |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
github_user: chez-shanpu | ||
ghq_root: '{{ lookup("env","HOME") }}/ghq' | ||
repos_root: '{{ ghq_root }}/github.com/{{ github_user }}' | ||
dotfiles_path: '{{ repos_root }}/dotfiles' | ||
repos_root: '{{ ghq_root }}/github.com/{{ github_user }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | ||
test -d ~/.linuxbrew && eval "$(~/.linuxbrew/bin/brew shellenv)" | ||
test -d /home/linuxbrew/.linuxbrew && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" | ||
echo "eval \"\$($(brew --prefix)/bin/brew shellenv)\"" >> ~/.bashrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
SHELL:=/bin/bash | ||
|
||
VM_NAME=dev-provisioning | ||
VM_OPTS=--arch x86_64 | ||
VM_WORKDIR=--workdir ~/ghq/github.com/chez-shanpu/dev-provisioning/ | ||
|
||
.PHONY: lima | ||
lima: | ||
ifeq (, $(shell which limactl)) | ||
brew install lima | ||
else | ||
@echo "lima is already exits." | ||
endif | ||
|
||
.PHONY: setup | ||
setup: lima | ||
limactl create $(VM_OPTS) --name=$(VM_NAME) template://default | ||
limactl start $(VM_NAME) | ||
limactl shell $(VM_WORKDIR) $(VM_NAME) sudo apt-get update | ||
limactl shell $(VM_WORKDIR) $(VM_NAME) sudo apt-get install -y make | ||
|
||
.PHONY: clean | ||
clean: | ||
-limactl stop $(VM_NAME) | ||
limactl delete $(VM_NAME) | ||
|
||
.PHONY: all | ||
all: lima setup | ||
|
||
.DEFAULT_GOAL=all |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
- include_tasks: debian.yaml | ||
- name: Setup C in Debian | ||
ansible.builtin.include_tasks: debian.yaml | ||
when: ansible_os_family == "Debian" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
--- | ||
- include_tasks: darwin.yaml | ||
- name: Setup docker in Darwin | ||
ansible.builtin.include_tasks: darwin.yaml | ||
when: ansible_os_family == "Darwin" | ||
|
||
- include_tasks: ubuntu.yaml | ||
- name: Setup docker in Ubuntu | ||
ansible.builtin.include_tasks: ubuntu.yaml | ||
when: ansible_distribution == "Ubuntu" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
--- | ||
- include_tasks: darwin.yaml | ||
- name: Setup fish in Darwin | ||
ansible.builtin.include_tasks: darwin.yaml | ||
when: ansible_os_family == "Darwin" | ||
|
||
- include_tasks: debian.yaml | ||
- name: Setup fish in Debian | ||
ansible.builtin.include_tasks: debian.yaml | ||
when: ansible_os_family == "Debian" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
--- | ||
- block: | ||
- name: brew tap homebrew/cask-fonts | ||
community.general.homebrew_tap: tap=homebrew/cask-fonts state=present | ||
- name: Do brew tap homebrew/cask-fonts | ||
community.general.homebrew_tap: | ||
name: homebrew/cask-fonts | ||
state: present | ||
|
||
- name: Install fonts | ||
community.general.homebrew_cask: | ||
name: | ||
- font-ricty-diminished | ||
- font-powerline-symbols | ||
- font-cica | ||
|
||
tags: font_install | ||
- name: Install fonts | ||
community.general.homebrew_cask: | ||
name: | ||
- font-ricty-diminished | ||
- font-powerline-symbols | ||
- font-cica |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
--- | ||
- include_tasks: darwin.yaml | ||
- name: Setup font in Darwin | ||
ansible.builtin.include_tasks: darwin.yaml | ||
when: ansible_os_family == "Darwin" | ||
|
||
- include_tasks: debian.yaml | ||
- name: Setup font in Debian | ||
ansible.builtin.include_tasks: debian.yaml | ||
when: ansible_os_family == "Debian" |
Oops, something went wrong.