'Build a list of docker registries available according to inventory vars.'

def known_docker_registries(self):

    docker_facts = self.get_var('openshift', 'docker')
    regs = set(docker_facts['additional_registries'])
    deployment_type = self.get_var('openshift_deployment_type')
    if (deployment_type == 'origin'):
        regs.update(['docker.io'])
    elif ('enterprise' in deployment_type):
        regs.update(['registry.access.redhat.com'])
    return list(regs)
