Commit Graph

94 Commits

Author SHA1 Message Date
Siddharth Bansal 473bce856d Pass installdir as a parameter 2026-04-20 21:36:42 +05:30
Owen d1182c3a59 Merge branch 'main' into dev 2026-03-30 15:53:46 -07:00
Laurence 47a99e35ee feat(installer): add default install directory with existing install detection
- Default to /opt/pangolin for new installations
  - Check current directory and /opt/pangolin for existing installs
  - Prompt to use existing install if found at default location
  - Offer to change directory ownership when running via sudo
  - Create installation directory if it doesn't exist
2026-03-13 11:38:00 +00:00
Rodney Osodo 27d20eb1bc refactor(install): improve resource cleanup and remove unused funcs
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
2026-03-09 11:17:36 +03:00
Owen c4dcec463a Merge branch 'dev' into LaurenceJJones-feature/installer-tui 2026-02-25 10:48:05 -08:00
Owen Schwartz 767284408a Merge pull request #2499 from LaurenceJJones/feature/build-variables
enhance(installer): use ldflags to inject versions
2026-02-25 10:42:04 -08:00
Laurence e8398cb221 enhance(installer): use huh package to handle input
Instead of relying on stdin and stdout by default, using the huh package from charmbracelet allows us to handle user input more gracefully such as y/n instead of typing 'yes' or 'no'. If a user makes a mistake whilst typing in any text fields they cannot use left or right to edit a single character when using huh it can. This adds a dependancy and may increase the size of installer but overall improves user experience.
2026-02-18 11:05:48 +00:00
Laurence 9460e28c7b ehance(installer): use ldflags to inject versions
Instead of the CI/CD using sed to replace the 'replaceme' text we can instead use ldflags which can inject variables at build time to the versions. The makefile had a bunch of workarounds for dev so these have been removed to cleanup etc etc and fetchs versions from the gh api directly if the variables are not injected like the CI/CD does
2026-02-18 09:43:41 +00:00
Rodney Osodo ffbea7af59 fix(install): add error handling and minor code cleanups
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
2026-02-17 10:45:06 +03:00
Owen 5ad564d21b Use rand 2026-02-02 10:25:14 -08:00
Owen f7cede4713 Use /etc/sysctl.d/99-podman.conf
Fixes #2253
2026-01-17 12:22:43 -08:00
Owen 610b20c1ff Use the right driver
Fixes #2254
2026-01-17 12:21:47 -08:00
Jack Myers 9ed9472c01 Fix spelling mistake in installer version prompt 2026-01-02 10:18:21 -05:00
Owen e477a5a1b5 Add ee install option 2025-12-20 17:28:07 -05:00
Owen be20289140 Resolve some warnings 2025-12-20 16:38:03 -05:00
copilot-swe-agent[bot] 69561caa74 Fix setup token display condition to include CrowdSec installation
Co-authored-by: oschwartz10612 <4999704+oschwartz10612@users.noreply.github.com>
2025-12-06 20:57:57 +00:00
copilot-swe-agent[bot] 394d1503dd Make no-reply email address required when email is enabled
- Added helpful hint in prompt suggesting to use SMTP username
- Added validation to ensure no-reply email is not empty when email is enabled
- Applied gofmt formatting improvements

Co-authored-by: oschwartz10612 <4999704+oschwartz10612@users.noreply.github.com>
2025-12-06 17:35:11 +00:00
Laurence Jones fbce392137 Remove unnecessary return after success message
Remove redundant return statement after success message.
2025-11-13 12:52:21 +00:00
Owen 8f3324560a Install maxmind by default 2025-10-26 16:04:19 -07:00
Owen 8377434c08 Add update database to installer 2025-10-14 14:23:18 -07:00
Owen 1fbf2bfb8d Remove managed add maxmind 2025-10-14 14:15:33 -07:00
Owen 0167b30bf1 Fixes PAN-122 2025-09-28 18:18:03 -07:00
miloschwartz 4710bab697 pull hostname from dashboard url in crowdsec install 2025-09-26 09:57:35 -07:00
miloschwartz a1b2e36a5d fix installer 2025-09-18 11:55:01 -04:00
miloschwartz ddb6893a64 ask for container type in crowdsec installer 2025-09-17 15:52:40 -04:00
miloschwartz a0fece8a0e print failed crowdsec install error 2025-09-16 17:17:41 -07:00
miloschwartz 9ad31b2c81 auto detect public ip 2025-09-06 22:24:22 -07:00
Owen 60d8831399 Rename hybrid to managed 2025-08-21 14:19:21 -07:00
Owen c53eac76f8 Bug fixes around hybrid 2025-08-20 18:50:39 -07:00
Owen 49f0f6ec7d Installer working with hybrid 2025-08-20 17:00:52 -07:00
Owen 8273554a1c Hybrid install mode done? 2025-08-20 12:40:21 -07:00
Owen ad8ab63fd5 Reorging functions 2025-08-20 11:20:46 -07:00
Owen 907dab7d05 Move docker podman question and add hybird question
Allow empty config

Continue to adjust config for hybrid
2025-08-20 11:20:34 -07:00
miloschwartz cd34820138 prompt for convert node in installer 2025-08-18 12:06:59 -07:00
Owen af638d666c Dont look for port if not root; causes permission 2025-08-12 21:34:24 -07:00
Owen 4f3cd71e1e Merge branch 'feature/setup-token-security' of github.com:adrianeastles/pangolin into adrianeastles-feature/setup-token-security 2025-08-12 21:12:55 -07:00
Owen 55b4a9eddb Merge branch 'main' into dev 2025-08-10 10:16:47 -07:00
Owen 5d93ab9b9e Merge branch 'IPv6_optional' of github.com:Xentrice/pangolin into Xentrice-IPv6_optional 2025-08-06 10:19:51 -07:00
Adrian Astles b2947193ec Integrate setup token into installer, this will now parse the container logs to extract setup token automatically. Displays token with clear instructions and URL for initial admin setup. 2025-08-05 17:35:22 +08:00
Sebastian Felber 664dbf3f4c make IPv6 optional during install 2025-08-04 15:45:33 +00:00
Kairav Mittal c0c8edb9d1 Added checks for port 80 and 443
In my issue #1203, I noticed there was a problem when ports 80 and 443 were already in use. This caused the docker containers to be created but not running
2025-08-03 11:30:33 +05:30
miloschwartz 84268e484d update docs links 2025-08-01 22:34:02 -07:00
Owen bb15af9954 Add ports warn at start 2025-07-30 10:23:52 -07:00
Wayne Yao 4443dda0f6 Fix a bug that error check prevents port configuration 2025-07-21 22:48:10 +08:00
Owen 342675276b Add type & cap 2025-07-13 15:58:58 -07:00
Wayne Yao e83e8c2ee4 Add podman support to the installer. 2025-07-08 23:14:42 +08:00
miloschwartz 49b88002fb add replaceme back to installer 2025-06-21 16:36:17 -04:00
miloschwartz ead5df0a8c simplify installer and remove parsing from read config 2025-06-21 16:35:22 -04:00
miloschwartz d03f45279c remove server admin from config and add onboarding ui 2025-06-19 22:11:05 -04:00
Owen cd280d1396 Also start the service 2025-05-31 11:02:53 -04:00