Open mohd-akram opened 2 years ago
Same problem for me.
Used this workaround
def vagrant_registration(name, config)
if Vagrant.has_plugin?("vagrant-registration")
# https://github.com/projectatomic/adb-vagrant-registration
config.registration.username = ENV['VAGRANT_RHEL_SUBSCRIPTION_USERNAME']
config.registration.password = ENV['VAGRANT_RHEL_SUBSCRIPTION_PASSWORD']
config.registration.skip = param(p, :skip_subscription)
config.registration.name = name
# config.registration.unregister_on_halt = false
end
end
# Set VM parameters
node.vm.provider 'virtualbox' do |vb|
puts node.vm.hostname
vagrant_registration(node.vm.hostname, config)
This causes VMs to all be registered with the same default box hostname.