Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add floppy_content similar to cd_content #110

Closed
sestegra opened this issue Sep 26, 2021 · 0 comments · Fixed by #117
Closed

Add floppy_content similar to cd_content #110

sestegra opened this issue Sep 26, 2021 · 0 comments · Fixed by #117

Comments

@sestegra
Copy link
Contributor

sestegra commented Sep 26, 2021

Description

Add floppy_content to enable templating on mounted files.

Use Case(s)

I'm working from a builder machine that needs to pass HTTP proxy to connect on vSphere.
So, the local HTTP server can't be used to serve kickstart, seedfile, data source configuration..
Usually, I'm using cd_content to pass these files for building images.

However, for legacy Linux distributions that doesn't support to fetch file from an additional CD-ROM , I need to have the same flexibilty as cd_content to use templatefile function but for floppy.

Potential configuration

floppy_content = {
  "/ks.cfg" = templatefile("${path.cwd}/data/ks.pkrtpl.hcl", { build_username = var.build_username, build_password_encrypted = var.build_password_encrypted, vm_guest_os_language = var.vm_guest_os_language, vm_guest_os_keyboard = var.vm_guest_os_keyboard, vm_guest_os_timezone = var.vm_guest_os_timezone })
}

Potential References

  • Ubuntu 18.04 doesn't support an additional CD-ROM to fetch kickstart file from.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant