Browse Source

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>
tags/final-non-containers
Eric MacDonald 5 months ago
parent
commit
7dd943fe46

+ 1
- 1
puppet-manifests/centos/build_srpm.data View File

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

+ 6
- 1
puppet-manifests/src/modules/platform/manifests/mtce.pp View File

@@ -39,7 +39,12 @@ class platform::mtce
39 39
 
40 40
   $boot_device = $::boot_disk_device_path
41 41
 
42
-  file { '/etc/rmonfiles.d/static.conf':
42
+  file {'/etc/rmonfiles.d':
43
+      ensure => directory,
44
+      mode   => '0755',
45
+  }
46
+
47
+  -> file { '/etc/rmonfiles.d/static.conf':
43 48
       ensure  => present,
44 49
       mode    => '0644',
45 50
       content => template('mtce/static_conf.erb'),

Loading…
Cancel
Save