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 <eric.macdonald@windriver.com>
This commit is contained in:
Eric MacDonald 2019-01-14 15:22:06 -05:00
parent 03825fcda4
commit 7dd943fe46
2 changed files with 7 additions and 2 deletions

View File

@ -1,2 +1,2 @@
SRC_DIR="src"
TIS_PATCH_VER=77
TIS_PATCH_VER=78

View File

@ -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'),