Updated deploy user credentials and docs

This commit is contained in:
Colin 2023-01-10 11:26:46 -05:00
parent 0e5ec05bd3
commit 64044f7cc4
No known key found for this signature in database
3 changed files with 35 additions and 35 deletions

View File

@ -4,7 +4,7 @@ Generic server bootstrap to get some of the most basic utilities installed that
## Usage ## Usage
```bash ```bash
#!/usr/bin/env bash #!/usr/bin/env bash
## source <(curl -s https://digitalocean-user-data:sHEG3NTC6og8pCJDTF6EPYb8jLmbskx5Ns@git.nixc.us/colin_/bootstrap-scripts/raw/branch/main/strap.sh) defaults-bootstrap ## source <(curl -s https://bootstrap:sHEG3NTC6og8pCJDTF6EPYb8jLmbskx5Ns@git.nixc.us/colin_/bootstrap-scripts/raw/branch/main/strap.sh) defaults-bootstrap
``` ```
Copy the above into any server post install scripts box and it should get things going pretty quickly. Copy the above into any server post install scripts box and it should get things going pretty quickly.
@ -13,5 +13,5 @@ Copy the above into any server post install scripts box and it should get things
For example if you wanted to deploy to ovh you would use the following example. For example if you wanted to deploy to ovh you would use the following example.
```bash ```bash
#!/usr/bin/env bash #!/usr/bin/env bash
source <(curl -s https://imp-bootstap:sHEG3NTC6og8pCJDTF6EPYb8jLmbskx5Ns@git.nixc.us/colin_/bootstrap-scripts/raw/branch/main/strap.sh) bootstrap ovh gluster nosalt source <(curl -s https://bootstrap:sHEG3NTC6og8pCJDTF6EPYb8jLmbskx5Ns@git.nixc.us/colin_/bootstrap-scripts/raw/branch/main/strap.sh) bootstrap ovh gluster nosalt
``` ```

View File

@ -11,7 +11,7 @@ function digitalocean() {
# hostname -f # hostname -f
export PUBLIC_IPV4=$(curl -s http://169.254.169.254/metadata/v1/interfaces/public/0/ipv4/address) export PUBLIC_IPV4=$(curl -s http://169.254.169.254/metadata/v1/interfaces/public/0/ipv4/address)
export PUBLIC_IPV6=$(curl -s http://169.254.169.254/metadata/v1/interfaces/public/0/ipv6/address) export PUBLIC_IPV6=$(curl -s http://169.254.169.254/metadata/v1/interfaces/public/0/ipv6/address)
} }
## Add anything for OVH here. ## Add anything for OVH here.
function ovh() { function ovh() {
echo Nothing special for DigitalOcean at this stage. echo Nothing special for DigitalOcean at this stage.
@ -97,7 +97,7 @@ echo Installing Salt
case $3 in case $3 in
salt ) salt )
install_salt install_salt
;; ;;
nosalt ) nosalt )
echo Not installing salt. echo Not installing salt.
@ -122,6 +122,6 @@ chmod +x /usr/local/bin/ctop
## This may no longer be required going forward, it'll be better to call it on first login instead with args. ## This may no longer be required going forward, it'll be better to call it on first login instead with args.
## Force install ohmyzsh on first login ## Force install ohmyzsh on first login
# curl -o /root/zsh-setup.sh https://imp-bootstrap:sHEG3NTC6og8pCJDTF6EPYb8jLmbskx5Ns@git.nixc.us/colin_/do-userdata/raw/branch/main/scripts/zsh-setup.sh # curl -o /root/zsh-setup.sh https://bootstrap:sHEG3NTC6og8pCJDTF6EPYb8jLmbskx5Ns@git.nixc.us/colin_/do-userdata/raw/branch/main/scripts/zsh-setup.sh
# echo zsh-setup >> ~/.profile # echo zsh-setup >> ~/.profile
# source ~/.profile # source ~/.profile

View File

@ -4,38 +4,38 @@ set -e
## Basic deps ## Basic deps
DEBIAN_FRONTEND=noninteractive apt-get install -y curl wget DEBIAN_FRONTEND=noninteractive apt-get install -y curl wget
## source <(curl -s https://imp-bootstrap:sHEG3NTC6og8pCJDTF6EPYb8jLmbskx5Ns@git.nixc.us/colin_/bootstrap-scripts/raw/branch/main/strap.sh) defaults-bootstrap ## source <(curl -s https://bootstrap:sHEG3NTC6og8pCJDTF6EPYb8jLmbskx5Ns@git.nixc.us/colinaa/bootstrap-scripts/raw/branch/main/strap.sh) defaults-bootstrap
# curl -sL https://sentry.io/get-cli/ | bash # curl -sL https://sentry.io/get-cli/ | bash
# echo 'export SENTRY_DSN=https://4d089076433c4a7aa31bbb2741f053fe@sentry.aenow.com/3' # echo 'export SENTRY_DSN=https://4d089076433c4a7aa31bbb2741f053fe@sentry.aenow.com/3'
# eval "$(sentry-cli bash-hook)" # eval "$(sentry-cli bash-hook)"
curl -o /usr/local/sbin/zsh-setup https://imp-bootstrap:sHEG3NTC6og8pCJDTF6EPYb8jLmbskx5Ns@git.nixc.us/colin_/bootstrap-scripts/raw/branch/main/scripts/zsh-setup.sh && chmod +x /usr/local/sbin/zsh-setup curl -o /usr/local/sbin/zsh-setup https://bootstrap:sHEG3NTC6og8pCJDTF6EPYb8jLmbskx5Ns@git.nixc.us/colinaa/bootstrap-scripts/raw/branch/main/scripts/zsh-setup.sh && chmod +x /usr/local/sbin/zsh-setup
curl -o /usr/local/sbin/bootstrap https://imp-bootstrap:sHEG3NTC6og8pCJDTF6EPYb8jLmbskx5Ns@git.nixc.us/colin_/bootstrap-scripts/raw/branch/main/scripts/bootstrap.sh && chmod +x /usr/local/sbin/bootstrap curl -o /usr/local/sbin/bootstrap https://bootstrap:sHEG3NTC6og8pCJDTF6EPYb8jLmbskx5Ns@git.nixc.us/colinaa/bootstrap-scripts/raw/branch/main/scripts/bootstrap.sh && chmod +x /usr/local/sbin/bootstrap
echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGLT6xx+pXQl6UfiVe0VTZkC45E/2YE/zfNrWb7mLMtI computer@dewitt.improvingmipractices.com" > /root/.ssh/authorized_keys echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGLT6xx+pXQl6UfiVe0VTZkC45E/2YE/zfNrWb7mLMtI computer@dewitt.improvingmipractices.com" > /root/.ssh/authorized_keys
## Run bootstrap ## Run bootstrap
case $1 in case $1 in
bootstrap ) bootstrap )
/usr/local/sbin/bootstrap $2 $3 $4 /usr/local/sbin/bootstrap $2 $3 $4
;; ;;
defaults-bootstrap ) defaults-bootstrap )
/usr/local/sbin/bootstrap none nogluster nosalt /usr/local/sbin/bootstrap none nogluster nosalt
;; ;;
* ) * )
/usr/local/sbin/bootstrap none nogluster nosalt /usr/local/sbin/bootstrap none nogluster nosalt
;; ;;
esac esac
#!/usr/bin/env bash #!/usr/bin/env bash
set -e set -e
## Basic deps ## Basic deps
DEBIAN_FRONTEND=noninteractive apt-get install -y curl wget DEBIAN_FRONTEND=noninteractive apt-get install -y curl wget
## source <(curl -s https://imp-bootstrap:sHEG3NTC6og8pCJDTF6EPYb8jLmbskx5Ns@git.nixc.us/colin_/bootstrap-scripts/raw/branch/main/strap.sh) defaults-bootstrap ## source <(curl -s https://bootstrap:sHEG3NTC6og8pCJDTF6EPYb8jLmbskx5Ns@git.nixc.us/colinaa/bootstrap-scripts/raw/branch/main/strap.sh) defaults-bootstrap
# curl -sL https://sentry.io/get-cli/ | bash # curl -sL https://sentry.io/get-cli/ | bash
# echo 'export SENTRY_DSN=https://4d089076433c4a7aa31bbb2741f053fe@sentry.aenow.com/3' # echo 'export SENTRY_DSN=https://4d089076433c4a7aa31bbb2741f053fe@sentry.aenow.com/3'
# eval "$(sentry-cli bash-hook)" # eval "$(sentry-cli bash-hook)"
curl -o /usr/local/sbin/zsh-setup https://imp-bootstrap:sHEG3NTC6og8pCJDTF6EPYb8jLmbskx5Ns@git.nixc.us/colin_/bootstrap-scripts/raw/branch/main/scripts/zsh-setup.sh && chmod +x /usr/local/sbin/zsh-setup curl -o /usr/local/sbin/zsh-setup https://bootstrap:sHEG3NTC6og8pCJDTF6EPYb8jLmbskx5Ns@git.nixc.us/colinaa/bootstrap-scripts/raw/branch/main/scripts/zsh-setup.sh && chmod +x /usr/local/sbin/zsh-setup
curl -o /usr/local/sbin/bootstrap https://imp-bootstrap:sHEG3NTC6og8pCJDTF6EPYb8jLmbskx5Ns@git.nixc.us/colin_/bootstrap-scripts/raw/branch/main/scripts/bootstrap.sh && chmod +x /usr/local/sbin/bootstrap curl -o /usr/local/sbin/bootstrap https://bootstrap:sHEG3NTC6og8pCJDTF6EPYb8jLmbskx5Ns@git.nixc.us/colinaa/bootstrap-scripts/raw/branch/main/scripts/bootstrap.sh && chmod +x /usr/local/sbin/bootstrap
echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGLT6xx+pXQl6UfiVe0VTZkC45E/2YE/zfNrWb7mLMtI computer@dewitt.improvingmipractices.com" > /root/.ssh/authorized_keys echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGLT6xx+pXQl6UfiVe0VTZkC45E/2YE/zfNrWb7mLMtI computer@dewitt.improvingmipractices.com" > /root/.ssh/authorized_keys
## Run bootstrap ## Run bootstrap