openstack-ansible/playbooks/repo-store-source.yml

33 lines
1.2 KiB
YAML

---
# Copyright 2014, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# The purpose here is to allow for the environment to update/build the
# python wheel files from the CURRENT release, as set in the openstack_release
# variable.
- name: Build new repo packages for a given release
hosts: repo_all[0]
max_fail_percentage: 20
gather_facts: false
user: root
tasks:
- name: Store git repos
shell: |
yaprt store-repos --report-file {{ repo_service_home_folder }}/repo/reports/release-{{ openstack_release }}-report.json \
--git-repo-path "{{ repo_service_home_folder }}/repo/openstackgit"
sudo: yes
sudo_user: "{{ repo_service_user_name }}"
tags:
- repo-store-git