-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
executable file
·76 lines (34 loc) · 1.4 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
README
Ksgen - A Ruby/Sinatra program to generate Kickstart files based on the given
URL from HAML templates.
START
Start in the foreground
ruby ksgen.rb
or the background, a simple way to "daemonize" it
nohup ruby ksgen.rb &> ksgen.log &
Other methods such as init scripts or Unicorn can also be used.
USAGE
Navigate to a URL valid for your setup, they can be simple if defaults are used
http://localhost:4567/centos/5/raid0
or a little more complex when needed
http://localhost:4567/centos5/singlepart?snippet=swapfile&arch=x86_64&datacenter=office
URL STRUCTURE
OS Profile / Disk Profile ? Optional Parameters
Available Query Parameters
CPU Architecture = arch
Location = location
Snippets = snippet
OS PROFILES
An OS profile provides the layout of the generated Kickstart file and should mostly contain variables that expand
into snippet names.
DISK PROFILES
A disk profile is simply a snippet containing the disk partitioning portion of Kickstart profiles, the part typically
written to /tmp/partinfo.
The disk profile must be specified in the OS profile as shown here to function
as a variable with a value from the URL
<%= erb :"#{@disk_profile}" %>
TEMPLATES
Templates define the layout of smaller snippets of ERB.
SNIPPETS
Snippets are written in ERB, so for simple snippets that do not require
interpolation of Ruby code it is simply plain text.