Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rootlabs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Root
rootlabs
Commits
65c672b1
Commit
65c672b1
authored
2 years ago
by
Odair M.
Browse files
Options
Downloads
Patches
Plain Diff
fix(Baremetals): fix packages list and title level inconsistent
parent
3d374753
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/index.rst
+1
-1
1 addition, 1 deletion
source/index.rst
source/pages/baremetals.rst
+18
-57
18 additions, 57 deletions
source/pages/baremetals.rst
with
19 additions
and
58 deletions
source/index.rst
+
1
−
1
View file @
65c672b1
...
...
@@ -8,7 +8,7 @@ Rootlabs
Ambiente de testes e experimentação de sysadmin.
.. toctree::
:maxdepth:
2
:maxdepth:
1
:caption: Documentação
:glob:
...
...
This diff is collapsed.
Click to expand it.
source/pages/baremetals.rst
+
18
−
57
View file @
65c672b1
...
...
@@ -2,7 +2,6 @@
Introdução
##########
Todas bare metals do *rootlab* tem suporte a multi boot e snapshot.
O layout de discos é:
...
...
@@ -38,10 +37,13 @@ O layout de discos é:
Configuração via Ansible
########################
Configuração automaticazada
###################
Configuração Manual
###################
Configuração manual, mais explicativa
***********************
...
...
@@ -282,8 +284,7 @@ Base
Os pacotes base são:
.. hlist::
:columns: 4
.. hlist:: :columns: 4
* systemd
* systemd-container
...
...
@@ -366,12 +367,8 @@ Onde:
Recover
-------
Recover seguirá os seguintes passos:
O debootstrap do recover seguirá os seguintes passos:
.. contents:: Passos
:local:
:depth: 1
Monte a partição recover
^^^^^^^^^^^^^^^^^^^^^^^^
...
...
@@ -407,49 +404,6 @@ Execute o debootstrap:
debootstrap --variant=minbase --include=${base_packages} --arch=amd64 stable ${recover_mountpoint} http://debian.c3sl.ufpr.br/debian
readonly
--------
O processo de bootstrap do readonly é o mesmo do *recover*, a diferença só vai surgir no momento da
configuração do *initramfs*. Os passos são:
.. contents:: Passos
:local:
:depth: 1
Monte a partição readonly
^^^^^^^^^^^^^^^^^^^^^^^^^^
O primeiro passo é montar e fazer link da partição:
.. code:: shell
mkdir -p ${readonly_mountpoint}
mount ${recover_part} ${recover_mountpoint}
Faça o link da partição boot com a partição recover
.. code:: shell
export boot_alt=${readonly_mountpoint}/boot_alt
mkdir -p ${boot_alt}
mount --bind ${BOOT_PARTITION} ${boot_alt}
mkdir -p ${boot_alt}/readonly
mkdir -p ${readonly_mountpoint}/boot
mount --bind ${boot_alt}/readonly ${readonly_mountpoint}/boot
Execute o debootstrap
^^^^^^^^^^^^^^^^^^^^^
Execute o debootstrap:
.. code:: shell
debootstrap --variant=minbase --include=${complement_packages} --arch=x86 ${recover_mountpoint} ${mirror}
Configure recover system
========================
...
...
@@ -462,10 +416,6 @@ Configure recover system
A configuração consiste em copiar os arquivos de configuração de cada componente importante,
configurar o grub e fazer o enable dos serviços.
.. contents:: Passos
:local:
:depth: 1
Network
-------
...
...
@@ -513,9 +463,9 @@ SSH
A configuração do ssh se dá por configurar o servidor e o cliente.
Servidor
^^^^^^^^
Edite o arquivo ``${recover_mountpoint}/etc/ssh/sshd_config`` e adicione a opção de não aceitar
conexão por senha:
...
...
@@ -537,6 +487,7 @@ Caso não esteja, ative.
Cliente
^^^^^^^
A configuração do cliente consiste em adicionar a chave de acesso no usuário root.
.. code:: shell
...
...
@@ -546,6 +497,7 @@ A configuração do cliente consiste em adicionar a chave de acesso no usuário
Sincronização de relógio
------------------------
Para sincronizar o relógio será utilizado o *systemd-timesyncd*, e a configuração consiste em
definir o servidor de *NTP*. Edite o arquivo ``${recover_mountpoint}/systemd/timesyncd.conf`` e
coloque o conteúdo:
...
...
@@ -596,6 +548,7 @@ Grub
A configuração do grub consiste em editar o arquivo ``${recover_mountpoint}/etc/default/grub`` e
defini parametros para que:
* O ``INIT`` aponte para o *systemd*.
* Configuração de porta serial esteja correta
...
...
@@ -603,26 +556,34 @@ defini parametros para que:
Configuração do boot
********************
Monte o array:
Configuração de layout de boot
==============================
A ideia é montar a partição de boot fazer os *bind* necessários para que seja feito o chain loader
corretamente. Os passos são:
Monte o array:
--------------
.. code:: shell
mkdir -p /boot_alt
mount /dev/md/boot /boot_alt
Crie o diretório chamado grub:
------------------------------
.. code:: shell
mkdir -p /boot_alt/grub
Copie o arquivo de fonte para o diretório
-----------------------------------------
.. code:: shell
cp /usr/share/grub/unicode.pf2 /boot_alt/grub/
Crie o arquivo ``/boot_alt/grub/grub.cfg`` com o conteúdo:
----------------------------------------------------------
.. code:: cfg
...
...
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