I have provisioned some VMs on EC2 using hammer cli.
When I run hammer host list command, it shows the list of hosts and their
But I have observed that for some hosts, it shows private IPs whereas for
some it shows public IPs. I want the public IPs only.
I have also observed that for the machines that it shows public IP for, it
doesnt display the MAC address, it displays MAC address only for machines
for which it shows private IPs.
Need help to resolve this.
Can somebody please reply? I want to resolve this or have a workaround by
> Can somebody please reply? I want to resolve this or have a workaround by this weekend.
the ip address value depends on the value that comes from facter ipaddress.
if you used foreman for provisioning the host in the first place, you
can set ignore_puppet_facts_for_provisioning to true
If this option is set to true then Foreman will not update a host's IP
and MAC with the values that it receives in a host's facts and it will
also include Foreman's values for IP and MAC to puppet in its node
information. Default: false
afair the value of the ip depends if you set the public or private ip
in the compute resource settings (thats the address foreman would try
to reach the instance).
On Tue, Apr 22, 2014 at 10:41 PM, Abhijeet Joshi wrote:
> Best regards,
> You received this message because you are subscribed to the Google Groups "Foreman users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.
> To post to this group, send email to firstname.lastname@example.org.
> Visit this group at http://groups.google.com/group/foreman-users.
> For more options, visit https://groups.google.com/d/optout.
ignore_puppet_facts_for_provisioning is indeed false. I will try with
it set to true.
Also, since I am using hammer cli to provision the host, I am setting
managed_ip to public every time.
Regardless of that and ignore_puppet_facts_for_provisioning's value, the
cli should have returned either public IP or private IP consistently, but
that is not so.