Bootstrap a Fedora container

def _bootstrap_fedora(name, **kwargs):
    '''
    Bootstrap a Fedora container
    '''
    dst = _make_container_root(name)
    if not kwargs.get('version', False):
        if __grains__['os'].lower() == 'fedora':
            version = __grains__['osrelease']
        else:
            version = '21'
    else:
        version = '21'
    cmd = ('yum -y --releasever={0} --nogpg --installroot={1} '
           '--disablerepo="*" --enablerepo=fedora install systemd passwd yum '
           'fedora-release vim-minimal'.format(version, dst))
    ret = __salt__['cmd.run_all'](cmd, python_shell=False)
    if ret['retcode'] != 0:
        _build_failed(dst, name)
    return ret