
The bootstrap-ansible script is responsible for installing many base packages. It attempts to detect the host distribution by checking for various operating system identification files (such as /etc/os-release). As per the freedesktop.org spec, all complying distributions ship the /etc/os-release file, just with different content. The script incorrectly assumes that if this file is present it represents an apt based distribution, such as Ubuntu, and proceeds to install base packages. As all distributions ship this file, the bootstrap process fails on non-apt systems, such as Fedora (the subsequent checks for distribution-specific files, such as /etc/fedora-release, are skipped). This patch adds a function to the scripts-library which will read the /etc/os-release file and export various DISTRO_ prefixed variables which identify the distribution and version. These can be used wherever the scripts-library is sourced. The package installation check inside bootstrap-ansible.sh is updated to make use of these new variables by checking the value of DISTRO_ID. Related to commits: d9b9a427aa03 "Add reliable OS detection for ansible bootstrap" 68d68c27dd80 "Remove os-detection script" Implements: blueprint multi-platform-host Change-Id: I07c8a7a7f8d4cf56cf125fcef18e6cf4f473e39e
OpenStack-Ansible
OpenStack-Ansible is an official OpenStack project which aims to deploy production environments from source in a way that makes it scalable while also being simple to operate, upgrade, and grow.
For an overview of the mission, repositories and related Wiki home page, please see the formal Home Page for the project.
For those looking to test OpenStack-Ansible using an All-In-One (AIO) build, please see the Quick Start guide.
For more detailed Installation and Operator documentation, please see the Install Guide.
If OpenStack-Ansible is missing something you'd like to see included, then we encourage you to see the Developer Documentation for more details on how you can get involved.
Developers wishing to work on the OpenStack-Ansible project should always base their work on the latest code, available from the master GIT repository at Source.
If you have some questions, or would like some assistance with
achieving your goals, then please feel free to reach out to us on the OpenStack Mailing Lists
(particularly openstack-operators or openstack-dev) or on IRC in
#openstack-ansible
on the freenode network.