Updated script include references.
This commit is contained in:
parent
6c95c870b0
commit
bd63558ee2
18 changed files with 31 additions and 31 deletions
|
@ -1,8 +1,8 @@
|
|||
{{- if (ne .host.distro.family "windows") -}}
|
||||
#!/usr/bin/env bash
|
||||
|
||||
{{ includeTemplate "universal/profile-bundle" }}
|
||||
{{ includeTemplate "universal/logg-bundle" }}
|
||||
{{ includeTemplate "universal/profile-before" }}
|
||||
{{ includeTemplate "universal/logg-before" }}
|
||||
|
||||
### Install Xcode CLI tools on macOS
|
||||
if [ -d /Applications ] && [ -d /Library ]; then
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{{- if (ne .host.distro.family "windows") -}}
|
||||
#!/usr/bin/env bash
|
||||
|
||||
{{ includeTemplate "universal/profile-bundle" }}
|
||||
{{ includeTemplate "universal/logg-bundle" }}
|
||||
{{ includeTemplate "universal/profile-before" }}
|
||||
{{ includeTemplate "universal/logg-before" }}
|
||||
|
||||
### Ensure node is installed
|
||||
if ! command -v node > /dev/null; then
|
||||
|
@ -50,4 +50,4 @@ if ! command -v zx > /dev/null; then
|
|||
else
|
||||
logg '`zx` is already installed'
|
||||
fi
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
|
||||
# Node.js version: {{ output "node" "--version" }}
|
||||
|
||||
{{ includeTemplate "universal/profile-bundle" }}
|
||||
{{ includeTemplate "universal/logg-bundle" }}
|
||||
{{ includeTemplate "universal/profile-before" }}
|
||||
{{ includeTemplate "universal/logg-before" }}
|
||||
|
||||
### Ensure recent version of Node.js is being used
|
||||
if command -v volta > /dev/null; then
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{{- if eq .host.distro.family "linux" -}}
|
||||
#!/usr/bin/env bash
|
||||
|
||||
{{ includeTemplate "universal/profile-bundle" }}
|
||||
{{ includeTemplate "universal/logg-bundle" }}
|
||||
{{ includeTemplate "universal/profile-before" }}
|
||||
{{ includeTemplate "universal/logg-before" }}
|
||||
|
||||
{{- $removePackages := join " " .removeLinuxPackages }}
|
||||
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
{{- if ne .host.distro.family "windows" -}}
|
||||
#!/usr/bin/env bash
|
||||
|
||||
{{ includeTemplate "universal/profile-bundle" }}
|
||||
{{ includeTemplate "universal/logg-bundle" }}
|
||||
{{ includeTemplate "universal/profile-before" }}
|
||||
{{ includeTemplate "universal/logg-before" }}
|
||||
|
||||
### Install Docker
|
||||
if [ -d /Applications ] && [ -d /System ]; then
|
||||
# macOS
|
||||
logg info 'Installing Docker on macOS via Homebrew cask'
|
||||
brew install --cask docker
|
||||
brew install --cask docker
|
||||
logg info 'Opening the Docker for Desktop app so that the Docker engine starts running'
|
||||
open --background -a Docker
|
||||
elif command -v apt-get > /dev/null; then
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# universal/common-dependencies hash: {{ include (joinPath ".chezmoitemplates" "universal" "common-dependencies") | sha256sum }}
|
||||
# archlinux/common-dependencies hash: {{ include (joinPath ".chezmoitemplates" "archlinux" "common-dependencies") | sha256sum }}
|
||||
|
||||
{{ includeTemplate "universal/logg-bundle" }}
|
||||
{{ includeTemplate "universal/logg-before" }}
|
||||
|
||||
{{- $packages := splitList " " (includeTemplate "universal/common-dependencies" .) -}}
|
||||
{{- $additionalPackages := splitList " " (includeTemplate "archlinux/common-dependencies" .) -}}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# universal/common-dependencies hash: {{ include (joinPath ".chezmoitemplates" "universal" "common-dependencies") | sha256sum }}
|
||||
# centos/common-dependencies hash: {{ include (joinPath ".chezmoitemplates" "centos" "common-dependencies") | sha256sum }}
|
||||
|
||||
{{ includeTemplate "universal/logg-bundle" }}
|
||||
{{ includeTemplate "universal/logg-before" }}
|
||||
|
||||
{{- $packages := splitList " " (includeTemplate "universal/common-dependencies" .) -}}
|
||||
{{- $additionalPackages := splitList " " (includeTemplate "centos/common-dependencies" .) -}}
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
# darwin/Brewfile hash: {{ include (joinPath ".chezmoitemplates" "darwin" "Brewfile") | sha256sum }}
|
||||
|
||||
{{ includeTemplate "universal/profile-bundle" }}
|
||||
{{ includeTemplate "universal/logg-bundle" }}
|
||||
{{ includeTemplate "universal/profile-before" }}
|
||||
{{ includeTemplate "universal/logg-before" }}
|
||||
|
||||
if command -v brew > /dev/null; then
|
||||
logg 'Installing base dependencies for macOS using `brew bundle`'
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
{{ includeTemplate "universal/profile-bundle" }}
|
||||
{{ includeTemplate "universal/logg-bundle" }}
|
||||
{{ includeTemplate "universal/profile-before" }}
|
||||
{{ includeTemplate "universal/logg-before" }}
|
||||
|
||||
### Ensure user has group of same name (required for Macports)
|
||||
logg info 'Ensuring user has a group with the same name and that it is a member. Sudo privileges may be required'
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# universal/common-dependencies hash: {{ include (joinPath ".chezmoitemplates" "universal" "common-dependencies") | sha256sum }}
|
||||
# debian/common-dependencies hash: {{ include (joinPath ".chezmoitemplates" "debian" "common-dependencies") | sha256sum }}
|
||||
|
||||
{{ includeTemplate "universal/logg-bundle" }}
|
||||
{{ includeTemplate "universal/logg-before" }}
|
||||
|
||||
{{- $packages := splitList " " (includeTemplate "universal/common-dependencies" .) -}}
|
||||
{{- $additionalPackages := splitList " " (includeTemplate "debian/common-dependencies" .) -}}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# universal/common-dependencies hash: {{ include (joinPath ".chezmoitemplates" "universal" "common-dependencies") | sha256sum }}
|
||||
# fedora/common-dependencies hash: {{ include (joinPath ".chezmoitemplates" "fedora" "common-dependencies") | sha256sum }}
|
||||
|
||||
{{ includeTemplate "universal/logg-bundle" }}
|
||||
{{ includeTemplate "universal/logg-before" }}
|
||||
|
||||
{{- $packages := splitList " " (includeTemplate "universal/common-dependencies" .) -}}
|
||||
{{- $additionalPackages := splitList " " (includeTemplate "fedora/common-dependencies" .) -}}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# universal/common-dependencies hash: {{ include (joinPath ".chezmoitemplates" "universal" "common-dependencies") | sha256sum }}
|
||||
# freebsd/common-dependencies hash: {{ include (joinPath ".chezmoitemplates" "freebsd" "common-dependencies") | sha256sum }}
|
||||
|
||||
{{ includeTemplate "universal/logg-bundle" }}
|
||||
{{ includeTemplate "universal/logg-before" }}
|
||||
|
||||
{{- $packages := splitList " " (includeTemplate "universal/common-dependencies" .) -}}
|
||||
{{- $additionalPackages := splitList " " (includeTemplate "freebsd/common-dependencies" .) -}}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
{{ includeTemplate "universal/profile-bundle" }}
|
||||
{{ includeTemplate "universal/logg-bundle" }}
|
||||
{{ includeTemplate "universal/profile-before" }}
|
||||
{{ includeTemplate "universal/logg-before" }}
|
||||
|
||||
### Set hostname (if redefined)
|
||||
if command -v hostnamectl > /dev/null; then
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
# TODO - make equivalent to https://gitlab.com/megabyte-labs/gas-station/-/blob/master/roles/system/common/tasks/linux/swap.yml
|
||||
|
||||
{{ includeTemplate "universal/profile-bundle" }}
|
||||
{{ includeTemplate "universal/logg-bundle" }}
|
||||
{{ includeTemplate "universal/profile-before" }}
|
||||
{{ includeTemplate "universal/logg-before" }}
|
||||
|
||||
if [ ! -f /swapfile ]; then
|
||||
MEMORY_IN_KB="$(grep MemTotal /proc/meminfo | sed 's/.* \(.*\) kB/\1/')"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# universal/common-dependencies hash: {{ include (joinPath ".chezmoitemplates" "universal" "common-dependencies") | sha256sum }}
|
||||
# opensuse/common-dependencies hash: {{ include (joinPath ".chezmoitemplates" "opensuse" "common-dependencies") | sha256sum }}
|
||||
|
||||
{{ includeTemplate "universal/logg-bundle" }}
|
||||
{{ includeTemplate "universal/logg-before" }}
|
||||
|
||||
{{- $packages := splitList " " (includeTemplate "universal/common-dependencies" .) -}}
|
||||
{{- $additionalPackages := splitList " " (includeTemplate "opensuse/common-dependencies" .) -}}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# universal/common-dependencies hash: {{ include (joinPath ".chezmoitemplates" "universal" "common-dependencies") | sha256sum }}
|
||||
# ubuntu/common-dependencies hash: {{ include (joinPath ".chezmoitemplates" "ubuntu" "common-dependencies") | sha256sum }}
|
||||
|
||||
{{ includeTemplate "universal/logg-bundle" }}
|
||||
{{ includeTemplate "universal/logg-before" }}
|
||||
|
||||
{{- $packages := splitList " " (includeTemplate "universal/common-dependencies" .) -}}
|
||||
{{- $additionalPackages := splitList " " (includeTemplate "ubuntu/common-dependencies" .) -}}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
{{ includeTemplate "universal/logg-bundle" }}
|
||||
{{ includeTemplate "universal/profile-bundle" }}
|
||||
{{ includeTemplate "universal/logg-before" }}
|
||||
{{ includeTemplate "universal/profile-before" }}
|
||||
|
||||
### Decrypt private key if it is not already present
|
||||
if [ ! -f "${XDG_CONFIG_HOME}/age/chezmoi.txt" ]; then
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
{{ includeTemplate "universal/profile-bundle" }}
|
||||
{{ includeTemplate "universal/logg-bundle" }}
|
||||
{{ includeTemplate "universal/profile-before" }}
|
||||
{{ includeTemplate "universal/logg-before" }}
|
||||
|
||||
KEYID="{{ .user.gpg.id }}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue