@moshea if you've added a getter/setter for managed_ip in aws/server.rb, you can then add a helper method in the same file for the IP address itself, rather than the EC2 class (which represents the whole CR, not just one VM).  e.g.

lib/fog_extensions/aws/server.rb:

    attr_accessor :managed_ip
    def ip_address
      managed_ip == 'private' ? private_ip_address : public_ip_address
    end

In lib/foreman/model/ec2.rb you then change the provided_attributes to have: `:ip => :ip_address` where the latter refers to the new helper method added above.

Sorry I missed you on IRC, been travelling today and will be out until mid-next week.