From 7dd943fe46681ff361533b65807416fc44adf971 Mon Sep 17 00:00:00 2001 From: Eric MacDonald Date: Mon, 14 Jan 2019 15:22:06 -0500 Subject: [PATCH] Fix mtce.pp to handle missing /etc/rmonfiles.d directory https://review.openstack.org/#/c/628687/ stopped packaging the query_ntp_servers.sh script. However, since there were no other files being packaged into that directory the spec file choose not to create an empty directory. When config controller called the mtce.pp manifest to install dynamic files into /etc/rmonfiles.d it could not. So it failed. This update adds a directory check block to the mtce.pp file to create the directoy if its not present. Testing: Install AIO SX in SM1 Change-Id: Ib2dfadb261be6f9ebbaa7213eb6669b25158c779 Closes-Bug: 1811693 Signed-off-by: Eric MacDonald --- puppet-manifests/centos/build_srpm.data | 2 +- puppet-manifests/src/modules/platform/manifests/mtce.pp | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/puppet-manifests/centos/build_srpm.data b/puppet-manifests/centos/build_srpm.data index 89ee8fe6e1..c68b6304cd 100644 --- a/puppet-manifests/centos/build_srpm.data +++ b/puppet-manifests/centos/build_srpm.data @@ -1,2 +1,2 @@ SRC_DIR="src" -TIS_PATCH_VER=77 +TIS_PATCH_VER=78 diff --git a/puppet-manifests/src/modules/platform/manifests/mtce.pp b/puppet-manifests/src/modules/platform/manifests/mtce.pp index 705ac723ad..f48f30b3b8 100644 --- a/puppet-manifests/src/modules/platform/manifests/mtce.pp +++ b/puppet-manifests/src/modules/platform/manifests/mtce.pp @@ -39,7 +39,12 @@ class platform::mtce $boot_device = $::boot_disk_device_path - file { '/etc/rmonfiles.d/static.conf': + file {'/etc/rmonfiles.d': + ensure => directory, + mode => '0755', + } + + -> file { '/etc/rmonfiles.d/static.conf': ensure => present, mode => '0644', content => template('mtce/static_conf.erb'),