empeira 0.1.0.pre.alpha.7 → 0.1.0.pre.alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -2
- data/bin/empeira +1 -1
- data/config/defaults.yaml +25 -1
- data/docs/architecture.md +3 -0
- data/docs/configuration.md +31 -10
- data/docs/development.md +32 -0
- data/docs/installation.md +17 -1
- data/docs/networking.md +20 -4
- data/docs/nodes.md +26 -5
- data/docs/proxy.md +3 -1
- data/docs/troubleshooting.md +12 -3
- data/lib/empeira/agent/target.rb +1 -1
- data/lib/empeira/build.json +3 -3
- data/lib/empeira/build_info.rb +6 -2
- data/lib/empeira/cli/base.rb +1 -1
- data/lib/empeira/cli/completion.rb +1 -0
- data/lib/empeira/cli/config.rb +3 -1
- data/lib/empeira/cli/main.rb +9 -4
- data/lib/empeira/cli/node.rb +2 -0
- data/lib/empeira/cli/proxy.rb +2 -0
- data/lib/empeira/cli/update.rb +3 -2
- data/lib/empeira/completion/catalog.rb +4 -3
- data/lib/empeira/configuration/additional_services.rb +1 -1
- data/lib/empeira/configuration/loader.rb +1 -1
- data/lib/empeira/configuration/network_redirects.rb +2 -0
- data/lib/empeira/configuration/node_images.rb +30 -2
- data/lib/empeira/configuration/schema.rb +3 -1
- data/lib/empeira/configuration/server_mounts.rb +3 -2
- data/lib/empeira/control_plane/controller.rb +97 -52
- data/lib/empeira/control_plane/dns_configuration.rb +154 -0
- data/lib/empeira/control_plane/files.rb +22 -11
- data/lib/empeira/control_plane/health.rb +28 -3
- data/lib/empeira/control_plane/plan.rb +57 -3
- data/lib/empeira/control_plane/storage.rb +2 -0
- data/lib/empeira/infrastructure/cleanup.rb +1 -1
- data/lib/empeira/infrastructure/service.rb +9 -6
- data/lib/empeira/infrastructure/store.rb +5 -1
- data/lib/empeira/network/gateway.rb +1 -1
- data/lib/empeira/network/peer/channel.rb +7 -0
- data/lib/empeira/network/peer/channel_server.rb +4 -0
- data/lib/empeira/node/agent_configuration.rb +29 -0
- data/lib/empeira/node/container.rb +2 -1
- data/lib/empeira/node/container_lifecycle.rb +4 -3
- data/lib/empeira/node/container_preparation.rb +2 -6
- data/lib/empeira/node/external_fact.rb +2 -0
- data/lib/empeira/node/initial_puppet_runs.rb +47 -0
- data/lib/empeira/node/interactive_tools.rb +13 -2
- data/lib/empeira/node/runtime_proxy.rb +7 -2
- data/lib/empeira/node/vm.rb +1 -1
- data/lib/empeira/node/vm_preparation.rb +6 -11
- data/lib/empeira/runtime/agent_helper.rb +0 -2
- data/lib/empeira/runtime/container.rb +6 -0
- data/lib/empeira/runtime/diagnostic_execution.rb +0 -2
- data/lib/empeira/runtime/mount_probe.rb +41 -33
- data/lib/empeira/runtime/services.rb +5 -2
- data/lib/empeira/runtime/update_helper.rb +0 -2
- data/lib/empeira/runtime/workspace_network.rb +35 -7
- data/lib/empeira/server/environment_configuration.rb +4 -2
- data/lib/empeira/updates/modules.rb +2 -1
- data/lib/empeira/updates/service.rb +72 -5
- data/lib/empeira/vm/cloud_init.rb +6 -1
- data/lib/empeira/vm/guest.rb +2 -0
- data/lib/empeira/vm/guest_channel.rb +3 -0
- data/lib/empeira/vm/guest_shell.rb +2 -0
- data/lib/empeira/vm/guest_upload.rb +3 -0
- data/lib/empeira/vm/image_source.rb +5 -6
- data/lib/empeira.rb +288 -208
- data/resources/modules/Gemfile.lock +2 -2
- data/resources/network/channel.rb +1 -0
- metadata +4 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2edb62b459e9ba324ef4e0da81a724610a8fd6ea189bf1b0a6c8b2e61f08732b
|
|
4
|
+
data.tar.gz: 98316c0807498c44d6a7a342f2e38b0cd7d48a91cde12b4e8bb73dc79b093c07
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5ef6e66a7411c0e292c976554e30679227899f2ffff40af78d9b3ee1d95e8fdb7695ce0a046bfd80b5994438cae2a624381321c9e3068634d3e9654e54da093f
|
|
7
|
+
data.tar.gz: c5fab03eac331d133930d174666ae6439ca433e499254a9024f237b16ed5a123b4f840084489283208ebbfa4ae536b53a06a6d88b0dd08b5d067cef12f0a1244
|
data/README.md
CHANGED
|
@@ -92,7 +92,7 @@ empeira node exec host1 -- id
|
|
|
92
92
|
empeira node shell host1
|
|
93
93
|
```
|
|
94
94
|
|
|
95
|
-
`node run` creates an Ubuntu
|
|
95
|
+
`node run` creates an Ubuntu 26.04 container, installs the default OpenVox Agent,
|
|
96
96
|
enrolls its certificate and applies the catalog. Inside the shell, inspect
|
|
97
97
|
`/tmp/empeira-example`; `exit` returns to the host. Select Docker with
|
|
98
98
|
`--container-engine docker` when Podman is not installed. Optional workstation
|
|
@@ -109,6 +109,9 @@ empeira node destroy host1
|
|
|
109
109
|
empeira destroy
|
|
110
110
|
```
|
|
111
111
|
|
|
112
|
+
`status` reports observed resources. Use `empeira status --verify` when diagnosing
|
|
113
|
+
live gateway firewall or Docker bridge drift.
|
|
114
|
+
|
|
112
115
|
`destroy` permanently removes the workspace's owned nodes, CA and database data.
|
|
113
116
|
The control repository, module directory and shared image caches are preserved.
|
|
114
117
|
Destroy works independently of release requirements and guest management versions.
|
|
@@ -138,7 +141,8 @@ cooperative lab, and its internal PuppetDB API is unauthenticated.
|
|
|
138
141
|
Container process mode does not provide a full booted OS. Systemd requires Podman
|
|
139
142
|
and cgroup v2. VM and shared-network support require actual host capabilities;
|
|
140
143
|
macOS/HVF and arm64 runtime validation are manual gates. Native Windows, automatic
|
|
141
|
-
self-update
|
|
144
|
+
self-update and standalone platform binaries are unavailable. RubyGems installations
|
|
145
|
+
support explicit `self-update` and `update all` commands.
|
|
142
146
|
Distribution is through RubyGems.org and the matching GitHub Release gem asset.
|
|
143
147
|
|
|
144
148
|
## Community and license
|
data/bin/empeira
CHANGED
|
@@ -6,7 +6,7 @@ require_relative '../lib/empeira/cli/main'
|
|
|
6
6
|
|
|
7
7
|
begin
|
|
8
8
|
Empeira::CLI::Main.start(ARGV)
|
|
9
|
-
rescue Empeira::Addons::Error => e
|
|
9
|
+
rescue Empeira::Addons::Error, Empeira::Updates::CommandFailed => e
|
|
10
10
|
$stderr.write "#{e.message}\n"
|
|
11
11
|
exit e.exit_status
|
|
12
12
|
rescue Empeira::Error => e
|
data/config/defaults.yaml
CHANGED
|
@@ -76,10 +76,11 @@ dns:
|
|
|
76
76
|
rewrites: []
|
|
77
77
|
node_defaults:
|
|
78
78
|
os: ubuntu
|
|
79
|
-
version: "
|
|
79
|
+
version: "26.04"
|
|
80
80
|
init: process
|
|
81
81
|
memory: 1024
|
|
82
82
|
cpus: 2
|
|
83
|
+
puppet_runs: 1
|
|
83
84
|
hiera:
|
|
84
85
|
mounts: []
|
|
85
86
|
eyaml:
|
|
@@ -121,11 +122,26 @@ images:
|
|
|
121
122
|
tag: "22.04"
|
|
122
123
|
build: nodes/debian/Containerfile
|
|
123
124
|
architectures: [amd64, arm64]
|
|
125
|
+
vm:
|
|
126
|
+
url: "https://cloud-images.ubuntu.com/releases/jammy/release/ubuntu-22.04-server-cloudimg-{architecture}.img"
|
|
127
|
+
checksum_url: "https://cloud-images.ubuntu.com/releases/jammy/release/SHA256SUMS"
|
|
124
128
|
"24.04":
|
|
125
129
|
repository: library/ubuntu
|
|
126
130
|
tag: "24.04"
|
|
127
131
|
build: nodes/debian/Containerfile
|
|
128
132
|
architectures: [amd64, arm64]
|
|
133
|
+
vm:
|
|
134
|
+
url: "https://cloud-images.ubuntu.com/releases/noble/release/ubuntu-24.04-server-cloudimg-{architecture}.img"
|
|
135
|
+
checksum_url: "https://cloud-images.ubuntu.com/releases/noble/release/SHA256SUMS"
|
|
136
|
+
"26.04":
|
|
137
|
+
repository: library/ubuntu
|
|
138
|
+
tag: "26.04"
|
|
139
|
+
digest: "sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db"
|
|
140
|
+
build: nodes/debian/Containerfile
|
|
141
|
+
architectures: [amd64, arm64]
|
|
142
|
+
vm:
|
|
143
|
+
url: "https://cloud-images.ubuntu.com/releases/resolute/release/ubuntu-26.04-server-cloudimg-{architecture}.img"
|
|
144
|
+
checksum_url: "https://cloud-images.ubuntu.com/releases/resolute/release/SHA256SUMS"
|
|
129
145
|
rocky:
|
|
130
146
|
"8":
|
|
131
147
|
repository: rockylinux/rockylinux
|
|
@@ -172,6 +188,11 @@ agent:
|
|
|
172
188
|
destinations: [apt.voxpupuli.org]
|
|
173
189
|
sha256: "40b8052bcece23ed707e609504dd14b178dc662652455f2d30e9c8e614955a94"
|
|
174
190
|
suffix: "-1+ubuntu24.04"
|
|
191
|
+
ubuntu26.04:
|
|
192
|
+
url: "https://apt.voxpupuli.org/openvox8-release-ubuntu26.04.deb"
|
|
193
|
+
destinations: [apt.voxpupuli.org]
|
|
194
|
+
sha256: "aa9726d90965b6701a546713e3dfa583b121be544ef1ee021254c2410d51ae4e"
|
|
195
|
+
suffix: "-1+ubuntu26.04"
|
|
175
196
|
el8:
|
|
176
197
|
url: "https://yum.voxpupuli.org/openvox8-release-el-8.noarch.rpm"
|
|
177
198
|
destinations: [yum.voxpupuli.org]
|
|
@@ -205,6 +226,9 @@ bootstrap:
|
|
|
205
226
|
"24.04":
|
|
206
227
|
agent_preinstalled: false
|
|
207
228
|
destinations: [archive.ubuntu.com, security.ubuntu.com, ports.ubuntu.com]
|
|
229
|
+
"26.04":
|
|
230
|
+
agent_preinstalled: false
|
|
231
|
+
destinations: [archive.ubuntu.com, security.ubuntu.com, ports.ubuntu.com]
|
|
208
232
|
rocky:
|
|
209
233
|
"8":
|
|
210
234
|
agent_preinstalled: false
|
data/docs/architecture.md
CHANGED
|
@@ -223,6 +223,9 @@ proxy, browser and additional infrastructure services. Readiness probes test rea
|
|
|
223
223
|
DNS, server, SQL and PuppetDB responses. Shared naming and peer backends preserve
|
|
224
224
|
container/VM connectivity and isolation. Network capabilities and isolation must
|
|
225
225
|
be verifiable; there is no host-network or software-emulation fallback.
|
|
226
|
+
PostgreSQL and the configuration server start before waiting for database readiness.
|
|
227
|
+
Database role/extension initialization is recorded against the retained volume and
|
|
228
|
+
SQL revision; unchanged starts reuse it. Live service readiness remains checked.
|
|
226
229
|
See [networking](networking.md) for the privilege and trust boundaries.
|
|
227
230
|
|
|
228
231
|
`browser` validates existing infrastructure and reconciles only Chromium and its
|
data/docs/configuration.md
CHANGED
|
@@ -118,7 +118,7 @@ proxy:
|
|
|
118
118
|
allow: []
|
|
119
119
|
node_defaults:
|
|
120
120
|
os: ubuntu
|
|
121
|
-
version: "
|
|
121
|
+
version: "26.04"
|
|
122
122
|
memory: 2048
|
|
123
123
|
cpus: 2
|
|
124
124
|
puppetdb:
|
|
@@ -173,10 +173,11 @@ release version. A partial project mapping may omit it and inherit the default.
|
|
|
173
173
|
| `dns.rewrites` | Exact external hostnames mapped to enabled `<service>.empeira.internal` targets; `[]` by default |
|
|
174
174
|
| `hiera.mounts` | Puppet-aware module/environment mounts, `[]`; each source is optional unless `required: true` |
|
|
175
175
|
| `node_defaults.os` | Configured node OS family, default `ubuntu` |
|
|
176
|
-
| `node_defaults.version` | OS version string, default `"
|
|
176
|
+
| `node_defaults.version` | OS version string, default `"26.04"` |
|
|
177
177
|
| `node_defaults.init` | `process` by default; `systemd` requires supported Podman/cgroup v2 |
|
|
178
178
|
| `node_defaults.memory` | Positive integer MiB, `1024` |
|
|
179
179
|
| `node_defaults.cpus` | Positive integer, `2` |
|
|
180
|
+
| `node_defaults.puppet_runs` | Integer from `1` to `10`, default `1`; initial `node run` only |
|
|
180
181
|
| `mocks.commands` | Named command stubs for test nodes, `{}`; each requires `path`, `mock_to` and `exit_code` |
|
|
181
182
|
| `puppetdb.enabled` | Boolean, `true` |
|
|
182
183
|
| `eyaml.enabled` | Boolean, `false`; requires both key paths when enabled |
|
|
@@ -259,7 +260,9 @@ directories; broken source symlinks, control characters and commas are rejected.
|
|
|
259
260
|
Targets must be absolute, are normalized, and cannot contain `..` segments or
|
|
260
261
|
control characters/commas. `/` itself and system paths `/dev`, `/proc` and `/sys`
|
|
261
262
|
cannot be mounted. Source data trees must not contain sockets, devices or other
|
|
262
|
-
special files.
|
|
263
|
+
special files. `config validate` and the `up` preflight check these trees without
|
|
264
|
+
following nested directory symlinks. Other commands validate mount paths and
|
|
265
|
+
structure without recursively scanning data that they do not mount.
|
|
263
266
|
|
|
264
267
|
Mounts are read-only unless explicitly configured with `readonly: false`. Writable
|
|
265
268
|
mounts allow the server to change host data, subject to host filesystem permissions.
|
|
@@ -479,8 +482,9 @@ Invalid expressions fail validation at `requirements.empeira`.
|
|
|
479
482
|
Before `up`, `down` or `destroy` takes a lock or mutates infrastructure/state, the central
|
|
480
483
|
build abstraction verifies this requirement. Incompatible releases fail with the
|
|
481
484
|
required and installed versions and the `empeira self-update` command. Self-update
|
|
482
|
-
|
|
483
|
-
|
|
485
|
+
updates regular RubyGems installations independently of the project configuration.
|
|
486
|
+
Git checkouts and Bundler must use their existing installation method.
|
|
487
|
+
Infrastructure operations never update Empeira automatically.
|
|
484
488
|
`--version`, `config show`, `config validate`, and `status` remain usable on mismatch.
|
|
485
489
|
If project or user configuration cannot be loaded, `destroy` uses built-in defaults
|
|
486
490
|
and the validated workspace inventory for recovery. An unreadable requirement cannot
|
|
@@ -551,10 +555,11 @@ no transport selector or additional management YAML configuration. See
|
|
|
551
555
|
|
|
552
556
|
## Images and bootstrap
|
|
553
557
|
|
|
554
|
-
`images.nodes` selects container recipes and base images.
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
+
`images.nodes` selects container recipes and base images. Ubuntu entries also contain
|
|
559
|
+
`vm.url` and `vm.checksum_url`, HTTPS URLs for the cloud image and its SHA-256 manifest.
|
|
560
|
+
The optional `{architecture}` placeholder expands to `amd64` or `arm64`; credentials,
|
|
561
|
+
query strings and URL fragments are rejected. Reviewed sources live in `config/defaults.yaml`.
|
|
562
|
+
Rocky sources retain their existing adapter. `bootstrap.guests` records whether an agent is preinstalled
|
|
558
563
|
and the reviewed destination domains that the temporary bootstrap proxy may reach.
|
|
559
564
|
Rocky metadata also supplies the stable `baseurl` needed to avoid arbitrary mirror
|
|
560
565
|
selection. Ubuntu and Debian package source URLs come exclusively from the base
|
|
@@ -595,7 +600,7 @@ Configure only the manager you use. A project `apt.default` or `dnf.default`
|
|
|
595
600
|
supersedes the built-in release sources for that family. OS-specific entries
|
|
596
601
|
merge over the generic default; existing complete source definitions and `suffix`
|
|
597
602
|
overrides remain supported. APT suites default to `jammy` for Ubuntu 22.04 and
|
|
598
|
-
`noble` for Ubuntu 24.04. RPM keys remain `el8`/`el9` for Rocky, AlmaLinux and
|
|
603
|
+
`noble` for Ubuntu 24.04, and `resolute` for Ubuntu 26.04. RPM keys remain `el8`/`el9` for Rocky, AlmaLinux and
|
|
599
604
|
Oracle Linux's existing supported releases. Architecture comes from the target
|
|
600
605
|
node: `amd64`/`arm64` for DEB and `x86_64`/`aarch64` for RPM. Only `$suite`,
|
|
601
606
|
`$releasever` and `$basearch` URL placeholders are expanded; arbitrary environment
|
|
@@ -1234,3 +1239,19 @@ or `expose` schema. `images.network_adapter_builder` selects the reviewed Go bui
|
|
|
1234
1239
|
image used by the existing recipe-hash image cache; Go is not a host prerequisite.
|
|
1235
1240
|
Node IP/MAC leases survive stop/start and are released on destroy. See
|
|
1236
1241
|
[networking](networking.md) for address pools, isolation and platform validation.
|
|
1242
|
+
|
|
1243
|
+
### Initial Puppet runs
|
|
1244
|
+
|
|
1245
|
+
```yaml
|
|
1246
|
+
node_defaults:
|
|
1247
|
+
puppet_runs: 4
|
|
1248
|
+
```
|
|
1249
|
+
|
|
1250
|
+
`empeira node run` runs the agent sequentially this many times after bootstrap,
|
|
1251
|
+
network cleanup and enrollment. The default is one; accepted values are integers
|
|
1252
|
+
from one through ten. Every run streams its normal Puppet output and reports its
|
|
1253
|
+
position and detailed exit code. Completed failing catalogs do not stop the sequence:
|
|
1254
|
+
for example, `4, 6, 2, 0` succeeds. The final run decides success (`0` or `2`). A
|
|
1255
|
+
failing final catalog retains the provisioned node for diagnosis and a later retry.
|
|
1256
|
+
Transport failures, timeouts and processes that cannot start abort immediately.
|
|
1257
|
+
`empeira node puppet` still runs once; start and other lifecycle commands add no runs.
|
data/docs/development.md
CHANGED
|
@@ -24,6 +24,11 @@ To reproduce a CI test job, activate the corresponding Ruby, install the locked
|
|
|
24
24
|
bundle and run `bundle exec rspec --exclude-pattern 'spec/integration/**/*_spec.rb'`.
|
|
25
25
|
Runtime and VM compatibility remain separate manual gates.
|
|
26
26
|
|
|
27
|
+
Mark examples that need only temporary files with `:files_only`; they retain an
|
|
28
|
+
isolated home but skip Git initialization and the project marker. Project behavior
|
|
29
|
+
continues to use a real isolated Git repository. Syntax checks compile all Ruby
|
|
30
|
+
sources in one process per CI job, without executing guest helpers.
|
|
31
|
+
|
|
27
32
|
Addon tests (`spec/addon_*_spec.rb`) use the existing loopback Git fixture,
|
|
28
33
|
concurrent CLI subprocesses, a real PTY and the generated Bash completion. They
|
|
29
34
|
exercise branches, tags and commit refs without external Git services or container
|
|
@@ -378,6 +383,24 @@ and `dry_run` (default true). Dispatch it from `main`; a prerelease tag must mat
|
|
|
378
383
|
its channel, for example `v0.1.0-alpha.1`. Other branches and existing tags/releases
|
|
379
384
|
are rejected. Quality and real Docker/OpenVox gates must pass before the build.
|
|
380
385
|
|
|
386
|
+
For GitHub integrations that cannot dispatch Actions directly, the repository owner
|
|
387
|
+
(`c8m6`, numeric account ID 35730763) can open an issue titled
|
|
388
|
+
`Release request: v0.1.0-alpha.1` with a plain JSON body containing exactly:
|
|
389
|
+
|
|
390
|
+
```json
|
|
391
|
+
{"tag":"v0.1.0-alpha.1","channel":"alpha","dry_run":true}
|
|
392
|
+
```
|
|
393
|
+
|
|
394
|
+
The owner-only issue-opened dispatcher runs from the default branch and calls the
|
|
395
|
+
same manual release workflow on `main`. Comments, edits, contributor issues and
|
|
396
|
+
ordinary pushes cannot trigger releases. Title, tag, channel, boolean and owner
|
|
397
|
+
identity are validated before dispatch. Keep `dry_run: true` for validation;
|
|
398
|
+
open a new explicitly approved publish request with `dry_run: false` to publish.
|
|
399
|
+
The existing release gates and duplicate-tag checks remain mandatory. The issue
|
|
400
|
+
is an audit record, not a release or proof that publication succeeded. Check the
|
|
401
|
+
downstream Manual release run and both distribution destinations. The former
|
|
402
|
+
committed JSON request is no longer a release trigger.
|
|
403
|
+
|
|
381
404
|
The build uses the existing `rake build_info` task in a temporary source staging
|
|
382
405
|
directory, builds an installable gem, and checks its contents, license, normalized
|
|
383
406
|
Gem version and exact embedded metadata. RubyGems normalizes a tag such as
|
|
@@ -409,6 +432,15 @@ and the same tag/asset; missing assets, a retained draft or an API error fail th
|
|
|
409
432
|
Alpha/beta/rc are prereleases and do not become latest stable.
|
|
410
433
|
Dry-run performs all quality/build gates but skips the entire publishing job.
|
|
411
434
|
|
|
435
|
+
After the GitHub release is published and verified, the same release workflow
|
|
436
|
+
calls the existing `publish-rubygems.yml` workflow as a reusable job. The publisher
|
|
437
|
+
re-downloads and independently verifies the exact GitHub release gem and tag, then
|
|
438
|
+
publishes it to RubyGems.org using its existing OIDC trusted publisher. If the
|
|
439
|
+
GitHub release fails, the RubyGems job is skipped. A RubyGems failure leaves the
|
|
440
|
+
GitHub release intact for diagnosis; the standalone publisher remains available
|
|
441
|
+
to retry that exact release without rebuilding it. Ensure RubyGems trusted
|
|
442
|
+
publishing names `publish-rubygems.yml` as the authorized workflow.
|
|
443
|
+
|
|
412
444
|
### Release failure and recovery
|
|
413
445
|
|
|
414
446
|
Tag creation and GitHub release publication are separate operations. A failed run
|
data/docs/installation.md
CHANGED
|
@@ -241,7 +241,23 @@ The control repository must already be a Git repository. Project commands resolv
|
|
|
241
241
|
`.empeira.yaml` at that canonical root. An empty file uses defaults. Subdirectory
|
|
242
242
|
invocation and paths with spaces work. No Puppet-file heuristic or `--project`
|
|
243
243
|
selector exists. The source shell function preserves the current directory.
|
|
244
|
-
Version/help/self-update work outside Git
|
|
244
|
+
Version/help/self-update work outside Git. Regular RubyGems installations can update
|
|
245
|
+
to the latest stable Empeira version with:
|
|
246
|
+
|
|
247
|
+
```console
|
|
248
|
+
empeira self-update
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
The command uses the current Ruby interpreter and verifies the installed version
|
|
252
|
+
after RubyGems finishes. It never invokes sudo. Git checkouts, Bundler and unsupported
|
|
253
|
+
installations must use their original installation method. Permission and download
|
|
254
|
+
failures retain RubyGems diagnostics.
|
|
255
|
+
|
|
256
|
+
Inside a project, `empeira update all` first performs self-update, then starts
|
|
257
|
+
`empeira update images` and `empeira update modules` in fresh Ruby processes using
|
|
258
|
+
the verified installed version. The first failure stops the sequence and returns
|
|
259
|
+
that command's exit code. These commands update artifacts; existing nodes and
|
|
260
|
+
running infrastructure are not reconciled automatically.
|
|
245
261
|
|
|
246
262
|
## Install the GitHub Release gem (alternative)
|
|
247
263
|
|
data/docs/networking.md
CHANGED
|
@@ -131,7 +131,7 @@ HTTP Host or TLS SNI. DNS changes require another `up`.
|
|
|
131
131
|
Reconciliation installs DROP before applying complete rules. Removed grants also
|
|
132
132
|
revoke existing connections. DNS or firewall failure leaves egress blocked/stopped,
|
|
133
133
|
never on unrestricted provider NAT. Policy edits preserve node/gateway identities;
|
|
134
|
-
`status` checks actual rules and forwarding, and `up` repairs drift.
|
|
134
|
+
`status --verify` checks actual rules and forwarding, and `up` repairs drift.
|
|
135
135
|
|
|
136
136
|
CoreDNS alone receives TCP/UDP 53 to its selected resolvers. Proxies alone receive
|
|
137
137
|
TCP 80/443 and enforce their destination allowlists. Normal proxy allow rules apply
|
|
@@ -215,7 +215,7 @@ the complete filter. Mapping changes therefore revoke old connections, including
|
|
|
215
215
|
previous connections to the original external destination. This also interrupts
|
|
216
216
|
other connections passing through that gateway; clients must reconnect. Identical
|
|
217
217
|
NAT on repeated `up` preserves connection state. Any apply/capability failure leaves
|
|
218
|
-
the gateway blocked/stopped. `status` checks complete filter/NAT rules and forwarding.
|
|
218
|
+
the gateway blocked/stopped. `status --verify` checks complete filter/NAT rules and forwarding.
|
|
219
219
|
No host conntrack, foreign firewall or target container configuration is changed.
|
|
220
220
|
|
|
221
221
|
The same helper runs in the Linux engine for Docker, rootless Podman, Docker Desktop
|
|
@@ -290,8 +290,24 @@ dns:
|
|
|
290
290
|
|
|
291
291
|
The optional additional resolver is queried first for non-Empeira names; NXDOMAIN
|
|
292
292
|
or NODATA falls through to the existing upstream. It may be a DNS name or address
|
|
293
|
-
and need not be an Empeira service.
|
|
294
|
-
|
|
293
|
+
and need not be an Empeira service. For a managed service, use its service name
|
|
294
|
+
or `<service>.empeira.internal`. `up` requires that service to be enabled and
|
|
295
|
+
running, then binds its verified isolated IPv4 address into CoreDNS. Address changes
|
|
296
|
+
are reconciled on the next `up`; missing services and self references fail clearly.
|
|
297
|
+
External resolver names and IPv4 addresses retain their existing behavior.
|
|
298
|
+
|
|
299
|
+
Before publishing a changed Corefile, `up` starts a disposable CoreDNS validator
|
|
300
|
+
inside the isolated workspace network. It verifies the candidate with a private
|
|
301
|
+
TXT generation query, removes the validator, atomically publishes the file and
|
|
302
|
+
signals the existing DNS process. Completion requires the same generation answer
|
|
303
|
+
from that process. A failed activation restores the previous working Corefile and
|
|
304
|
+
reports any failure to verify restoration. Unchanged `up` does not restart or reload
|
|
305
|
+
CoreDNS. The validation helper never publishes host ports or attaches to an external
|
|
306
|
+
network. Internal names stay authoritative; successful additional-resolver answers
|
|
307
|
+
never fall through to the host upstream. `next NXDOMAIN` and `next_on_nodata` apply
|
|
308
|
+
only to negative or empty answers, respectively.
|
|
309
|
+
|
|
310
|
+
VPN/engine routing remains the host's responsibility; flat Linux resolver
|
|
295
311
|
files cannot represent every split-DNS route. AAAA queries return NODATA.
|
|
296
312
|
|
|
297
313
|
### Exact DNS rewrites
|
data/docs/nodes.md
CHANGED
|
@@ -5,7 +5,7 @@ Create nodes imperatively after `empeira up`; named nodes do not belong in
|
|
|
5
5
|
Existing-node commands use the provider recorded in workspace state.
|
|
6
6
|
|
|
7
7
|
```console
|
|
8
|
-
empeira node run host1 --provider container --os ubuntu --version
|
|
8
|
+
empeira node run host1 --provider container --os ubuntu --version 26.04
|
|
9
9
|
empeira node run vm1 --provider vm --memory 2048 --cpus 2
|
|
10
10
|
empeira node list
|
|
11
11
|
empeira node puppet host1
|
|
@@ -19,10 +19,31 @@ empeira node start host1
|
|
|
19
19
|
empeira node destroy host1
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
The default node is Ubuntu
|
|
22
|
+
The default node is Ubuntu 26.04, 1024 MiB, and two CPUs. External traffic requires
|
|
23
23
|
an explicit TCP egress rule or an allowlisted proxy policy. If the workspace proxy
|
|
24
24
|
is enabled, the node automatically gets
|
|
25
25
|
controlled HTTP/HTTPS access to destinations allowed by its proxy policy.
|
|
26
|
+
|
|
27
|
+
Ubuntu 26.04 LTS is available for both providers on AMD64 and ARM64:
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
empeira node run container.example.test --provider container --os ubuntu --version 26.04
|
|
31
|
+
empeira node run vm.example.test --provider vm --os ubuntu --version 26.04
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
The container uses the official Ubuntu index pin in `config/defaults.yaml`; VM
|
|
35
|
+
images use Ubuntu's Resolute release and its HTTPS SHA-256 manifest. The configured
|
|
36
|
+
OpenVox Agent is available for both architectures in the
|
|
37
|
+
[official Ubuntu 26.04 repository](https://apt.voxpupuli.org/dists/ubuntu26.04/).
|
|
38
|
+
The existing APT source preservation, DNS setup, privilege and cgroup rules apply.
|
|
39
|
+
New Ubuntu 26.04 VMs keep the kernel's interface name and match the peer NIC by its
|
|
40
|
+
fixed MAC address. This avoids the upstream cloud-init/udev rename race during
|
|
41
|
+
restart; the static address, DNS and gateway settings stay the same. Older releases
|
|
42
|
+
retain their existing `eth0` naming.
|
|
43
|
+
Containers still default to process init; systemd init retains the documented
|
|
44
|
+
Podman/cgroup requirements. Ubuntu 22.04/24.04 and existing VM base revisions are
|
|
45
|
+
preserved; new nodes default to Ubuntu 26.04 unless configured otherwise.
|
|
46
|
+
|
|
26
47
|
Hostname/certname is unique across both providers within a workspace. Names are
|
|
27
48
|
normalized to lowercase; service names are reserved. Another checkout may reuse
|
|
28
49
|
the same hostname. Before the first Puppet run, Empeira installs
|
|
@@ -107,7 +128,7 @@ on startup.
|
|
|
107
128
|
## Distribution package sources
|
|
108
129
|
|
|
109
130
|
The reviewed Ubuntu container recipes retain the upstream distribution sources.
|
|
110
|
-
Ubuntu 24.04
|
|
131
|
+
Ubuntu 24.04 and 26.04 use `/etc/apt/sources.list.d/ubuntu.sources` (deb822); older images may
|
|
111
132
|
use `/etc/apt/sources.list`. VM Cloud-Init leaves the base image's APT configuration
|
|
112
133
|
untouched. It does not generate archive, security, ports, or internal repository
|
|
113
134
|
entries.
|
|
@@ -424,7 +445,7 @@ VM. Capability detection selects KVM or HVF; software emulation is never automat
|
|
|
424
445
|
Preflight checks commands, acceleration, image metadata, scripts, package destinations
|
|
425
446
|
and control-plane readiness before downloads or node reservation.
|
|
426
447
|
|
|
427
|
-
Ubuntu 22.04/24.04 cloud images and Rocky 8/9 GenericCloud images come directly from
|
|
448
|
+
Ubuntu 22.04/24.04/26.04 cloud images and Rocky 8/9 GenericCloud images come directly from
|
|
428
449
|
[Ubuntu](https://cloud-images.ubuntu.com/releases/) and
|
|
429
450
|
[Rocky Linux](https://dl.rockylinux.org/pub/rocky/). Availability depends on architecture.
|
|
430
451
|
SHA-256 manifests are fetched over HTTPS and complete images verified before caching.
|
|
@@ -530,7 +551,7 @@ and checks the exact address and device type.
|
|
|
530
551
|
|
|
531
552
|
| OS catalog key | Versions | Build source |
|
|
532
553
|
| --- | --- | --- |
|
|
533
|
-
| `ubuntu` | `22.04`, `24.04` | Docker Official Ubuntu images |
|
|
554
|
+
| `ubuntu` | `22.04`, `24.04`, `26.04` | Docker Official Ubuntu images |
|
|
534
555
|
| `rocky` | `8`, `9` | Rocky Linux project images |
|
|
535
556
|
| `almalinux` | `8`, `9` | Docker Official AlmaLinux images |
|
|
536
557
|
| `oraclelinux` | `8` | Docker Official Oracle Linux image |
|
data/docs/proxy.md
CHANGED
|
@@ -228,4 +228,6 @@ disposable helper with normal container-runtime networking and supplied user pro
|
|
|
228
228
|
variables. Git uses the invoking user's host Git/SSH configuration and network
|
|
229
229
|
access, without copying private keys. No update starts Squid, CoreDNS or other
|
|
230
230
|
workspace services. See [update-plane architecture](architecture.md#runtime-and-update-planes).
|
|
231
|
-
|
|
231
|
+
RubyGems installations support `self-update`. The aggregate `update all` first
|
|
232
|
+
updates Empeira, then runs image and module updates in fresh processes using the
|
|
233
|
+
verified installed version. A failed step stops the sequence.
|
data/docs/troubleshooting.md
CHANGED
|
@@ -321,8 +321,10 @@ diagnostics identify the affected image. Successful tool logs remain hidden.
|
|
|
321
321
|
Update helpers are removed after completion where the engine is reachable. If an
|
|
322
322
|
engine stops responding during cleanup, restore access and inspect the reported
|
|
323
323
|
update-helper failure before removing anything; names alone do not establish
|
|
324
|
-
ownership. `self-update`
|
|
325
|
-
|
|
324
|
+
ownership. `self-update` supports regular RubyGems installations; Git checkouts and
|
|
325
|
+
Bundler must use their original installation method. `update all` runs self-update,
|
|
326
|
+
then images and modules in fresh processes, stopping on the first failure without
|
|
327
|
+
rolling back earlier updates. Image updates are not atomic across the full catalog;
|
|
326
328
|
earlier successful pulls/builds remain after a later failure.
|
|
327
329
|
|
|
328
330
|
## User preferences and registry authentication
|
|
@@ -349,7 +351,14 @@ metadata failures never fall back to a full pull.
|
|
|
349
351
|
|
|
350
352
|
## Workspace gateway and direct egress
|
|
351
353
|
|
|
352
|
-
`status` reports
|
|
354
|
+
`status` reports observed service state and network membership without starting
|
|
355
|
+
diagnostic helpers. Use `empeira status --verify` to check live gateway firewall,
|
|
356
|
+
forwarding and Docker bridge rules. Application readiness is checked by `up`.
|
|
357
|
+
Running services describe observed state; only `Network policy: verified` confirms
|
|
358
|
+
the live policy checks passed. Missing bridge preparation remains unverified until
|
|
359
|
+
`up` reconciles it. A failed policy check marks infrastructure degraded without
|
|
360
|
+
changing the observed running state of its services.
|
|
361
|
+
An absent or unsafe runtime network cannot receive a verified policy result.
|
|
353
362
|
After an egress edit or DNS change, run `empeira up`; nodes keep their identities.
|
|
354
363
|
A failed hostname lookup leaves egress blocked. Check the host/corporate resolver
|
|
355
364
|
and every A record first. An IPv6-only destination is unsupported, not silently allowed.
|
data/lib/empeira/agent/target.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Empeira
|
|
4
4
|
module Agent
|
|
5
5
|
class Target < Data.define(:os, :release, :architecture)
|
|
6
|
-
SUITES = { '22.04' => 'jammy', '24.04' => 'noble' }.freeze
|
|
6
|
+
SUITES = { '22.04' => 'jammy', '24.04' => 'noble', '26.04' => 'resolute' }.freeze
|
|
7
7
|
ARCHITECTURES = { 'amd64' => 'x86_64', 'arm64' => 'aarch64' }.freeze
|
|
8
8
|
|
|
9
9
|
def family
|
data/lib/empeira/build.json
CHANGED
data/lib/empeira/build_info.rb
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require 'json'
|
|
4
3
|
require_relative 'version_requirement'
|
|
5
4
|
|
|
6
5
|
module Empeira
|
|
@@ -9,7 +8,12 @@ module Empeira
|
|
|
9
8
|
attr_reader :version, :revision, :build_time
|
|
10
9
|
|
|
11
10
|
def self.load(path: METADATA_PATH)
|
|
12
|
-
data = File.file?(path)
|
|
11
|
+
data = if File.file?(path)
|
|
12
|
+
require 'json'
|
|
13
|
+
JSON.parse(File.read(path))
|
|
14
|
+
else
|
|
15
|
+
{}
|
|
16
|
+
end
|
|
13
17
|
new(**data.transform_keys(&:to_sym))
|
|
14
18
|
end
|
|
15
19
|
|
data/lib/empeira/cli/base.rb
CHANGED
|
@@ -7,7 +7,7 @@ module Empeira
|
|
|
7
7
|
module CLI
|
|
8
8
|
class Base < Thor
|
|
9
9
|
check_unknown_options!
|
|
10
|
-
class_option :container_engine, type: :string, enum:
|
|
10
|
+
class_option :container_engine, type: :string, enum: Empeira::Runtime.registry.names,
|
|
11
11
|
desc: 'Override runtime.container_engine'
|
|
12
12
|
|
|
13
13
|
def self.exit_on_failure?
|
data/lib/empeira/cli/config.rb
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
require_relative 'base'
|
|
4
|
+
|
|
3
5
|
module Empeira
|
|
4
6
|
module CLI
|
|
5
7
|
class Config < Base
|
|
@@ -14,7 +16,7 @@ module Empeira
|
|
|
14
16
|
|
|
15
17
|
desc 'validate', 'Validate the effective configuration'
|
|
16
18
|
def validate
|
|
17
|
-
application.context.
|
|
19
|
+
ControlPlane::Plan.new(context: application.context).validate_server_mounts!
|
|
18
20
|
say 'Configuration is valid.'
|
|
19
21
|
end
|
|
20
22
|
end
|
data/lib/empeira/cli/main.rb
CHANGED
|
@@ -40,6 +40,7 @@ module Empeira
|
|
|
40
40
|
option :verbose, type: :boolean, desc: 'Include revision and build time'
|
|
41
41
|
map '--version' => :version
|
|
42
42
|
def version
|
|
43
|
+
require 'json' if options[:verbose]
|
|
43
44
|
info = BuildInfo.load
|
|
44
45
|
say(options[:verbose] ? JSON.pretty_generate(info.to_h) : "Empeira #{info.version}")
|
|
45
46
|
end
|
|
@@ -54,8 +55,9 @@ module Empeira
|
|
|
54
55
|
subcommand 'completion', Completion
|
|
55
56
|
|
|
56
57
|
desc 'status', 'Inspect workspace infrastructure without changing state'
|
|
58
|
+
option :verify, type: :boolean, default: false, desc: 'Also verify live gateway and bridge policy'
|
|
57
59
|
def status
|
|
58
|
-
application.infrastructure.status.each { |key, value| say "#{key}: #{value}" }
|
|
60
|
+
application.infrastructure.status(verify: options[:verify]).each { |key, value| say "#{key}: #{value}" }
|
|
59
61
|
end
|
|
60
62
|
|
|
61
63
|
desc 'up', 'Ensure isolated workspace infrastructure'
|
|
@@ -95,12 +97,15 @@ module Empeira
|
|
|
95
97
|
say 'Workspace infrastructure and persistent data removed.'
|
|
96
98
|
end
|
|
97
99
|
|
|
98
|
-
desc 'self-update', 'Update
|
|
100
|
+
desc 'self-update', 'Update Empeira to the latest stable version via RubyGems'
|
|
99
101
|
def self_update
|
|
100
|
-
|
|
102
|
+
say 'Updating Empeira via RubyGems...'
|
|
103
|
+
previous, installed = Updates::Service.new.self_update
|
|
104
|
+
say(installed > previous.version ? 'Empeira updated successfully.' : 'Empeira is already up to date.')
|
|
105
|
+
say "Installed version: #{installed}"
|
|
101
106
|
end
|
|
102
107
|
|
|
103
|
-
desc 'update SUBCOMMAND', 'Update
|
|
108
|
+
desc 'update SUBCOMMAND', 'Update Empeira and managed artifacts'
|
|
104
109
|
subcommand 'update', Update
|
|
105
110
|
|
|
106
111
|
%w[images].each do |operation|
|
data/lib/empeira/cli/node.rb
CHANGED
data/lib/empeira/cli/proxy.rb
CHANGED
data/lib/empeira/cli/update.rb
CHANGED
|
@@ -7,12 +7,13 @@ module Empeira
|
|
|
7
7
|
class Update < Base
|
|
8
8
|
Updates::Service::TARGETS.each do |target|
|
|
9
9
|
desc target,
|
|
10
|
-
{ 'all' => 'Update
|
|
10
|
+
{ 'all' => 'Update Empeira, then images and modules using the updated installation',
|
|
11
11
|
'modules' => 'Synchronize Puppetfile module artifacts',
|
|
12
12
|
'images' => 'Refresh configured container image artifacts' }.fetch(target)
|
|
13
13
|
define_method(target) do
|
|
14
14
|
if target == 'all'
|
|
15
|
-
|
|
15
|
+
say 'Updating Empeira, images and modules...'
|
|
16
|
+
Updates::Service.new.update(target)
|
|
16
17
|
else
|
|
17
18
|
progressing("Updating #{target}...") { |app| app.updates.update(target) }
|
|
18
19
|
end
|
|
@@ -16,7 +16,8 @@ module Empeira
|
|
|
16
16
|
['config'] => %w[help show validate],
|
|
17
17
|
['node'] => %w[help run start stop destroy list exec shell console ssh puppet logs],
|
|
18
18
|
['completion'] => %w[help bash],
|
|
19
|
-
['version'] => ['--verbose']
|
|
19
|
+
['version'] => ['--verbose'],
|
|
20
|
+
['status'] => ['--verify']
|
|
20
21
|
}.tap { |commands| Immutable.deep_freeze(commands) }
|
|
21
22
|
GLOBAL_OPTIONS = %w[--container-engine --help].freeze
|
|
22
23
|
NODE_OPTIONS = %w[--provider --os --version --memory --cpus].freeze
|
|
@@ -104,7 +105,7 @@ module Empeira
|
|
|
104
105
|
end
|
|
105
106
|
|
|
106
107
|
def values(option, context)
|
|
107
|
-
return
|
|
108
|
+
return Empeira::Runtime.registry.names if option == '--container-engine'
|
|
108
109
|
return Empeira::Node.registry.names if option == '--provider' && context == %w[node run]
|
|
109
110
|
return node_values(option) if %w[--os --version].include?(option) && context == %w[node run]
|
|
110
111
|
return [] if VALUE_OPTIONS.include?(option)
|
|
@@ -123,7 +124,7 @@ module Empeira
|
|
|
123
124
|
end
|
|
124
125
|
|
|
125
126
|
def completion_application
|
|
126
|
-
Application.new
|
|
127
|
+
@completion_application ||= Application.new
|
|
127
128
|
end
|
|
128
129
|
|
|
129
130
|
def recovery_node_names
|
|
@@ -6,7 +6,7 @@ module Empeira
|
|
|
6
6
|
NAME = /\A[a-z][a-z0-9]*(?:-[a-z0-9]+)*\z/
|
|
7
7
|
RESERVED = %w[server puppetdb puppetdb-backend postgres dns coredns proxy gateway browser browser-ui vm-gateway
|
|
8
8
|
bootstrap-proxy module-installer ca ssl server-data postgres-data
|
|
9
|
-
puppetdb-data node localhost].freeze
|
|
9
|
+
puppetdb-data node localhost dns-validation].freeze
|
|
10
10
|
FIELDS = %w[name image environment command configuration].freeze
|
|
11
11
|
|
|
12
12
|
def self.validate!(entries, path)
|