-
Notifications
You must be signed in to change notification settings - Fork 348
Expand file tree
/
Copy pathvibe.yml
More file actions
executable file
·81 lines (79 loc) · 3.67 KB
/
vibe.yml
File metadata and controls
executable file
·81 lines (79 loc) · 3.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/usr/bin/env ansible-playbook
---
#==============================================================#
# File : vibe.yml
# Desc : Deploy development tools (claude, code, jupyter)
# Ctime : 2025-01-24
# Mtime : 2025-01-30
# Path : vibe.yml
# Docs : https://pigsty.io/docs/vibe
# License : Apache-2.0 @ https://pigsty.io/docs/about/license/
# Copyright : 2018-2026 Ruohang Feng / Vonng (rh@vonng.com)
#==============================================================#
- name: VIBE
hosts: all
gather_facts: no
become: true
vars:
#vibe_data: /fs # vibe workspace directory
#code_enabled: true # enable code-server installation
#code_port: 8443 # code-server listen port
#code_data: /data/code # code-server user data directory
#code_password: Vibe.Coding # code-server password
#code_gallery: 'openvsx' # extension gallery: openvsx|microsoft
#jupyter_enabled: true # enable jupyter lab installation
#jupyter_port: 8888 # jupyter lab listen port
#jupyter_data: /data/jupyter # jupyter lab data directory
#jupyter_password: Vibe.Coding # jupyter lab access token
#jupyter_venv: /data/venv # python venv path with jupyter
#claude_enabled: true # enable claude code configuration
#claude_env: {} # extra env vars to merge with defaults
#nodejs_enabled: true # enable nodejs installation
#nodejs_registry: '' # npm registry, auto china mirror if empty
#npm_packages: [] # list of global npm packages to install
roles:
- { role: node_id, tags: id }
- { role: vibe, tags: vibe }
#---------------------------------------------------------------
# Usage
#---------------------------------------------------------------
# ./vibe.yml -l <host> # full install
# ./vibe.yml -l <host> -t code # code only
# ./vibe.yml -l <host> -t jupyter # jupyter only
# ./vibe.yml -l <host> -t nodejs # nodejs only
# ./vibe.yml -l <host> -t claude # claude only
#
# Disable components:
# ./vibe.yml -l <host> -e code_enabled=false
# ./vibe.yml -l <host> -e jupyter_enabled=false
# ./vibe.yml -l <host> -e nodejs_enabled=false
# ./vibe.yml -l <host> -e claude_enabled=false
#
# Access services:
# Code Server: https://<host>/code/
# JupyterLab: https://<host>/jupyter/
#
#---------------------------------------------------------------
# Tasks
#---------------------------------------------------------------
# vibe : deploy vibe development tools
# - vibe_dir : create workspace and render context files
# - code : deploy code-server
# - code_install : install code-server package
# - code_dir : create code data directories
# - code_config : render config and systemd unit
# - code_launch : start code-server service
# - jupyter : deploy jupyter lab
# - jupyter_install: install jupyter with uv
# - jupyter_dir : create jupyter directories
# - jupyter_config : render config and systemd unit
# - jupyter_launch : start jupyter service
# - nodejs : install nodejs runtime
# - nodejs_install : install nodejs package
# - nodejs_config : configure npm registry
# - npm_pkg : install global npm packages
# - claude : configure claude code cli
# - claude_install : install claude-code package
# - claude_config : render ~/.claude config files
#---------------------------------------------------------------
...