-
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.
fix: various changes found while bootstrapping a new machine (#306)
- Loading branch information
Showing
6 changed files
with
41 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,23 @@ | ||
.PHONY: setup | ||
.PHONY: setup clean development_environment | ||
|
||
# Name of the virtual environment directory | ||
VENV := venv | ||
|
||
# Python executable inside the virtual environment | ||
PYTHON := $(VENV)/bin/python | ||
PIP := $(VENV)/bin/pip | ||
|
||
development_environment: setup | ||
ansible-playbook -i "localhost," playbook.yml --ask-become-pass | ||
|
||
setup: | ||
pip install -r requirements.txt | ||
pip freeze --user > requirements.txt | ||
setup: $(VENV)/bin/activate | ||
$(PIP) install -r requirements.txt | ||
$(PIP) freeze > requirements.txt | ||
test -d galaxy || ansible-galaxy install -p galaxy -f -r requirements.yml | ||
|
||
$(VENV)/bin/activate: | ||
test -d $(VENV) || python3 -m venv $(VENV) | ||
$(PYTHON) -m pip install --upgrade pip | ||
|
||
clean: | ||
rm -rf galaxy | ||
rm -rf galaxy $(VENV) |
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ Ansible playbooks that control my various computers | |
|
||
``` | ||
sudo apt update | ||
sudo apt install python3-pip | ||
sudo apt install python3-pip python3.11-venv | ||
export PATH=$HOME/.local/bin:$PATH | ||
USER=ubuntu make development_environment | ||
|
@@ -62,6 +62,7 @@ git config --global user.signingkey [email protected] | |
git config --global commit.gpgsign true | ||
git config --global user.name "Colin Hutchinson" | ||
git config --global push.default current | ||
git config --global init.defaultBranch main | ||
``` | ||
|
||
# Setup ssh private key | ||
|
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 |
---|---|---|
|
@@ -28,3 +28,5 @@ apt_things_to_install: | |
- gnome-screenshot | ||
- monkeysphere | ||
- openssh-server | ||
- net-tools | ||
- wireless-tools |
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