Enhance Linux and macOS development station configurations:
- Add user management and Oh My Zsh settings - Update service scripts to use Zsh - Include new packages and environment variables - Modify Terraform configuration for upstream services
This commit is contained in:
@@ -2,6 +2,23 @@ hostname: dev-02.lab.alexpires.me
|
||||
ansible_user: "{{ lookup('env', 'ANSIBLE_USER') }}"
|
||||
ansible_host: "10.19.4.210"
|
||||
|
||||
# Users
|
||||
login_users:
|
||||
- username: "{{ ansible_user }}"
|
||||
comment: "Managed by Ansible"
|
||||
sudoer: true
|
||||
sudoer_root_only: false
|
||||
sudoer_no_password: true
|
||||
pubkey: "{{ lookup('file', 'keys/ansible_user.pub') }}"
|
||||
password_disabled: true
|
||||
- username: devstation
|
||||
comment: "Managed by Ansible"
|
||||
pubkey: "{{ lookup('file', 'keys/localnetwork.pub') }}"
|
||||
shell: "/bin/zsh"
|
||||
groups:
|
||||
- "users"
|
||||
password_disabled: true
|
||||
|
||||
linux_dev_station_service_user_enabled: true
|
||||
linux_dev_station_service_user: "devstation"
|
||||
linux_dev_station_service_home: "/home/devstation"
|
||||
@@ -165,3 +182,27 @@ fw_allowed_ports:
|
||||
- { rule: "allow", port: "3000", proto: "tcp", from: "10.19.4.0/24" } # code-server (local network only)
|
||||
- { rule: "allow", port: "4096", proto: "tcp", from: "10.19.4.0/24" } # opencode (local network only)
|
||||
- { rule: "allow", port: "9090", proto: "tcp", from: "10.19.4.0/24" } # opencode (local network only)
|
||||
|
||||
linux_dev_station_oh_my_zsh_theme: "agnoster"
|
||||
linux_dev_station_oh_my_zsh_plugins:
|
||||
- git
|
||||
- fzf
|
||||
- common-aliases
|
||||
- sudo
|
||||
- tmux
|
||||
- extract
|
||||
- colored-man-pages
|
||||
- history-substring-search
|
||||
- kubectl
|
||||
- ansible
|
||||
- aws
|
||||
- golang
|
||||
- dnf
|
||||
- bgnotify
|
||||
linux_dev_station_zshrc_extra_env:
|
||||
EDITOR: "nano"
|
||||
MANPAGER: "less -R"
|
||||
LESS: "-R"
|
||||
BW_ORGANIZATION_ID: "{{ lookup('env', 'BW_ORGANIZATION_ID', default='') }}"
|
||||
BW_ACCESS_TOKEN: "{{ lookup('env', 'BW_ACCESS_TOKEN', default='') }}"
|
||||
ANSIBLE_USER: "{{ lookup('env', 'ANSIBLE_USER', default='') }}"
|
||||
|
||||
Reference in New Issue
Block a user