From 5f6ba4f658347e0f3582d973bed24e81808aa145 Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Tue, 12 Jun 2018 15:53:49 -0400 Subject: [PATCH] Docker integration on storage nodes Allocate 10G LV for docker in the cgts_vg volume group if the --kubernetes option is used with config_controller. Story: 2002839 Task: 22778 Change-Id: Iabd08fc6da3a0fafd3005c2a49625ba477228ec5 Signed-off-by: Jack Ding --- puppet-manifests/src/manifests/storage.pp | 2 ++ .../src/modules/platform/manifests/filesystem.pp | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/puppet-manifests/src/manifests/storage.pp b/puppet-manifests/src/manifests/storage.pp index cb9756aded..b10452b3b7 100644 --- a/puppet-manifests/src/manifests/storage.pp +++ b/puppet-manifests/src/manifests/storage.pp @@ -25,6 +25,8 @@ include ::platform::mtce include ::platform::sysinv include ::platform::grub include ::platform::collectd +include ::platform::filesystem::storage +include ::platform::docker include ::platform::ceph include ::platform::ceph::monitor diff --git a/puppet-manifests/src/modules/platform/manifests/filesystem.pp b/puppet-manifests/src/modules/platform/manifests/filesystem.pp index afad78410a..4f24bfd6ac 100644 --- a/puppet-manifests/src/modules/platform/manifests/filesystem.pp +++ b/puppet-manifests/src/modules/platform/manifests/filesystem.pp @@ -189,6 +189,22 @@ class platform::filesystem::img_conversions } +class platform::filesystem::storage { + + include ::platform::kubernetes::params + + if $::platform::kubernetes::params::enabled { + class {'platform::filesystem::docker::params' : + lv_size => 10 + } -> + class {'platform::filesystem::docker' : + } + + Class['::platform::lvm::vg::cgts_vg'] -> Class['::platform::filesystem::docker'] + } +} + + class platform::filesystem::compute { include ::platform::kubernetes::params