FR: Set the hostname of the system at creation time. #569
Description
🗣️ Foreword
Thank for taking the time to fill this feature request fully. Without it we may not be able to , and the issue may be closed without resolution.
🙍 Problem Statement
There is no capability to set the hostname of the system at creation time (yml file). Many of our existing (dev/test/stage/prod) systems already have their hostname set and some recipes utilize that. But for kitchen we can't accurately test these recipes in AWS. We are utilizing the hostname resource which requires a reboot and breaks the rest of the recipe test. So, it takes kitchen 2 runs to test these recipes.
❔ Possible Solution
adding hostname: or vm_hostname: to the driver would resolve this issue.
⤴️ Describe alternatives you've considered
Again, we are using hostname resoruce which requires a reboot. Unfortunately, we can't move back to using Vagrant for testing becuase one step is installing an AWS agent which validates that it is an AWS-hosted system and will fail if it is not.
➕ Additional context
So, without the hostname being set at creation time, we have to rely on the hostname resource and the subsequent reboot. We also can't go back to non-AWS hosting as one of the software installations require to be an AWS hosted system.
Thanks for looking at this!