machinery-tool 1.21.0 → 1.22.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.git_revision +1 -1
- data/NEWS +8 -0
- data/html/index.html.haml +8 -7
- data/html/partials/changed_config_files.html.haml +1 -1
- data/html/partials/changed_managed_files.html.haml +1 -1
- data/html/partials/unmanaged_files.html.haml +2 -2
- data/lib/cli.rb +26 -4
- data/lib/diff_widget.rb +73 -0
- data/lib/dpkg_database.rb +16 -1
- data/lib/haml_helpers.rb +60 -0
- data/lib/kiwi_config.rb +7 -0
- data/lib/machinery.rb +3 -0
- data/lib/man_task.rb +3 -2
- data/lib/move_task.rb +1 -0
- data/lib/remote_system.rb +4 -0
- data/lib/server.rb +2 -105
- data/lib/static_html.rb +75 -0
- data/lib/system.rb +2 -1
- data/lib/system_description.rb +10 -0
- data/lib/version.rb +1 -1
- data/machinery-helper/version.go +1 -1
- data/man/generated/machinery.1.gz +0 -0
- data/manual/docs/README.md +8 -16
- data/manual/docs/docs.md +42 -4
- data/manual/docs/index.html +6 -2
- data/manual/docs/machinery-analyze.1.md +6 -10
- data/manual/docs/machinery-build.1.md +7 -11
- data/manual/docs/machinery-compare.1.md +5 -10
- data/manual/docs/machinery-config.1.md +4 -7
- data/manual/docs/machinery-copy.1.md +5 -10
- data/manual/docs/machinery-deploy.1.md +8 -12
- data/manual/docs/machinery-export-autoyast.1.md +10 -17
- data/manual/docs/machinery-export-html.1.md +32 -0
- data/manual/docs/machinery-export-kiwi.1.md +7 -12
- data/manual/docs/{machinery-inspect-docker.1.md → machinery-inspect-container.1.md} +10 -15
- data/manual/docs/machinery-inspect.1.md +10 -15
- data/manual/docs/machinery-list.1.md +4 -8
- data/manual/docs/machinery-man.1.md +4 -6
- data/manual/docs/machinery-move.1.md +4 -8
- data/manual/docs/machinery-remove.1.md +5 -10
- data/manual/docs/machinery-serve.1.md +5 -9
- data/manual/docs/machinery-show.1.md +7 -11
- data/manual/docs/machinery-upgrade-format.1.md +5 -9
- data/manual/docs/machinery-validate.1.md +4 -8
- data/manual/docs/machinery_main_general.1.md +33 -51
- data/manual/docs/machinery_main_scopes.1.md +13 -14
- data/manual/docs/{machinery_security_implications.1.md → machinery_main_security_implications.1.md} +15 -15
- data/manual/docs/machinery_main_usecases.1.md +2 -30
- data/manual/mkdocs.yml +9 -9
- data/manual/site/docs/index.html +71 -25
- data/manual/site/index.html +6 -2
- data/manual/site/machinery-analyze.1/index.html +34 -27
- data/manual/site/machinery-build.1/index.html +35 -28
- data/manual/site/machinery-compare.1/index.html +33 -26
- data/manual/site/machinery-config.1/index.html +32 -25
- data/manual/site/machinery-copy.1/index.html +33 -27
- data/manual/site/machinery-deploy.1/index.html +36 -29
- data/manual/site/machinery-export-autoyast.1/index.html +38 -32
- data/manual/site/machinery-export-html.1/index.html +175 -0
- data/manual/site/machinery-export-kiwi.1/index.html +35 -28
- data/manual/site/machinery-inspect-container.1/index.html +249 -0
- data/manual/site/machinery-inspect.1/index.html +38 -31
- data/manual/site/machinery-list.1/index.html +32 -25
- data/manual/site/machinery-man.1/index.html +32 -26
- data/manual/site/machinery-move.1/index.html +32 -25
- data/manual/site/machinery-remove.1/index.html +33 -26
- data/manual/site/machinery-serve.1/index.html +33 -26
- data/manual/site/machinery-show.1/index.html +35 -28
- data/manual/site/machinery-upgrade-format.1/index.html +33 -26
- data/manual/site/machinery-validate.1/index.html +32 -25
- data/manual/site/machinery_main_general.1/index.html +63 -70
- data/manual/site/machinery_main_scopes.1/index.html +41 -36
- data/manual/site/machinery_main_security_implications.1/index.html +228 -0
- data/manual/site/machinery_main_usecases.1/index.html +30 -48
- data/manual/site/mkdocs/search_index.json +246 -201
- data/manual/site/sitemap.xml +40 -30
- data/plugins/os/os_inspector.rb +1 -1
- data/plugins/packages/packages.yml +1 -1
- data/plugins/patterns/patterns.yml +2 -5
- data/plugins/repositories/repositories.yml +2 -2
- data/plugins/unmanaged_files/unmanaged_files.yml +3 -3
- data/plugins/unmanaged_files/unmanaged_files_renderer.rb +1 -1
- metadata +11 -5
- data/manual/docs/subcommand-template.1.md +0 -46
data/manual/docs/{machinery_security_implications.1.md → machinery_main_security_implications.1.md}
RENAMED
@@ -1,19 +1,20 @@
|
|
1
|
-
#
|
1
|
+
# Security Implications
|
2
|
+
|
2
3
|
This document describes security related issues administrators need to be aware of when using
|
3
4
|
Machinery.
|
4
5
|
|
5
6
|
## Inspection
|
6
|
-
Machinery inspects several parts of a system which are covered by Machinery's scopes. A list
|
7
|
-
of the available scopes and information about what they do can be found
|
8
|
-
[here](machinery_main_scopes.1/index.html).
|
9
7
|
|
10
|
-
|
8
|
+
Machinery inspects several parts of a system which are covered by Machinery's scopes.
|
9
|
+
Information about scopes is listed [here](machinery_main_scopes.1/).
|
10
|
+
|
11
|
+
Users of Machinery who inspect systems need to be aware of the security implications
|
11
12
|
to take the right decisions on how to protect the retrieved data.
|
12
13
|
|
13
14
|
## Retrieval of Data
|
14
|
-
Machinery transfers data from one end point to another via SSH (using public key authentication).
|
15
|
+
Machinery transfers data from one end point to another via SSH (Secure Shell, using public key authentication).
|
15
16
|
|
16
|
-
Depending on the scope, Machinery [collects information](machinery_main_scopes.1/
|
17
|
+
Depending on the scope, Machinery [collects information](machinery_main_scopes.1/)
|
17
18
|
about files on the system. Additionally, when the `--extract-files` option is given for the
|
18
19
|
`inspect` command, not only the meta data about the files (e.g. permission bits, owner, group etc
|
19
20
|
.) but also the file content is extracted. Machinery does not distinguish between sensitive
|
@@ -23,7 +24,7 @@ description has automatically access to **all** extracted files and contained se
|
|
23
24
|
#### root/sudo Privileges
|
24
25
|
An inspection can only be done, when the user on the inspected system is either root or has
|
25
26
|
sudo privileges. Information about the required sudo configuration can be found
|
26
|
-
[here](machinery-inspect.1
|
27
|
+
[here](machinery-inspect.1/#prerequisites).
|
27
28
|
|
28
29
|
## Storage of Data
|
29
30
|
#### Access Restrictions
|
@@ -70,17 +71,16 @@ is specified, the default port which is configured in the machinery config file
|
|
70
71
|
|
71
72
|
## Export of Data
|
72
73
|
#### export-autoyast
|
73
|
-
The `export-autoyast` command creates an AutoYaST profile for an automated installation.
|
74
|
-
|
74
|
+
The `export-autoyast` command creates an AutoYaST profile for an automated installation. This will result
|
75
|
+
in tar balls containing the extracted files from the system description. These files
|
75
76
|
potentially contain sensitive data (e.g. passwords). This fact needs to be kept in mind, especially
|
76
77
|
if these files are copied to a web server for an AutoYaST installation via HTTP.
|
77
78
|
|
78
79
|
#### export-kiwi
|
79
|
-
The program
|
80
|
-
you the opportunity to
|
81
|
-
|
82
|
-
|
83
|
-
files potentially contain sensitive data (e.g. passwords).
|
80
|
+
The program **kiwi** allows you to build OS images for deployment. Machinery gives
|
81
|
+
you the opportunity to export a KIWI description. This description can be used to build an image via Kiwi.
|
82
|
+
The `export-kiwi` command creates a directory, where it stores the Kiwi configuration and the files
|
83
|
+
of a system description. These files potentially contain sensitive data (e.g. passwords).
|
84
84
|
|
85
85
|
#### build
|
86
86
|
The created image potentially contains sensitive data (e.g. passwords) from extracted files.
|
@@ -1,21 +1,4 @@
|
|
1
|
-
|
2
|
-
## System Description
|
3
|
-
|
4
|
-
The System Description format and file structure is documented in the machinery
|
5
|
-
wiki: [https://github.com/SUSE/machinery/wiki/System-Description-Format](https://github.com/SUSE/machinery/wiki/System-Description-Format)
|
6
|
-
|
7
|
-
Machinery validates descriptions on load. It checks that the JSON structure of
|
8
|
-
the manifest file, which contains the primary and meta data of a description, is
|
9
|
-
correct and it adheres to the schema. Validation errors are reported as warnings.
|
10
|
-
It also checks that the information about extracted files is consistent. Missing
|
11
|
-
files or extra files without reference in the manifest are treated also as
|
12
|
-
warnings. All other issues are errors which need to be fixed so that Machinery
|
13
|
-
can use the description
|
14
|
-
|
15
|
-
To manually validate a description use the `machinery validate` command.
|
16
|
-
|
17
|
-
|
18
|
-
## Use Cases
|
1
|
+
# Use Cases
|
19
2
|
|
20
3
|
Some of the important use cases of Machinery are:
|
21
4
|
|
@@ -35,15 +18,4 @@ Some of the important use cases of Machinery are:
|
|
35
18
|
An inspected system can be cloned. The inspection step returns a system
|
36
19
|
description which is used as the basis for cloning physical or virtual
|
37
20
|
instances. Machinery can build a system image from the description, which
|
38
|
-
can then for example be deployed to a cloud.
|
39
|
-
|
40
|
-
|
41
|
-
# OPTIONS FOR ALL SUBCOMMANDS
|
42
|
-
<!--- These are 'global' options of machinery -->
|
43
|
-
|
44
|
-
* `--version`:
|
45
|
-
Displays version of `machinery` tool. Exit when done.
|
46
|
-
|
47
|
-
* `--debug`:
|
48
|
-
Enable debug mode. Machinery writes additional information into the log
|
49
|
-
file which can be useful to track down problems.
|
21
|
+
can then for example be deployed to a cloud environment.
|
data/manual/mkdocs.yml
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
site_name: Machinery Documentation
|
2
2
|
pages:
|
3
3
|
- Welcome: docs.md
|
4
|
-
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
- "Security Implications": machinery_security_implications.1.md
|
4
|
+
- "General Overview": machinery_main_general.1.md
|
5
|
+
- Scopes: machinery_main_scopes.1.md
|
6
|
+
- "Use cases": machinery_main_usecases.1.md
|
7
|
+
- "Security Implications": machinery_main_security_implications.1.md
|
9
8
|
- Commands:
|
10
9
|
- Analyze: machinery-analyze.1.md
|
11
10
|
- Build: machinery-build.1.md
|
@@ -13,17 +12,18 @@ pages:
|
|
13
12
|
- Config: machinery-config.1.md
|
14
13
|
- Copy: machinery-copy.1.md
|
15
14
|
- Deploy: machinery-deploy.1.md
|
16
|
-
- Export AutoYaST: machinery-export-autoyast.1.md
|
17
|
-
- Export Kiwi: machinery-export-kiwi.1.md
|
15
|
+
- "Export AutoYaST": machinery-export-autoyast.1.md
|
16
|
+
- "Export Kiwi": machinery-export-kiwi.1.md
|
17
|
+
- "Export HTML": machinery-export-html.1.md
|
18
18
|
- Inspect: machinery-inspect.1.md
|
19
|
-
- Inspect
|
19
|
+
- "Inspect Container": machinery-inspect-container.1.md
|
20
20
|
- List: machinery-list.1.md
|
21
21
|
- Man: machinery-man.1.md
|
22
22
|
- Move: machinery-move.1.md
|
23
23
|
- Remove: machinery-remove.1.md
|
24
24
|
- Serve: machinery-serve.1.md
|
25
25
|
- Show: machinery-show.1.md
|
26
|
-
- Upgrade Format: machinery-upgrade-format.1.md
|
26
|
+
- "Upgrade Format": machinery-upgrade-format.1.md
|
27
27
|
- Validate: machinery-validate.1.md
|
28
28
|
theme_dir: 'custom_theme'
|
29
29
|
extra_templates:
|
data/manual/site/docs/index.html
CHANGED
@@ -23,26 +23,29 @@
|
|
23
23
|
|
24
24
|
|
25
25
|
|
26
|
-
<li>
|
27
|
-
<
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
26
|
+
<li class="">
|
27
|
+
<a href="../machinery_main_general.1/">General Overview</a>
|
28
|
+
</li>
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
<li class="">
|
34
|
+
<a href="../machinery_main_scopes.1/">Scopes</a>
|
35
|
+
</li>
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
<li class="">
|
41
|
+
<a href="../machinery_main_usecases.1/">Use cases</a>
|
42
|
+
</li>
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
<li class="">
|
48
|
+
<a href="../machinery_main_security_implications.1/">Security Implications</a>
|
46
49
|
</li>
|
47
50
|
|
48
51
|
|
@@ -83,12 +86,16 @@
|
|
83
86
|
<a href="../machinery-export-kiwi.1/">Export Kiwi</a>
|
84
87
|
</li>
|
85
88
|
|
89
|
+
<li class="">
|
90
|
+
<a href="../machinery-export-html.1/">Export HTML</a>
|
91
|
+
</li>
|
92
|
+
|
86
93
|
<li class="">
|
87
94
|
<a href="../machinery-inspect.1/">Inspect</a>
|
88
95
|
</li>
|
89
96
|
|
90
97
|
<li class="">
|
91
|
-
<a href="../machinery-inspect-
|
98
|
+
<a href="../machinery-inspect-container.1/">Inspect Container</a>
|
92
99
|
</li>
|
93
100
|
|
94
101
|
<li class="">
|
@@ -132,12 +139,51 @@
|
|
132
139
|
</div>
|
133
140
|
<div class="content">
|
134
141
|
<h1 id="machinery-documentation">Machinery Documentation</h1>
|
135
|
-
<p>
|
142
|
+
<p>Welcome! The Machinary documentation is a reference aimed at system administrators.
|
143
|
+
It will give you an overview of Machinery itself, its subcommands, and usage examples.</p>
|
144
|
+
<h1 id="what-is-machinery">What is Machinery?</h1>
|
145
|
+
<p>Machinery is a systems management toolkit for Linux. It supports configuration
|
146
|
+
discovery, system validation, and service migration. Machinery is based on the
|
147
|
+
idea of a universal system description. Machinery has a set of commands which
|
148
|
+
work with this system description. These commands can be combined to form work
|
149
|
+
flows. Machinery is targeted at the system administrator of the data center.</p>
|
150
|
+
<h1 id="work-flow-examples">Work Flow Examples</h1>
|
151
|
+
<h2 id="inspect-a-system-and-show-results">Inspect a System and Show Results</h2>
|
152
|
+
<ul>
|
153
|
+
<li><code>machinery inspect --extract-files --name=NAME HOSTNAME</code></li>
|
154
|
+
<li><code>machinery show NAME</code></li>
|
155
|
+
</ul>
|
156
|
+
<h2 id="export-system-description-as-html">Export System Description as HTML</h2>
|
157
|
+
<ul>
|
158
|
+
<li><code>machinery export-html --html-dir=tmp NAME</code></li>
|
159
|
+
</ul>
|
160
|
+
<h2 id="inspect-two-systems-and-compare-them">Inspect Two Systems and Compare Them</h2>
|
161
|
+
<ul>
|
162
|
+
<li><code>machinery inspect HOSTNAME1</code></li>
|
163
|
+
<li><code>machinery inspect HOSTNAME2</code></li>
|
164
|
+
<li><code>machinery compare HOSTNAME1 HOSTNAME2</code></li>
|
165
|
+
</ul>
|
166
|
+
<h2 id="fully-inspect-a-system-and-export-a-kiwi-description">Fully Inspect a System and Export a Kiwi Description</h2>
|
167
|
+
<ul>
|
168
|
+
<li><code>machinery inspect --extract-files HOSTNAME</code></li>
|
169
|
+
<li><code>machinery export-kiwi --kiwi-dir=~/kiwi HOSTNAME</code></li>
|
170
|
+
</ul>
|
171
|
+
<h2 id="fully-inspect-a-system-and-export-an-autoyast-profile">Fully Inspect a System and Export an AutoYaST Profile</h2>
|
172
|
+
<ul>
|
173
|
+
<li><code>machinery inspect --extract-files HOSTNAME</code></li>
|
174
|
+
<li><code>machinery export-autoyast --autoyast-dir=~/autoyast HOSTNAME</code></li>
|
175
|
+
</ul>
|
176
|
+
<h2 id="fully-inspect-a-system-and-deploy-a-replicate-to-the-cloud">Fully Inspect a System and Deploy a Replicate to the Cloud</h2>
|
177
|
+
<ul>
|
178
|
+
<li><code>machinery inspect --extract-files HOSTNAME</code></li>
|
179
|
+
<li><code>machinery deploy --cloud-config=~/openrc.sh HOSTNAME</code></li>
|
180
|
+
</ul>
|
181
|
+
<h2 id="how-to-upgrade-a-sles-11-sp3-system-to-sles-12">How to upgrade a SLES 11 SP3 system to SLES 12</h2>
|
136
182
|
<ul>
|
137
|
-
<li
|
138
|
-
<
|
139
|
-
<li><a href="../machinery_main_usecases.1/">Use cases</a></li>
|
183
|
+
<li>Machinery can help you to upgrade without affecting the original system.
|
184
|
+
For more details please read the Wiki Page: <a href="https://github.com/SUSE/machinery/wiki/How-to-upgrade-a-SLES-11-SP3-system-to-SLES-12">How to upgrade a SLES 11 SP3 system to SLES 12</a>.</li>
|
140
185
|
</ul>
|
186
|
+
<p>For a more detailed overview see <a href="../machinery_main_general.1/">General Overview</a>.</p>
|
141
187
|
</div>
|
142
188
|
</div>
|
143
189
|
</body>
|
data/manual/site/index.html
CHANGED
@@ -72,7 +72,7 @@
|
|
72
72
|
</div>
|
73
73
|
</div>
|
74
74
|
|
75
|
-
|
75
|
+
<div>
|
76
76
|
<div class="git">
|
77
77
|
<a class="btn btn-default" href="docs/">Documentation</a>
|
78
78
|
</div>
|
@@ -84,7 +84,11 @@
|
|
84
84
|
</div>
|
85
85
|
</div>
|
86
86
|
|
87
|
-
|
87
|
+
<div>
|
88
|
+
<div class="git">
|
89
|
+
<a class="btn btn-default" href="https://machinery-project.blogspot.de/">Machinery Blog</a>
|
90
|
+
</div>
|
91
|
+
</div>
|
88
92
|
</div>
|
89
93
|
|
90
94
|
<div>
|
@@ -23,26 +23,29 @@
|
|
23
23
|
|
24
24
|
|
25
25
|
|
26
|
-
<li>
|
27
|
-
<
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
26
|
+
<li class="">
|
27
|
+
<a href="../machinery_main_general.1/">General Overview</a>
|
28
|
+
</li>
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
<li class="">
|
34
|
+
<a href="../machinery_main_scopes.1/">Scopes</a>
|
35
|
+
</li>
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
<li class="">
|
41
|
+
<a href="../machinery_main_usecases.1/">Use cases</a>
|
42
|
+
</li>
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
<li class="">
|
48
|
+
<a href="../machinery_main_security_implications.1/">Security Implications</a>
|
46
49
|
</li>
|
47
50
|
|
48
51
|
|
@@ -83,12 +86,16 @@
|
|
83
86
|
<a href="../machinery-export-kiwi.1/">Export Kiwi</a>
|
84
87
|
</li>
|
85
88
|
|
89
|
+
<li class="">
|
90
|
+
<a href="../machinery-export-html.1/">Export HTML</a>
|
91
|
+
</li>
|
92
|
+
|
86
93
|
<li class="">
|
87
94
|
<a href="../machinery-inspect.1/">Inspect</a>
|
88
95
|
</li>
|
89
96
|
|
90
97
|
<li class="">
|
91
|
-
<a href="../machinery-inspect-
|
98
|
+
<a href="../machinery-inspect-container.1/">Inspect Container</a>
|
92
99
|
</li>
|
93
100
|
|
94
101
|
<li class="">
|
@@ -132,29 +139,29 @@
|
|
132
139
|
</div>
|
133
140
|
<div class="content">
|
134
141
|
<h1 id="analyze-analyze-system-description">analyze — Analyze System Description</h1>
|
135
|
-
<h2 id="synopsis">
|
142
|
+
<h2 id="synopsis">Synopsis</h2>
|
136
143
|
<p><code>machinery analyze</code> NAME -o | --operation=OPERATION</p>
|
137
144
|
<p><code>machinery</code> help analyze</p>
|
138
|
-
<h2 id="description">
|
145
|
+
<h2 id="description">Description</h2>
|
139
146
|
<p>The <code>analyze</code> subcommand analyzes an existing system description and enriches
|
140
147
|
it with additional information. Supported operations are:</p>
|
141
148
|
<ul>
|
142
149
|
<li><code>changed-config-files-diffs</code>:
|
143
150
|
Generates the diffs between the extracted changed configuration files from the
|
144
|
-
system and the original versions from the
|
151
|
+
system and the original versions from the packages.
|
145
152
|
The diffs can be shown using <code>machinery show --show-diffs</code></li>
|
146
153
|
</ul>
|
147
|
-
<h2 id="arguments">
|
154
|
+
<h2 id="arguments">Arguments</h2>
|
148
155
|
<ul>
|
149
156
|
<li><code>NAME</code> (required):
|
150
157
|
Name of the system description.</li>
|
151
158
|
</ul>
|
152
|
-
<h2 id="options">
|
159
|
+
<h2 id="options">Options</h2>
|
153
160
|
<ul>
|
154
161
|
<li><code>-o OPERATION</code>, <code>--operation=OPERATION</code> (required):
|
155
162
|
The analyze operation to perform.</li>
|
156
163
|
</ul>
|
157
|
-
<h2 id="examples">
|
164
|
+
<h2 id="examples">Examples</h2>
|
158
165
|
<ul>
|
159
166
|
<li>
|
160
167
|
<p>Analyze the config file diffs for the <code>myhost</code> system description:</p>
|
@@ -23,26 +23,29 @@
|
|
23
23
|
|
24
24
|
|
25
25
|
|
26
|
-
<li>
|
27
|
-
<
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
26
|
+
<li class="">
|
27
|
+
<a href="../machinery_main_general.1/">General Overview</a>
|
28
|
+
</li>
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
<li class="">
|
34
|
+
<a href="../machinery_main_scopes.1/">Scopes</a>
|
35
|
+
</li>
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
<li class="">
|
41
|
+
<a href="../machinery_main_usecases.1/">Use cases</a>
|
42
|
+
</li>
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
<li class="">
|
48
|
+
<a href="../machinery_main_security_implications.1/">Security Implications</a>
|
46
49
|
</li>
|
47
50
|
|
48
51
|
|
@@ -83,12 +86,16 @@
|
|
83
86
|
<a href="../machinery-export-kiwi.1/">Export Kiwi</a>
|
84
87
|
</li>
|
85
88
|
|
89
|
+
<li class="">
|
90
|
+
<a href="../machinery-export-html.1/">Export HTML</a>
|
91
|
+
</li>
|
92
|
+
|
86
93
|
<li class="">
|
87
94
|
<a href="../machinery-inspect.1/">Inspect</a>
|
88
95
|
</li>
|
89
96
|
|
90
97
|
<li class="">
|
91
|
-
<a href="../machinery-inspect-
|
98
|
+
<a href="../machinery-inspect-container.1/">Inspect Container</a>
|
92
99
|
</li>
|
93
100
|
|
94
101
|
<li class="">
|
@@ -132,26 +139,26 @@
|
|
132
139
|
</div>
|
133
140
|
<div class="content">
|
134
141
|
<h1 id="build-build-image-from-system-description">build — Build Image from System Description</h1>
|
135
|
-
<h2 id="synopsis">
|
142
|
+
<h2 id="synopsis">Synopsis</h2>
|
136
143
|
<p><code>machinery build</code> NAME -i IMAGE-DIR | --image-dir=IMAGE-DIR</p>
|
137
144
|
<p><code>machinery</code> help build</p>
|
138
|
-
<h2 id="description">
|
145
|
+
<h2 id="description">Description</h2>
|
139
146
|
<p>The <code>build</code> command builds an image from a system description. The image is a
|
140
147
|
system image in the qcow2 format, which can be used with the KVM hypervisor.
|
141
148
|
It can be run locally or deployed to a cloud environment.</p>
|
142
149
|
<p><code>machinery</code> uses the image building command line tool
|
143
|
-
<a href="http://
|
150
|
+
<a href="http://opensuse.github.io/kiwi/">KIWI</a> to perform the actual build. KIWI
|
144
151
|
data is stored to a temporary directory and cleaned up after the build. The KIWI
|
145
152
|
log is shown as output of the <code>build</code> command format for showing progress and
|
146
153
|
diagnosing errors.</p>
|
147
154
|
<p>When building an image, Machinery filters out some files which would break the
|
148
155
|
built image. The list of filters is shown at the beginning of the build.</p>
|
149
|
-
<h2 id="arguments">
|
156
|
+
<h2 id="arguments">Arguments</h2>
|
150
157
|
<ul>
|
151
158
|
<li><code>NAME</code> (required):
|
152
159
|
Use specified system description.</li>
|
153
160
|
</ul>
|
154
|
-
<h2 id="options">
|
161
|
+
<h2 id="options">Options</h2>
|
155
162
|
<ul>
|
156
163
|
<li>
|
157
164
|
<p><code>-i IMAGE-DIR</code>, <code>--image-dir=IMAGE-DIR</code> (required):
|
@@ -166,7 +173,7 @@ built image. The list of filters is shown at the beginning of the build.</p>
|
|
166
173
|
Enable SSH service in built image</p>
|
167
174
|
</li>
|
168
175
|
</ul>
|
169
|
-
<h2 id="prerequisites">
|
176
|
+
<h2 id="prerequisites">Prerequisites</h2>
|
170
177
|
<ul>
|
171
178
|
<li>
|
172
179
|
<p>The <code>build</code> command requires the packages <code>kiwi</code> and <code>kiwi-desc-vmxboot</code>.</p>
|
@@ -184,7 +191,7 @@ built image. The list of filters is shown at the beginning of the build.</p>
|
|
184
191
|
<p>Machinery can only build x86_64 images on x86_64 systems at the moment.</p>
|
185
192
|
</li>
|
186
193
|
</ul>
|
187
|
-
<h2 id="examples">
|
194
|
+
<h2 id="examples">Examples</h2>
|
188
195
|
<ul>
|
189
196
|
<li>
|
190
197
|
<p>To build an image from the system description named "tux" and to save the
|