Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
puppetpublic
base
Commits
1ae4a2d3
Verified
Commit
1ae4a2d3
authored
7 years ago
by
Adam Lewenberg
Browse files
Options
Downloads
Patches
Plain Diff
more puppet5 changes
parent
2b53d345
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!7
Puppet5 lonlone
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
manifests/ipmi.pp
+1
-1
1 addition, 1 deletion
manifests/ipmi.pp
templates/os/motd.erb
+15
-15
15 additions, 15 deletions
templates/os/motd.erb
with
16 additions
and
16 deletions
manifests/ipmi.pp
+
1
−
1
View file @
1ae4a2d3
...
...
@@ -22,7 +22,7 @@ class base::ipmi (
)
{
# If we are virtual or on EC2, then explicitly disable IPMI
if
$
::
is_virtual
==
'true'
or
$::ec2_profile
==
'default-paravirtual'
{
if
(
$is_virtual
or
(
$::ec2_profile
==
'default-paravirtual'
))
{
$real_ensure
=
absent
}
else
{
...
...
This diff is collapsed.
Click to expand it.
templates/os/motd.erb
+
15
−
15
View file @
1ae4a2d3
<%
os
=
@lsbdistdescription
.
gsub
(
/Debian GNU\/Linux/
,
"Debian"
)
os
.
gsub
!
(
/Red Hat Enterprise Linux/i
,
'RHEL'
)
os
.
gsub
!
(
/RHEL (\w+) release (\d+) \(.* (\d+)\)/i
,
'RHEL \1 \2u\3'
)
os
.
gsub
!
(
/RHEL (\w+) release ([\d\.]+) \(.*\)/i
,
'RHEL \1 \2'
)
os
=
os
.
gsub
(
/Red Hat Enterprise Linux/i
,
'RHEL'
)
os
=
os
.
gsub
(
/RHEL (\w+) release (\d+) \(.* (\d+)\)/i
,
'RHEL \1 \2u\3'
)
os
=
os
.
gsub
(
/RHEL (\w+) release ([\d\.]+) \(.*\)/i
,
'RHEL \1 \2'
)
processor
=
@processor0
.
strip
.
gsub
(
/\s+/
,
" "
)
processor
=
processor
.
strip
.
gsub
(
/\(R\)|\(TM\)/i
,
''
)
...
...
@@ -14,12 +14,12 @@
if
product
.
nil?
product
=
"unknown"
else
product
.
strip
!
product
.
gsub
!
(
/VMware Virtual Platform/i
,
'vmware'
)
product
.
gsub
!
(
/ Server/i
,
''
)
product
.
gsub
!
(
/SUN BLADE /i
,
'SB '
)
product
.
gsub
!
(
/Precision WorkStation /i
,
''
)
product
.
gsub
!
(
/ MODULE/i
,
''
)
product
=
product
.
strip
product
=
product
.
gsub
(
/VMware Virtual Platform/i
,
'vmware'
)
product
=
product
.
gsub
(
/ Server/i
,
''
)
product
=
product
.
gsub
(
/SUN BLADE /i
,
'SB '
)
product
=
product
.
gsub
(
/Precision WorkStation /i
,
''
)
product
=
product
.
gsub
(
/ MODULE/i
,
''
)
end
sn
=
@serialnumber
rescue
nil
if
@virtual
==
'physical'
and
(
!
sn
.
nil?
)
...
...
@@ -28,17 +28,17 @@
memory
=
@memorysize
if
memory
.
match
(
/\./
)
memory
.
sub
!
(
/0+ /
,
' '
)
memory
.
sub
!
(
/\. /
,
' '
)
memory
=
memory
.
sub
(
/0+ /
,
' '
)
memory
=
memory
.
sub
(
/\. /
,
' '
)
end
memory
.
gsub
!
(
/\s+/
,
''
)
memory
=
memory
.
gsub
(
/\s+/
,
''
)
swap
=
@swapsize
if
swap
.
match
(
/\./
)
swap
.
sub
!
(
/0+ /
,
' '
)
swap
.
sub
!
(
/\. /
,
' '
)
swap
=
swap
.
sub
(
/0+ /
,
' '
)
swap
=
swap
.
sub
(
/\. /
,
' '
)
end
swap
.
gsub
!
(
/\s+/
,
''
)
swap
=
swap
.
gsub
(
/\s+/
,
''
)
-%>
<%=
host
%>
-
<%=
os
%>
,
<%=
@architecture
%>
<%=
@processorcount
%>
-core
<%=
processor
%>
(
<%=
product
%>
);
<%=
memory
%>
RAM,
<%=
swap
%>
swap
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment