Skip to content

image VMs without fileserver - #1046

Merged
rrotter merged 2 commits into
productionfrom
image_without_fileserver
Aug 19, 2026
Merged

image VMs without fileserver#1046
rrotter merged 2 commits into
productionfrom
image_without_fileserver

Conversation

@rrotter

@rrotter rrotter commented Aug 18, 2026

Copy link
Copy Markdown
Member

Update Debian preseed files to eliminate fileserver dependency:

  • generate puppet.conf, rather than downloading from fileserver
    • new puppetserver parameter sets puppet server address
  • remove packages from preseed:
    • dirmngr: not needed, probably leftover from adding puppetlabs deb
    • openssh-server: installed on first puppet run
    • iptables-persistent
      • installed on first puppet run
      • not needed w/o openssh-server
      • removing this removes the need to download iptables config
  • qemu-guest-agent: install from main pkgset, not late_command

Also, for consistency, change the time zone in bookworm preseed to match trixie.

US/Eastern works on bookworm, but America/Detroit works on every
version. Remove a needless difference between bookworm and trixie
preseeds.
@rrotter
rrotter force-pushed the image_without_fileserver branch 3 times, most recently from 085e4cc to 37d94de Compare August 19, 2026 01:31
- generate puppet.conf, rather than downloading from fileserver
- remove packages from preseed:
  - dirmngr: not needed, probably leftover from adding puppetlabs deb
  - openssh-server: installed on first puppet run
  - iptables-persistent
    - installed on first puppet run
    - not needed w/o ssh
    - removing this removes the need to download iptables config
- qemu-guest-agent: install from main pkgset, not late_command

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Debian VM preseed templates and Puppet module parameters to remove dependency on an external “fileserver” during image installs, primarily by generating puppet.conf locally and eliminating preseed-time firewall/package downloads.

Changes:

  • Replace fileserver-based wget downloads with generated /etc/puppetlabs/puppet/puppet.conf using a new puppetserver parameter.
  • Remove ssh-server, iptables-persistent, and dirmngr from preseed package selection; install qemu-guest-agent via the main package set.
  • Update module parameters, Hiera fixtures, and specs from filehost to puppetserver, and add assertions to prevent fileserver/iptables usage in preseeds.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
templates/virtual_machine/trixie.cfg.erb Removes fileserver downloads and iptables-related preseed steps; generates puppet.conf and adjusts package selection.
templates/virtual_machine/bookworm.cfg.erb Same as trixie template updates; also adjusts timezone setting in the preseed.
manifests/virtual_machine.pp Replaces filehost parameter documentation/default with puppetserver.
manifests/profile/vmhost/host.pp Wires puppetserver through the vmhost profile into nebula::virtual_machine.
spec/fixtures/hiera/default.yaml Updates fixture data key from filehost to puppetserver.
spec/defines/virtual_machine_spec.rb Updates/extends preseed content expectations to validate new behavior and absence of fileserver/iptables usage.
spec/classes/profile/vmhost/host_spec.rb Updates expectations to use puppetserver parameter instead of filehost.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread templates/virtual_machine/trixie.cfg.erb
Comment thread templates/virtual_machine/bookworm.cfg.erb
Comment thread spec/defines/virtual_machine_spec.rb
Comment thread templates/virtual_machine/bookworm.cfg.erb
@umjnega

umjnega commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Looks reasonable to me.

@rrotter

rrotter commented Aug 19, 2026

Copy link
Copy Markdown
Member Author

merged corresponding control repo branch

@rrotter
rrotter merged commit e791aa1 into production Aug 19, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants