# yumayx/ys0 architecture

> Architecture diagram of the GitHub repository yumayx/ys0, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/yumayx/ys0
- Repository: https://github.com/yumayx/ys0

## Overview

YS0 is an Ansible recipe for provisioning a Red Hat-family work environment. The documented workflow starts with a root-run bootstrap; individual roles can also be invoked by name. Its role collection covers users and workspaces, language toolchains, developer utilities, and network/system services. The tree identifies these role boundaries, but their task files and bootstrap scripts were not excerpted, so internal orchestration and role-to-role calls cannot be established from the available evidence.

Main entry points: [`init.sh`](https://github.com/yumayx/ys0/blob/main/init.sh) (Bootstrap), [`role.sh`](https://github.com/yumayx/ys0/blob/main/role.sh) (Role runner)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Provisioning entrypoints"]
  node_bootstrap["Bootstrap<br/>[init.sh]"]
  node_role_runner["Role runner<br/>[role.sh]"]
end

subgraph group_environment["User environment"]
  node_init_role["System initialization"]
  node_user_role["User setup"]
  node_workspace_role["Workspace setup"]
end

subgraph group_languages["Language toolchains"]
  node_ruby_role["Ruby toolchain"]
  node_ruby_dnf["Ruby packages"]
  node_rust_role["Rust toolchain"]
  node_rust_dnf["Rust packages"]
end

subgraph group_services["Servers and infrastructure"]
  node_httpd_role["HTTP server"]
  node_samba_role["Samba server"]
  node_nfs_role["NFS service"]
  node_pxe_role["PXE boot service"]
  node_kvm_role["KVM virtualization"]
  node_rear_role["System recovery"]
end

subgraph group_utilities["Developer utilities"]
  node_code_role["Code tools"]
  node_console_role["Console tools"]
  node_homebrew_role["Homebrew tools"]
  node_more_role["Additional tools"]
  node_shellcheck_role["ShellCheck"]
  node_zed_role["Zed editor"]
  node_ys1_role["YS1 tool"]
  node_serverspec_role["Serverspec tooling"]
end

node_admin(("Administrator"))

node_admin -->|"runs as root"| node_bootstrap
node_admin -->|"runs role"| node_role_runner

click node_bootstrap "https://github.com/yumayx/ys0/blob/main/init.sh"
click node_role_runner "https://github.com/yumayx/ys0/blob/main/role.sh"
click node_init_role "https://github.com/yumayx/ys0/tree/main/roles/init"
click node_user_role "https://github.com/yumayx/ys0/tree/main/roles/user"
click node_workspace_role "https://github.com/yumayx/ys0/tree/main/roles/workspace"
click node_ruby_role "https://github.com/yumayx/ys0/tree/main/roles/ruby"
click node_ruby_dnf "https://github.com/yumayx/ys0/tree/main/roles/ruby-dnf"
click node_rust_role "https://github.com/yumayx/ys0/tree/main/roles/rust"
click node_rust_dnf "https://github.com/yumayx/ys0/tree/main/roles/rust-dnf"
click node_code_role "https://github.com/yumayx/ys0/tree/main/roles/code"
click node_console_role "https://github.com/yumayx/ys0/tree/main/roles/console"
click node_homebrew_role "https://github.com/yumayx/ys0/tree/main/roles/homebrew"
click node_more_role "https://github.com/yumayx/ys0/tree/main/roles/more"
click node_shellcheck_role "https://github.com/yumayx/ys0/tree/main/roles/shellcheck"
click node_zed_role "https://github.com/yumayx/ys0/tree/main/roles/zed"
click node_ys1_role "https://github.com/yumayx/ys0/tree/main/roles/ys1"
click node_httpd_role "https://github.com/yumayx/ys0/tree/main/roles/httpd"
click node_samba_role "https://github.com/yumayx/ys0/tree/main/roles/samba"
click node_nfs_role "https://github.com/yumayx/ys0/tree/main/roles/nfs"
click node_pxe_role "https://github.com/yumayx/ys0/tree/main/roles/pxe"
click node_kvm_role "https://github.com/yumayx/ys0/tree/main/roles/kvm"
click node_rear_role "https://github.com/yumayx/ys0/tree/main/roles/rear"
click node_serverspec_role "https://github.com/yumayx/ys0/tree/main/roles/serverspec"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_bootstrap,node_role_runner toneBlue
class node_init_role,node_user_role,node_workspace_role toneAmber
class node_ruby_role,node_ruby_dnf,node_rust_role,node_rust_dnf toneMint
class node_httpd_role,node_samba_role,node_nfs_role,node_pxe_role,node_kvm_role,node_rear_role toneRose
class node_code_role,node_console_role,node_homebrew_role,node_more_role,node_shellcheck_role,node_zed_role,node_ys1_role,node_serverspec_role,node_admin toneIndigo
```

## Components

### Provisioning entrypoints

- [Bootstrap](https://github.com/yumayx/ys0/blob/main/init.sh): `init.sh`
- [Role runner](https://github.com/yumayx/ys0/blob/main/role.sh): `role.sh`

### User environment

- [System initialization](https://github.com/yumayx/ys0/tree/main/roles/init): `roles/init`
- [User setup](https://github.com/yumayx/ys0/tree/main/roles/user): `roles/user`
- [Workspace setup](https://github.com/yumayx/ys0/tree/main/roles/workspace): `roles/workspace`

### Language toolchains

- [Ruby toolchain](https://github.com/yumayx/ys0/tree/main/roles/ruby): `roles/ruby`
- [Ruby packages](https://github.com/yumayx/ys0/tree/main/roles/ruby-dnf): `roles/ruby-dnf`
- [Rust toolchain](https://github.com/yumayx/ys0/tree/main/roles/rust): `roles/rust`
- [Rust packages](https://github.com/yumayx/ys0/tree/main/roles/rust-dnf): `roles/rust-dnf`

### Servers and infrastructure

- [HTTP server](https://github.com/yumayx/ys0/tree/main/roles/httpd): `roles/httpd`
- [Samba server](https://github.com/yumayx/ys0/tree/main/roles/samba): `roles/samba`
- [NFS service](https://github.com/yumayx/ys0/tree/main/roles/nfs): `roles/nfs`
- [PXE boot service](https://github.com/yumayx/ys0/tree/main/roles/pxe): `roles/pxe`
- [KVM virtualization](https://github.com/yumayx/ys0/tree/main/roles/kvm): `roles/kvm`
- [System recovery](https://github.com/yumayx/ys0/tree/main/roles/rear): `roles/rear`

### Developer utilities

- [Code tools](https://github.com/yumayx/ys0/tree/main/roles/code): `roles/code`
- [Console tools](https://github.com/yumayx/ys0/tree/main/roles/console): `roles/console`
- [Homebrew tools](https://github.com/yumayx/ys0/tree/main/roles/homebrew): `roles/homebrew`
- [Additional tools](https://github.com/yumayx/ys0/tree/main/roles/more): `roles/more`
- [ShellCheck](https://github.com/yumayx/ys0/tree/main/roles/shellcheck): `roles/shellcheck`
- [Zed editor](https://github.com/yumayx/ys0/tree/main/roles/zed): `roles/zed`
- [YS1 tool](https://github.com/yumayx/ys0/tree/main/roles/ys1): `roles/ys1`
- [Serverspec tooling](https://github.com/yumayx/ys0/tree/main/roles/serverspec): `roles/serverspec`

### Other components

- **Administrator**

## Connections

- Administrator → Bootstrap: runs as root (evidence: `README.md`)
- Administrator → Role runner: runs role (evidence: `README.md`)
