]> git-server-git.apps.pok.os.sepia.ceph.com Git - cephmetrics.git/commitdiff
ansible: Do not enable rhsm repos 132/head
authorBoris Ranto <branto@redhat.com>
Mon, 2 Oct 2017 09:29:01 +0000 (11:29 +0200)
committerBoris Ranto <branto@redhat.com>
Mon, 2 Oct 2017 09:29:05 +0000 (11:29 +0200)
We are shipping as a regular product and as such, we cannot enable
additional repos via rhsm. The customers might even not have these repos
installed (especially the storage console repo might not be available to
them).

If we need any of the packages from these repos, we need to cross-ship
them in our product (as we already do downstream).

Signed-off-by: Boris Ranto <branto@redhat.com>
ansible/roles/ceph-grafana/tasks/setup_repos.yml
ansible/roles/cephmetrics-common/defaults/main.yml

index edac3f361e899328ab6112eafe809127c5aaaceb..8febca21da4eef42ea5ce7c2ef0c385bfb17f569 100644 (file)
     - ansible_pkg_mgr == 'apt'
     - devel_mode
 
-- name: Enable subscription-manager repos
-  command: "subscription-manager repos{% for repo in rhsm_repos %} --enable={{ repo }}{% endfor %}"
-  when:
-    - ansible_pkg_mgr == "yum"
-    - not devel_mode
-
 - name: Remove old cephmetrics production repo
   file:
     path: /etc/yum.repos.d/cephmetrics.repo
index 73e8f9c4e2844e4ef258bcd0f2800c9963d0a59c..981a9fe42b8f264ddde8f50a8b5579a791efa649 100644 (file)
@@ -42,10 +42,6 @@ defaults:
       - ['15m', '5y']
   # The firewalld zone that carbon and grafana will use
   firewalld_zone: public
-  # RHEL repos that need to be enabled with subscription-manager
-  rhsm_repos:
-    - rhel-7-server-rhscon-2-installer-rpms
-    - rhel-7-server-optional-rpms
   devel_packages:
     yum:
       # unzip is needed to extract the Vonage plugin