Browse Source

Remove insights from origin node image build.

Kenny Woodson 6 years ago
parent
commit
876f58566f
1 changed files with 5 additions and 1 deletions
  1. 5 1
      playbooks/azure/openshift-cluster/build_node_image.yml

+ 5 - 1
playbooks/azure/openshift-cluster/build_node_image.yml

@@ -23,9 +23,13 @@
       openshift_node_include_control_plane: True
       openshift_control_plane_static_pod_location: /etc/origin/node/disabled/
       openshift_node_image_prep_packages:
-      - insights-client
       - strace
 
+  - name: add insights-client to package installs when on rhel
+    set_fact:
+      openshift_node_image_prep_packages: "{{ openshift_node_image_prep_packages | union(['insights-client']) }}"
+    when: openshift_deployment_type == 'openshift-enterprise'
+
   - set_fact:
       openshift_additional_repos: "{{ openshift_additional_repos + [{'name': 'install_repo', 'baseurl': openshift_azure_install_repo, 'enabled': true, 'gpgcheck': false}] }}"
     when: openshift_azure_install_repo is defined and openshift_azure_install_repo