Add initial provisioning playbook
This commit is contained in:
34
resources/global.sh
Normal file
34
resources/global.sh
Normal file
@@ -0,0 +1,34 @@
|
||||
function _parse_git_branch() {
|
||||
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
|
||||
}
|
||||
|
||||
export PS1="\[\e[0;97m\]\[\e[37m\e[1m\]\u\[\e[1;94m\]@\[\e[94m\]\H\[\e[0;33m\]\$(_parse_git_branch) \[\e[37m\]\w\[\e[33m\] \[\e[0;97m\]$\[\e[0m\] "
|
||||
export rc=/home/$USERNAME/.bashrc
|
||||
export VIRTUALENV_DIR=/home/$USERNAME/.venvs
|
||||
|
||||
random() {
|
||||
if [[ $# -eq 0 ]]; then
|
||||
num=32
|
||||
else
|
||||
num=$1
|
||||
fi
|
||||
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w $num | head -n 1
|
||||
}
|
||||
|
||||
function up() { cd $(eval printf '../'%.0s {1..$1}); }
|
||||
|
||||
function pipin() { pip freeze | grep $1; }
|
||||
|
||||
alias bk='cd -'
|
||||
alias fuck='sudo $(history -p \!\!)'
|
||||
alias ls='ls -lshF --color --group-directories-first --time-style=long-iso'
|
||||
alias version='uname -orp && lsb_release -a | grep Description'
|
||||
alias activate='source ./bin/activate'
|
||||
alias cls='clear'
|
||||
alias ls='/usr/bin/ls -lshF --color --group-directories-first --time-style=long-iso'
|
||||
alias gmtime='/usr/bin/date -u --iso-8601=seconds'
|
||||
alias date='/usr/bin/date --iso-8601=seconds'
|
||||
alias whatismyip='curl https://icanhazip.com/'
|
||||
alias uuid="python3 -c 'import uuid; print(uuid.uuid4());'"
|
||||
alias epoch="python3 -c 'import time; print(time.time());'"
|
||||
alias uptime="command uptime --pretty"
|
11
resources/motd.j2
Normal file
11
resources/motd.j2
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
///////// /// /// /// /// /// /////// //////
|
||||
/// /// /// /// /// /// /// /// /// ///
|
||||
/// //////// /////// /// ///////// ///////
|
||||
//////// /// /// /// /// /// /// /// ///
|
||||
/// /// /// ///// /// /// /// ///////
|
||||
/// ///
|
||||
///////// ================== ///////// ================
|
||||
|
||||
> {{ skylab_description }} @{{ skylab_location }}
|
||||
{{ '' }}
|
28
resources/remote-requirements.txt
Normal file
28
resources/remote-requirements.txt
Normal file
@@ -0,0 +1,28 @@
|
||||
attrs==21.2.0; python_version >= "3.4" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.4"
|
||||
bcrypt==3.2.0; python_version >= "3.6"
|
||||
certifi==2021.5.30; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.6.0" and python_version >= "3.6"
|
||||
cffi==1.14.6; python_version >= "3.6" and (python_version >= "3.6" and python_full_version < "3.0.0" or python_version >= "3.6" and python_full_version >= "3.4.0")
|
||||
charset-normalizer==2.0.4; python_full_version >= "3.6.0" and python_version >= "3.6"
|
||||
colorama==0.4.4; python_version >= "3.4" and python_full_version < "3.0.0" and sys_platform == "win32" or sys_platform == "win32" and python_version >= "3.4" and python_full_version >= "3.5.0"
|
||||
cryptography==3.4.8; python_version >= "3.6"
|
||||
distro==1.6.0; python_version >= "3.4" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.4"
|
||||
docker-compose==1.29.2; python_version >= "3.4"
|
||||
docker==5.0.2; python_version >= "3.6"
|
||||
dockerpty==0.4.1; python_version >= "3.4"
|
||||
docopt==0.6.2; python_version >= "3.4"
|
||||
idna==3.2; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.6.0" and python_version >= "3.6"
|
||||
jsondiff==1.3.0
|
||||
jsonschema==3.2.0; python_version >= "3.4"
|
||||
paramiko==2.7.2; python_version >= "3.6"
|
||||
pycparser==2.20; python_version >= "3.6" and python_full_version < "3.0.0" or python_version >= "3.6" and python_full_version >= "3.4.0"
|
||||
pynacl==1.4.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_version >= "3.6" and python_full_version >= "3.4.0"
|
||||
pyrsistent==0.18.0; python_version >= "3.6"
|
||||
python-dotenv==0.19.0; python_version >= "3.5"
|
||||
pywin32==227; sys_platform == "win32" and python_version >= "3.6"
|
||||
pyyaml==5.4.1; python_version >= "3.4" and python_full_version < "3.0.0" or python_full_version >= "3.6.0" and python_version >= "3.4"
|
||||
requests==2.26.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.6.0" and python_version >= "3.6"
|
||||
selinux==0.2.1; (python_version >= "2.7" and python_full_version < "3.0.0") or (python_full_version >= "3.4.0")
|
||||
six==1.16.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.6"
|
||||
texttable==1.6.4; python_version >= "3.4"
|
||||
urllib3==1.26.6; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.6.0" and python_version < "4" and python_version >= "3.6"
|
||||
websocket-client==0.59.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.6"
|
1
resources/wheel-group-no-sudo-password
Normal file
1
resources/wheel-group-no-sudo-password
Normal file
@@ -0,0 +1 @@
|
||||
%wheel ALL=(ALL) NOPASSWD: ALL
|
Reference in New Issue
Block a user