SUSE: Add OpenStack cloud repository when bootstrapping the host
This is similar to I21ab8e13f25bb7a769dcf504fa6915303bc2feec. Even though most of the bootstrap packages are provided by the distribution mirrors, it's best if we add the OpenStack repository just in case there are any OpenStack specific package updates. Change-Id: I5db15736d46f98b0b20b1e227afa7f713df7064d
This commit is contained in:
parent
0739b9106a
commit
bbb0001856
@ -122,6 +122,7 @@ Before you begin, we recommend upgrading your system packages and kernel.
|
||||
|
||||
.. code-block:: shell-session
|
||||
|
||||
# zypper ar http://download.opensuse.org/repositories/Cloud:/OpenStack:/Pike/openSUSE_Leap_42.3 OBS:Cloud:OpenStack:Pike
|
||||
# zypper install git-core ntp openssh python-devel \
|
||||
sudo gcc libffi-devel libopenssl-devel
|
||||
|
||||
|
@ -69,6 +69,7 @@ system packages are upgraded and then reboot into the new kernel:
|
||||
|
||||
## openSUSE
|
||||
# zypper up
|
||||
# zypper ar http://download.opensuse.org/repositories/Cloud:/OpenStack:/Pike/openSUSE_Leap_42.3 OBS:Cloud:OpenStack:Pike
|
||||
# zypper in git-core
|
||||
# reboot
|
||||
|
||||
|
@ -90,6 +90,20 @@
|
||||
when:
|
||||
- ansible_pkg_mgr in ['yum', 'dnf']
|
||||
|
||||
# openSUSE
|
||||
- name: Add zypper cloud repositories
|
||||
zypper_repository:
|
||||
auto_import_keys: yes
|
||||
autorefresh: yes
|
||||
name: "{{ item.name }}"
|
||||
repo: "{{ item.uri }}"
|
||||
runrefresh: yes
|
||||
with_items: "{{ opensuse_openstack_repos }}"
|
||||
retries: 5
|
||||
delay: 2
|
||||
when:
|
||||
- ansible_pkg_mgr == 'zypper'
|
||||
|
||||
- name: Remove known problem packages
|
||||
package:
|
||||
name: "{{ packages_remove }}"
|
||||
|
@ -14,6 +14,10 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
opensuse_openstack_repos:
|
||||
- name: "OBS:Cloud:OpenStack:Pike"
|
||||
uri: "http://download.opensuse.org/repositories/Cloud:/OpenStack:/Pike/openSUSE_Leap_{{ ansible_distribution_version }}"
|
||||
|
||||
packages_install:
|
||||
- bridge-utils
|
||||
- curl
|
||||
|
Loading…
Reference in New Issue
Block a user