Merge pull request 'feat: add country/region/environment to motd' (#134) from neoloc/motd_facts into develop

Reviewed-on: unkinben/puppet-prod#134
This commit is contained in:
2024-03-10 14:19:09 +09:30
2 changed files with 5 additions and 1 deletions
+2
View File
@@ -7,6 +7,8 @@ class profiles::base::motd (
String $nic = $facts['networking']['primary'],
String $os_name = $facts['os']['name'],
String $os_release = $facts['os']['release']['full'],
String $location = "${facts['country']}-${facts['region']}",
String $env = $facts['environment'],
) {
# Use the regsubst function to remove the 'roles::' prefix from the role name