summaryrefslogtreecommitdiffstats
path: root/roles/openshift-prep
diff options
context:
space:
mode:
authorTlacenka <tlacencin@gmail.com>2017-07-19 17:40:53 +0200
committerTomas Sedovic <tomas@sedovic.cz>2017-07-19 17:40:53 +0200
commit244d4f2347526e6e7428e81f882793aaca75a770 (patch)
tree8d2253d1131320754ef23b098d8e23adc84f418c /roles/openshift-prep
parentd6c06b1bb0c07e5dd107538af4d2b3e4b575a3cd (diff)
downloadopenshift-244d4f2347526e6e7428e81f882793aaca75a770.tar.gz
openshift-244d4f2347526e6e7428e81f882793aaca75a770.tar.bz2
openshift-244d4f2347526e6e7428e81f882793aaca75a770.tar.xz
openshift-244d4f2347526e6e7428e81f882793aaca75a770.zip
During provisioning, make unnecessary packages optional under a switch (#561)
* openshift-prep: bash-completion and vim-enhanced packages are now optional under install_debug_packages switch * openshift-prep: new line removal
Diffstat (limited to 'roles/openshift-prep')
-rw-r--r--roles/openshift-prep/defaults/main.yml2
-rw-r--r--roles/openshift-prep/tasks/prerequisites.yml7
2 files changed, 9 insertions, 0 deletions
diff --git a/roles/openshift-prep/defaults/main.yml b/roles/openshift-prep/defaults/main.yml
index fac25dcc1..c8c9a00c0 100644
--- a/roles/openshift-prep/defaults/main.yml
+++ b/roles/openshift-prep/defaults/main.yml
@@ -1,11 +1,13 @@
---
# Defines either to install required packages and update all
manage_packages: true
+install_debug_packages: false
required_packages:
- wget
- git
- net-tools
- bind-utils
- bridge-utils
+debug_packages:
- bash-completion
- vim-enhanced
diff --git a/roles/openshift-prep/tasks/prerequisites.yml b/roles/openshift-prep/tasks/prerequisites.yml
index 433c1c4e3..b7601aa48 100644
--- a/roles/openshift-prep/tasks/prerequisites.yml
+++ b/roles/openshift-prep/tasks/prerequisites.yml
@@ -9,6 +9,13 @@
with_items: "{{ required_packages }}"
when: manage_packages|bool
+- name: "Install debug packages (optional)"
+ yum:
+ name: "{{ item }}"
+ state: latest
+ with_items: "{{ debug_packages }}"
+ when: install_debug_packages|bool
+
- name: "Update all packages (this can take a very long time)"
yum:
name: '*'