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

registration.name does not pass set value making box register as localhost.localdomain #128

Open
cjg23ics opened this issue May 6, 2018 · 1 comment

Comments

@cjg23ics
Copy link

cjg23ics commented May 6, 2018

Hi all,

When using this plugin on a Virtualbox based vagrant instance, I am having issues with getting the registration.name to work correctly. I have set this value, however, any vm registered to Satellite shows up as localhost.localdomain, which has us stepping on ourselves in a shared environment. Any help is appreciated.

config.vm.define "sectest7", autostart: false do |sectest7|
configureRhel7 sectest7
sectest7.vm.network :private_network, ip: 'X.X.X.X'
sectest7.vm.hostname = 'sectest7.ics.test'
sectest7.registration.name = 'sectest7.ics.test'
sectest7.registration.serverurl = 'https://satellite.example.com/rhsm'
sectest7.registration.baseurl = 'https:/satellite.example.com/pulp/repos'
sectest7.registration.ca_cert = './scripts/satellite.example.com-ca_cert.crt'
sectest7.registration.activationkey = 'aci-development-7Server-Vagrant'
sectest7.registration.org = 'ICS-ACI'
sectest7.vm.provision :shell, inline: 'bash /vagrant/scripts/shell/provision.sh /vagrant/scripts/shell/postpuppet', env: { 'FACTER_environment' => 'vagrant', 'FACTER_role' => 'sectest' }
end

@rbywater
Copy link

This is a "bug" in subscription-manager whereby the value pased as --name is ignored. Unfortunately RedHat aren't going to be fixing it by the sound of it. See https://bugzilla.redhat.com/show_bug.cgi?id=1344011

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

No branches or pull requests

2 participants