tripleo-quickstart-extras/roles/install-built-repo/README.md
Sagi Shnaidman 1792332d0c Use web repo with installed packages for image build
When building images we need to supply repo with built packages
to DIB so it will use when installing packages on the image.
Because DIB is in a chrooted environment we have to use repo in
network. This patch runs a webserver on the directory of the
repository to make it accessible over HTTP on port 8766.

Change-Id: I7b21d3ff1ec7cecab322e599cb929259f5a7256e
2017-04-05 14:15:05 +03:00

1.7 KiB

install-built-repo

Install built packages on host and/or within the image. This Ansible role allows installation of packages which were built by DLRN on a live host or within an image.

Requirements

No requirements.

Role Variables

  • ib_repo_install_script - path to repositories install script template
  • ib_repo_install_log - path to repositories install script log
  • ib_repo_run_live: false/true - where to run repo install script on host (live host that playbook runs on it) (default: true)
  • ib_gating_repo_enabled: true/false - whether to enable built repo or not (default: true)
  • ib_repo_file_path: path to compressed repo built by build-test-packages role
  • ib_repo_image_inject: false/true - where to inject and run repo install script on specified image (default: false)
  • ib_repo_image_path: path to image, in case of injecting repositories into the image
  • ib_repo_host: host where built repo exists, if it's not the same host where this roles runs
  • ib_create_web_repo: false/true - Create web accessible repository in directory with built packages (default: false)

Dependencies

  • modify-image role in TripleO Quickstart extras repository

Example Playbook

Including an example of how to use this role

---
- name:  Run repo install
  hosts: undercloud
  gather_facts: no
  roles:
    - install-built-repo

- name:  Run repo install
  hosts: undercloud
  gather_facts: no
  vars:
    ib_repo_image_inject: true
    ib_repo_image_path: "{{ working_dir }}/overcloud-full.qcow2"
  roles:
    - install-built-repo

License

Apache 2.0

Author Information

OpenStack