diff options
author | Cullum Smith <cullum@sacredheartsc.com> | 2024-07-17 06:45:00 -0400 |
---|---|---|
committer | Cullum Smith <cullum@sacredheartsc.com> | 2024-07-17 06:46:22 -0400 |
commit | f036b9c0da685d11e341d61e5aaeb75cac576111 (patch) | |
tree | 22b08ae6bb7e83d529fe49fe99ea8da87a8d25a4 /vars | |
parent | 89cdd1c872694797a8f6f0185be2b2cd3467bfcc (diff) | |
download | infrastructure-f036b9c0da685d11e341d61e5aaeb75cac576111.tar.gz |
add pkg_repository hostclass
Diffstat (limited to 'vars')
-rw-r--r-- | vars/common | 18 | ||||
-rw-r--r-- | vars/hostclass/pkg_repository | 3 |
2 files changed, 20 insertions, 1 deletions
diff --git a/vars/common b/vars/common index bb7c4db..6ecfc24 100644 --- a/vars/common +++ b/vars/common @@ -1,5 +1,6 @@ #!/bin/sh +site=myhomelab domain=idm.example.com email_domain=example.com locale=en_US.UTF-8 @@ -11,8 +12,23 @@ root_mail_alias="you@${email_domain}" smtp_host_ip=1.2.3.4 timezone=America/New_York +nproc=$(nproc) allowed_tcp_ports=ssh -bootstrap_resolvers='8.8.8.8 8.8.4.4' +bootstrap_resolvers='1.1.1.1' +fqdn="${BOXCONF_HOSTNAME}.${domain}" smtp_host="smtp.${domain}" +ssh_authzkeys_user=_authzkeys tcp_buffer_size=2097152 # suitable for 1 GigE + +nginx_nofile=2048 +nginx_worker_connections=768 +if $(( nproc > 4 )); then + nginx_worker_processes=4 +else + nginx_worker_processes=$nproc +fi + +if [ "${idm_bootstrap:-}" = true ]; then + resolvers=$bootstrap_resolvers +fi diff --git a/vars/hostclass/pkg_repository b/vars/hostclass/pkg_repository new file mode 100644 index 0000000..dbd49a7 --- /dev/null +++ b/vars/hostclass/pkg_repository @@ -0,0 +1,3 @@ +#!/bin/sh + +allowed_tcp_ports='ssh http' |