Merge "Fix MOTD not include system ID on controller-1"

This commit is contained in:
Zuul 2023-10-23 15:57:59 +00:00 committed by Gerrit Code Review
commit 42d1114648
2 changed files with 22 additions and 0 deletions
puppet-manifests/src/modules/platform
manifests
templates

@ -15,6 +15,7 @@ class platform::config
include ::platform::params
include ::platform::anchors
include ::platform::config::pam_systemd
include ::platform::config::system_name
stage { 'pre':
before => Stage['main'],
@ -257,6 +258,18 @@ class platform::config::hostname {
}
}
class platform::config::system_name {
$system_name = $platform::params::system_name
file { '/etc/sysinv/motd.system':
ensure => present,
owner => 'root',
group => 'root',
mode => '0644',
content => template('platform/system_name.erb'),
}
}
class platform::config::apparmor {
include ::platform::params

@ -0,0 +1,9 @@
<%
if !@system_name.nil? && !@system_name.empty?
-%>
<%= "====================================================================" %>
<%= " SYSTEM: #{@system_name}" %>
<%= "====================================================================" %>
<% end -%>