File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ @startuml
2+
3+ !include foreman . pstyle
4+
5+ title Image-based provisioning with Finish script configuration
6+
7+ actor User
8+ participant "Provisioned\ninstance" as Host
9+ participant "Foreman" as Foreman
10+ participant "Foreman\nProxy" as Proxy
11+ participant "Infrastructure\ncloud" as Cloud
12+ participant DNS
13+ !if ($puppet )
14+ participant "Puppet\nserver" as Puppet
15+ !endif
16+
17+ note over Foreman : Has an image\nwith SSH credentials\ndefined in compute resource
18+ note over Host : Powered off
19+
20+ == Create host in Foreman ==
21+
22+ User -> Foreman : Create host\nwith a cloud resource and the image
23+ Foreman -> Cloud : Create a new instance
24+ Cloud -> Foreman : Report the IP address
25+ Foreman -> Proxy : Create DNS records
26+ Proxy -> DNS : Forward DNS records
27+ Foreman -> Cloud : Start the instance
28+ Cloud -> Host : Boot
29+ group Template [Finish ]
30+ Foreman -> Foreman : Render the Finish script
31+ end
32+ Foreman -> Host : Execute the Finish script over SSH
33+
34+ == Finish script ==
35+
36+ !include prov - initial - configuration . iuml
37+ Host -> Foreman : Call home\n(disables build mode)
38+
39+ !if ($puppet )
40+ == First Puppet run ==
41+
42+ !include puppet - run . iuml
43+ !endif
44+
45+ note over Host : In operation
46+
47+ @enduml
You can’t perform that action at this time.
0 commit comments