From 8d8417609c02e5a138ae868510bda984fd6b3b25 Mon Sep 17 00:00:00 2001 From: Behzad Dastur Date: Thu, 24 Mar 2016 15:54:39 +0000 Subject: [PATCH] Ability to generate repos for localmirror --- group_vars/all.sample | 5 ----- localrepo-site.yml.sample | 5 ++++- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/group_vars/all.sample b/group_vars/all.sample index 445c57c2f..8ea72b357 100644 --- a/group_vars/all.sample +++ b/group_vars/all.sample @@ -67,11 +67,6 @@ dummy: # you will get whatever version of Ceph is included in your Linux distro. # #ceph_use_distro_backports: false # DEBIAN ONLY -# Custom repo files when using local mirror (option ceph_origin: 'distro') -# repolist: -# - { src: "//localmirror_ceph.repo", dest: "/etc/yum.repos.d/ceph.repo" } -# - # STABLE ######## diff --git a/localrepo-site.yml.sample b/localrepo-site.yml.sample index 591bbe03e..5984852d0 100644 --- a/localrepo-site.yml.sample +++ b/localrepo-site.yml.sample @@ -3,9 +3,12 @@ # Additional/optiona step to generate repos.d file for local mirrors. # Defines deployment design and assigns role to server groups -- hosts: * +- hosts: all max_fail_percentage: 0 become: True + vars: + repolist: + - { src: "//localmirror_ceph.repo", dest: "/etc/yum.repos.d/ceph.repo" } tasks: - name: Copy User provided repo files to /etc/yum.repos.d/ copy: