Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #19332 - Add welcome page when missing
- Loading branch information
Showing
10 changed files
with
112 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<% content_for(:title, _("Global Parameters")) %> | ||
<div class="blank-slate-pf"> | ||
<div class="blank-slate-pf-icon"> | ||
<%= icon_text("list-ul", "", :kind => "fa") %> | ||
</div> | ||
<h1><%= _('Global Parameters') %></h1> | ||
<p><%= _("Foreman allows to define a hierarchy of parameter inheritance, where global parameters accessible from any manifest.") %></p> | ||
<p><%= link_to _('Learn more about this in the documentation.'), documentation_url("global-parameters")%></p> | ||
<div class="blank-slate-pf-main-action"> | ||
<%= new_link(_("Create Global Parameter"), :class => 'btn-lg') %> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<% content_for(:title, _("Compute Profiles")) %> | ||
<div class="blank-slate-pf"> | ||
<div class="blank-slate-pf-icon"> | ||
<%= icon_text("list-alt", "", :kind => "fa") %> | ||
</div> | ||
<h1><%= _('Compute Profiles') %></h1> | ||
<p><%= _("A compute profile is a way of expressing a set of defaults for VMs created on a specific compute resource that can be mapped to an operator-defined label. This means an administrator can express, for example, what 'Small', 'Medium' or 'Large' means on all of the individual compute resources present for a given installation.") %></p> | ||
<p><%= link_to _('Learn more about this in the documentation.'), documentation_url("5.2.2UsingComputeProfiles")%></p> | ||
<div class="blank-slate-pf-main-action"> | ||
<%= new_link(_("Create Compute Profile"), :class => 'btn-lg') %> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<% content_for(:title, _("Config Groups")) %> | ||
<div class="blank-slate-pf"> | ||
<div class="blank-slate-pf-icon"> | ||
<%= icon_text("object-group", "", :kind => "fa") %> | ||
</div> | ||
<h1><%= _('Config Groups') %></h1> | ||
<p><%= _("A config group provides a one-step method of associating many Puppet classes to either a host or host group. Typically this would be used to add a particular application profile or stack in one step.") %></p> | ||
<p><%= link_to _('Learn more about this in the documentation.'), documentation_url("using-config-groups")%></p> | ||
<div class="blank-slate-pf-main-action"> | ||
<%= new_link(_("Create Config Group"), :class => 'btn-lg') %> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<% content_for(:title, _("Hardware Models")) %> | ||
<div class="blank-slate-pf"> | ||
<div class="blank-slate-pf-icon"> | ||
<%= icon_text("server", "", :kind => "fa") %> | ||
</div> | ||
<h1><%= _('Hardware Models') %></h1> | ||
<p><%= _("Hardware models describe the hardware types of your hosts, including CPU class, vendor class and other notes.") %></p> | ||
<div class="blank-slate-pf-main-action"> | ||
<%= new_link(_("Create Hardware Model"), :class => 'btn-lg') %> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<% content_for(:title, _("Provisioning Templates")) %> | ||
<div class="blank-slate-pf"> | ||
<div class="blank-slate-pf-icon"> | ||
<%= icon_text("file-text", "", :kind => "fa") %> | ||
</div> | ||
<h1><%= _('Provisioning Templates') %></h1> | ||
<p><%= _("The Provision Templates is the core of Foreman’s flexibility to used for provisioning and installation of operating systems. There are several types of template, along with a flexible matching system to deliver different templates to different hosts or host groups.") %></p> | ||
<p><%= link_to _('Learn more about this in the documentation.'), documentation_url("4.4.3ProvisioningTemplates")%></p> | ||
<div class="blank-slate-pf-main-action"> | ||
<%= new_link(_("Create Provisioning Template"), :class => 'btn-lg') %> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,12 @@ | ||
<% title _("Partition table configuration") %> | ||
<% title_actions new_link(_("Create Partition Table")) %> | ||
<div id="welcome"> | ||
<p> <%= _("A partition table entry represents either") %> </p> | ||
<ul> | ||
<li> <%= _("An explicit layout for the partitions of your hard drive(s). E.G.") %></li> | ||
<pre> | ||
zerombr | ||
clearpart --all --initlabel | ||
part /boot --fstype ext3 --size=100 --asprimary | ||
part / --fstype ext3 --size=1024 --grow | ||
part swap --recommended | ||
</pre> | ||
<li><%= _("A script to dynamically calculate the desired sizes. E.G.") %></li> | ||
<pre> | ||
#Dynamic - The below code is to manage the swap size | ||
|
||
#get the actual memory installed on the system and divide by 1024 to get it in MB | ||
usable_ram=$((`awk '$1 ~ /^MemTotal/ {printf "%d\n", $2 / 1024}' /proc/meminfo`)) | ||
|
||
#check if the memory is less than 2GB then swap is double the memory else it is maximum 24 G for really inactive stuff. | ||
if [ "$usable_ram" -le 2048 ]; then | ||
swap_size=$(($usable_ram * 2)) | ||
else | ||
swap_size=$(($usable_ram + 2048)) | ||
fi | ||
if [ $swap_size -gt 24576 ] ; then | ||
swap_size=24576 | ||
fi | ||
|
||
#copy all the HDD partitions to the temp file for execution | ||
cat << EOF > /tmp/diskpart.cfg | ||
zerombr | ||
clearpart --all --initlabel | ||
part swap --size 250 --maxsize "$swap_size" --grow | ||
part /boot --fstype ext3 --size 100 --asprimary | ||
part / --fstype ext3 --size 8192 --maxsize 12288 --grow | ||
part /tmp2 --size 250 --fstype ext3 --grow | ||
EOF | ||
</pre> | ||
</ul> | ||
<p> | ||
<%= _("The inclusion of the keyword string <b>#Dynamic</b> at the start of a line lets Foreman know that this is not an explicit disk layout and must treated as a shell script, executed prior | ||
to the install process and that the explicit partition table will be found at <b>/tmp/diskpart.cfg</b> during the build process.").html_safe %> | ||
</p> | ||
<p> | ||
<%= _("The dynamic partitioning style is currently only available for the Red Hat family of operating systems, all others must provide an explicit list of partitions and sizes.") %> | ||
</p> | ||
<p> | ||
<%= (_("You may also associate one or more operating systems with this partition table or alternatively set this up later on the %s page") % (link_to _("Operating systems"), operatingsystems_path)).html_safe %> | ||
</p> | ||
<% content_for(:title, _("Partition Tables")) %> | ||
<div class="blank-slate-pf"> | ||
<div class="blank-slate-pf-icon"> | ||
<%= icon_text("table", "", :kind => "fa") %> | ||
</div> | ||
<h1><%= _('Partition Tables') %></h1> | ||
<p><%= _("Partition templates describe the partition layout, with just a different disk layout to account for different server capabilities.") %></p> | ||
<p><%= link_to _('Learn more about this in the documentation.'), documentation_url("4.4.4PartitionTables")%></p> | ||
<div class="blank-slate-pf-main-action"> | ||
<%= new_link(_("Create Partition Table"), :class => 'btn-lg') %> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<% content_for(:title, _("Smart Class Parameters")) %> | ||
<div class="blank-slate-pf"> | ||
<div class="blank-slate-pf-icon"> | ||
<%= icon_text("info-circle", "", :kind => "fa") %> | ||
</div> | ||
<h1><%= _('Smart Class Parameters') %></h1> | ||
<p><%= _("Parameterized class support permits detecting, importing, and supplying parameters directly to classes which support it, via the ENC and depending on a set of rules (Smart Matchers).") %></p> | ||
<p><%= link_to _('Learn more about this in the documentation.'), documentation_url("4.2.5ParameterizedClasses")%></p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<% content_for(:title, _("Smart Proxies")) %> | ||
<div class="blank-slate-pf"> | ||
<div class="blank-slate-pf-icon"> | ||
<%= icon_text("sitemap", "", :kind => "fa") %> | ||
</div> | ||
<h1><%= _('Smart Proxies') %></h1> | ||
<p><%= _("Smart proy provides restful API to subsystems such as DNS, DHCP, TFTP that Foreman talks to") %></p> | ||
<p><%= link_to _('Learn more about this in the documentation.'), documentation_url("4.3SmartProxies")%></p> | ||
<div class="blank-slate-pf-main-action"> | ||
<%= new_link(_("Create Smart Proxy"), :class => 'btn-lg') %> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<% content_for(:title, _("Trends")) %> | ||
<div class="blank-slate-pf"> | ||
<div class="blank-slate-pf-icon"> | ||
<%= icon_text("area-chart", "", :kind => "fa") %> | ||
</div> | ||
<h1><%= _('Trends') %></h1> | ||
<p><%= _("Trends in Foreman allow you to track changes in your infrastructure over time. It allows you to track both Foreman related information and any Puppet facts. The Trend pages give a graph of how the number of hosts with that value have changed over time, and list the current hosts.") %></p> | ||
<p><%= link_to _('Learn more about this in the documentation.'), documentation_url("4.1.3Trends")%></p> | ||
<div class="blank-slate-pf-main-action"> | ||
<%= new_link(_("Add Trend Counter"), :class => 'btn-lg') %> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<% content_for(:title, _("Smart Variables")) %> | ||
<div class="blank-slate-pf"> | ||
<div class="blank-slate-pf-icon"> | ||
<%= icon_text("info-circle", "", :kind => "fa") %> | ||
</div> | ||
<h1><%= _('Smart Variables') %></h1> | ||
<p><%= _("Smart variables are a tool to provide parameters (key/value data), to the top-level (global) scope of your Puppet ENC, depending on a set of rules.") %></p> | ||
<p><%= link_to _('Learn more about this in the documentation.'), documentation_url("4.2.4SmartVariables")%></p> | ||
</div> |