Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add diagram of installer-based provisioning with full-host bootdisk #3308

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 48 additions & 0 deletions guides/image-sources/foreman.pstyle
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
' Foreman style for PlantUML diagrams
' This style was created for sequence diagrams and may be incomplete.

skinparam RoundCorner 8
skinparam Shadowing false

' #ffcc32 Foreman yellow
' #025d8c Foreman blue

skinparam sequence {
ArrowColor #025d8c
LifeLineBorderColor #ecf4f8
LifeLineBorderThickness 32
DividerBorderColor #025d8c
DividerFontColor #025d8c
group {
TitleFontColor #025d8c
BorderColor #d2e4ed
FontColor #025d8c
}
groupHeader {
BackgroundColor #d2e4ed
FontColor #025d8c
}
}

skinparam Actor {
BackgroundColor #025d8c
BorderColor #025d8c
FontColor #025d8c
}

skinparam Participant {
BackgroundColor #025d8c
BorderColor #025d8c
FontColor White
}

skinparam Note {
BackgroundColor #d2e4ed
BorderColor #025d8c
FontColor #025d8c
}

' Puppet enabled=1, disabled=0
!$puppet = 0

autonumber
4 changes: 4 additions & 0 deletions guides/image-sources/prov-first-local-boot-hdd.iuml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
!if ($networkboot)
Host -> DHCP : requests the reserved IP
!endif
Host -> Host : boots from HDD
8 changes: 8 additions & 0 deletions guides/image-sources/prov-initial-configuration.iuml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
!if ($puppet)
opt when Puppet enabled
Host -> Puppet : sends CSR
Puppet -> Host : sends certificate (if allowed to)
end
!else
note over Host : initial host configuration\n- remote execution,\n- signs Puppet client cert,\n- runs Ansible roles,\n- etc.
!endif
6 changes: 6 additions & 0 deletions guides/image-sources/prov-installation-media.iuml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
loop
Host -> Foreman : requests installation media
Foreman -> Proxy : requests installation media
Proxy -> Foreman : provides installation media
Foreman -> Host : provides installation media
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
@startuml

!include foreman.pstyle
!$networkboot = 0

title Installer-based provisioning with full-host bootdisk

actor User
participant "Provisioned\nHost" as Host
participant "Foreman" as Foreman
participant "Foreman\nProxy" as Proxy
'participant "Pulp\n(Katello)" as Pulp
'participant TFTP
'participant DHCP
participant DNS
!if ($puppet)
participant "Puppet\nserver" as Puppet
!endif

note over Host : powered off

== Create host in Foreman ==

User -> Foreman : clicks **Create Host**
User -> Foreman : assigns static IP address
User -> Foreman : submits the **Create host** form
group Templates [*PXE* installer boot]
Foreman -> Proxy : renders bootloader configuration files
end
Proxy -> Proxy : deploys bootloader configuration files
Foreman -> Proxy : commands to download installation media
note over Proxy : downloads installation media
Foreman -> Proxy : creates DNS records
Proxy -> DNS : forwards DNS records
note over Foreman : host is created\n(build mode enabled)

User -> Foreman : downloads the bootdisk ISO of the host
note over User : writes the bootdisk ISO\nto a USB/CD/DVD drive

== Boot into OS installer ==

User -> Host : configures the machine to boot\nfrom the USB/CD/DVD drive
User -> Host : powers on the machine
Host -> Host : uses IP from the bootdisk
note over Host : boots from the USB/CD/DVD drive
note over Host : loads OS installer
User -> Host : eliminates the USB/CD/DVD drive\n(too soon?)
!include prov-installation-media.iuml
note over Host : OS is installed
!include prov-initial-configuration.iuml
Host -> Foreman : calls home\n(disables build mode)
note over Host : reboots

== First local boot ==

!include prov-first-local-boot-hdd.iuml

!if ($puppet)
== First Puppet run ==

!include puppet-run.iuml
!endif

note over Host : in operation

@enduml
8 changes: 8 additions & 0 deletions guides/image-sources/puppet-run.iuml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Host -> Puppet : sends facts
Host -> Puppet : requests catalog
Puppet -> Foreman : forwards facts
Puppet -> Foreman : requests ENC
Puppet -> Host : responds with requested catalog
note over Host : runs catalog
Host -> Puppet : sends report
Puppet -> Foreman : forwards report