Add Linux development station role with systemd services for code-server and OpenCode
- Implemented handlers for restarting code-server and OpenCode services. - Created main tasks for setting up a Linux development station, including user management, package installation, and configuration. - Added validation for OpenCode server credentials and code-server password. - Introduced tool package management for npm, uv, and go installers. - Developed templates for systemd service units for code-server and OpenCode. - Included scripts for starting code-server and OpenCode with SSH agent support. - Updated inventory and Terraform configuration to include new development host.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
{% if linux_dev_station_ssh_agent_enabled | bool %}
|
||||
source "{{ linux_dev_station_scripts_dir }}/ssh-agent-start.sh"
|
||||
{% endif %}
|
||||
|
||||
cd {{ linux_dev_station_workspace_dir }}
|
||||
|
||||
exec code-server \
|
||||
--bind-addr {{ linux_dev_station_code_server_host }}:{{ linux_dev_station_code_server_port }} \
|
||||
--auth {{ linux_dev_station_code_server_auth }} \
|
||||
--disable-telemetry \
|
||||
{{ linux_dev_station_code_server_workspace }}
|
||||
Reference in New Issue
Block a user