mirror of
https://github.com/Adam-Ant/puppet-motd
synced 2024-12-20 08:04:35 +00:00
Update facts for legacy facter support
This commit is contained in:
parent
56b3923c99
commit
c1a606b8dd
@ -9,4 +9,4 @@
|
||||
# Learn more about module testing here:
|
||||
# https://docs.puppet.com/guides/tests_smoke.html
|
||||
#
|
||||
include ::motd
|
||||
include motd
|
||||
|
@ -22,7 +22,7 @@
|
||||
#
|
||||
class motd {
|
||||
$motd_hash = {
|
||||
'ascii' => generate('/bin/sh', '-c', "/usr/bin/figlet -cw 60 ${$facts['networking']['hostname']}"),
|
||||
'ascii' => generate('/bin/sh', '-c', "/usr/bin/figlet -cw 60 ${$facts['hostname']}"),
|
||||
}
|
||||
|
||||
file { '/etc/motd':
|
||||
|
@ -5,13 +5,13 @@
|
||||
------------------------------------------------------------
|
||||
<%= $ascii %>
|
||||
------------------------------------------------------------
|
||||
Welcome to <%= $facts['networking']['fqdn'] %>
|
||||
OS: <%= $facts['os']['name'] %> <%= $facts['os']['release']['full'] %>
|
||||
OS Family: <%= $facts['os']['family'] %>
|
||||
Architecture: <%= $facts['os']['architecture'] %>
|
||||
Welcome to <%= $facts['fqdn'] %>
|
||||
OS: <%= $facts['operatingsystem'] %> <%= $facts['operatingsystemrelease'] %>
|
||||
OS Family: <%= $facts['osfamily'] %>
|
||||
Architecture: <%= $facts['architecture'] %>
|
||||
Kernel Version: <%= $facts['kernelversion'] %>
|
||||
IP: <%= $facts['networking']['ip'] %>
|
||||
RAM: <%= $facts['memory']['system']['total'] %>
|
||||
IP: <%= $facts['ipaddress'] %>
|
||||
RAM: <%= $facts['memorysize'] %>
|
||||
------------------------------------------------------------
|
||||
This system is managed by Puppet version <%= $facts['puppetversion'] %>
|
||||
------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user