Merge pull request 'heavy-aws' (#1) from heavy-aws into develop

This commit is contained in:
Stefan Gaiselmann 2020-11-07 15:13:11 +01:00
commit 562074b26a
2 changed files with 22 additions and 3 deletions

View File

@ -15,3 +15,21 @@ Test with `centos7-01`:
. apply it with `./chezmoi apply` . apply it with `./chezmoi apply`
After that a `bin` directory will exist (if not yet present before), move the executable to this dir to have it `PATH`. After that a `bin` directory will exist (if not yet present before), move the executable to this dir to have it `PATH`.
=== AWS Systeme (Draft)
TODO: create user file for initialization at provisioning
. install go `sudo yum install golang golang-bin`
. install _chezmoi_ from git repo (see below)
. check GOPATH and adjust if necessary
. initialize with `chezmoi init https://gitea.sdroid.uber.space/heavy/dotfiles.git` (Use 'heavy' as user).
. check what will happen with `chezmoi diff`
. apply it with `chezmoi apply`
.chezmoi installation
[source,console]
cd $(mktemp -d)
git clone --depth=1 https://github.com/twpayne/chezmoi.git
cd chezmoi
go install

View File

@ -13,9 +13,10 @@ fi
# #
mySystem=$(uname -n) mySystem=$(uname -n)
myFQDN="$(uname -n).$(dnsdomainname)" myFQDN="$(uname -n).$(dnsdomainname)"
myCategory={{.bash.prompt.category}} myCategory="{{.bash.prompt.category}}"
myType={{.chezmoi.hostname}} myType="{{.chezmoi.hostname}}"
myPrettyName={{.chezmoi.osRelease.prettyName}} myPrettyName="{{.chezmoi.osRelease.prettyName}}"
myNum=0
# last exit code # last exit code
function lastExitCode { function lastExitCode {