Skip to content

Commit 003269e

Browse files
committed
OSDOCS-4872: change variant rhcos to openshift
1 parent 20604e5 commit 003269e

File tree

1 file changed

+20
-58
lines changed

1 file changed

+20
-58
lines changed

modules/creating-custom-live-rhcos-iso.adoc

Lines changed: 20 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -18,71 +18,47 @@ You can create a live {op-system} ISO with SSHd enabled and with predefined cred
1818

1919
. Download the `coreos-installer` binary from the `coreos-installer` image link:https://mirror.openshift.com/pub/openshift-v4/clients/coreos-installer/latest/[mirror] page.
2020

21-
. Download the latest live {op-system} ISO from link:https://mirror.openshift.com/pub/openshift-v4/x86_64/dependencies/rhcos/latest/rhcos-live.x86_64.iso[mirror.openshift.com].
21+
. Download the latest live {op-system} ISO from link:https://mirror.openshift.com/pub/openshift-v4/x86_64/dependencies/rhcos/4.12/latest/[mirror.openshift.com].
2222

2323
. Create the `embedded.yaml` file that the `butane` utility uses to create the Ignition file:
2424
+
25-
[source,yaml]
25+
[source,yaml,subs="attributes+"]
2626
----
27-
variant: rhcos
28-
version: 0.1.0
27+
variant: openshift
28+
version: {product-version}.0
29+
metadata:
30+
name: sshd
31+
labels:
32+
machineconfiguration.openshift.io/role: worker
2933
passwd:
3034
users:
31-
- name: root
35+
- name: core <1>
3236
ssh_authorized_keys:
3337
- '<ssh_key>'
34-
password_hash: '$2b$05$aAd9TkvWnvUmeDQEA9vkiOoCqCZgd6cWn0xXwe.ii/TqeCxUC0Z0G' <1>
35-
storage:
36-
files:
37-
- path: /etc/ssh/sshd_config
38-
contents:
39-
local: ./live-sshd_config
40-
mode: 0600
41-
overwrite: true
4238
----
43-
<1> `yescrypt` passwords are not supported in {op-system}. Use `bcrypt` instead when you create the `password_hash`.
39+
<1> The `core` user has sudo privileges.
4440

45-
. Create the `files-dir/` folder and copy the default `sshd_config` file into the folder.
46-
47-
. Update the following fields in the `files-dir/sshd_config` file:
48-
+
49-
[source,bash]
50-
----
51-
[...]
52-
PermitRootLogin yes <1>
53-
[...]
54-
PasswordAuthentication yes <2>
55-
----
56-
<1> Allows access to the server as a root user.
57-
<2> Allows access to the server by using a password.
58-
59-
+
60-
[IMPORTANT]
61-
====
62-
The modified `sshd_config` file overrides the default `sshd_config` file.
63-
====
64-
65-
. Pass the YAML file and the folder to the `butane` utility:
41+
. Run the `butane` utility to create the Ignition file using the following command:
6642
+
6743
[source,terminal]
6844
----
69-
$ butane -p embedded.yaml -d files-dir/ > embedded.ign
45+
$ butane -pr embedded.yaml -o embedded.ign
7046
----
7147

72-
. Once the Ignition file is created, you can include the configuration in a new live {op-system} ISO, which is named `rhcos-sshd-4.13.0-x86_64-live.x86_64.iso`, with the `coreos-installer` utility:
48+
. After the Ignition file is created, you can include the configuration in a new live {op-system} ISO, which is named `rhcos-sshd-{product-version}.0-x86_64-live.x86_64.iso`, with the `coreos-installer` utility:
7349
+
74-
[source,terminal]
50+
[source,terminal,subs="attributes+"]
7551
----
76-
$ coreos-installer iso ignition embed -i embedded.ign rhcos-4.13.0-x86_64-live.x86_64.iso -o rhcos-sshd-4.13.0-x86_64-live.x86_64.iso
52+
$ coreos-installer iso ignition embed -i embedded.ign rhcos-{product-version}.0-x86_64-live.x86_64.iso -o rhcos-sshd-{product-version}.0-x86_64-live.x86_64.iso
7753
----
7854

7955
.Verification
8056

81-
. Check that the custom live ISO can be used to boot the server by running the following command:
57+
* Check that the custom live ISO can be used to boot the server by running the following command:
8258
+
83-
[source,terminal]
59+
[source,terminal,subs="attributes+"]
8460
----
85-
# coreos-installer iso ignition show rhcos-sshd-4.13.0-x86_64-live.x86_64.iso
61+
# coreos-installer iso ignition show rhcos-sshd-{product-version}.0-x86_64-live.x86_64.iso
8662
----
8763
8864
+
@@ -96,26 +72,12 @@ $ coreos-installer iso ignition embed -i embedded.ign rhcos-4.13.0-x86_64-live.x
9672
"passwd": {
9773
"users": [
9874
{
99-
"name": "root",
100-
"passwordHash": "$2b$05$aAd9TkvWnvUmeDQEA9vkiOoCqCZgd6cWn0xXwe.ii/TqeCxUC0Z0G",
75+
"name": "core",
10176
"sshAuthorizedKeys": [
10277
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCZnG8AIzlDAhpyENpK2qKiTT8EbRWOrz7NXjRzopbPu215mocaJgjjwJjh1cYhgPhpAp6M/ttTk7I4OI7g4588Apx4bwJep6oWTU35LkY8ZxkGVPAJL8kVlTdKQviDv3XX12l4QfnDom4tm4gVbRH0gNT1wzhnLP+LKYm2Ohr9D7p9NBnAdro6k++XWgkDeijLRUTwdEyWunIdW1f8G0Mg8Y1Xzr13BUo3+8aey7HLKJMDtobkz/C8ESYA/f7HJc5FxF0XbapWWovSSDJrr9OmlL9f4TfE+cQk3s+eoKiz2bgNPRgEEwihVbGsCN4grA+RzLCAOpec+2dTJrQvFqsD [email protected]"
10378
]
10479
}
10580
]
106-
},
107-
"storage": {
108-
"files": [
109-
{
110-
"overwrite": true,
111-
"path": "/etc/ssh/sshd_config",
112-
"contents": {
113-
"compression": "gzip",
114-
"source": "data:;base64,H4sIAAAAAAAC/4RXX2/bOBJ/16eYWy2QFoj/pdtDN8A9qI6SGLEdw3b22qeAlsY21xQpkJQd3cN99sUMZcUuvFsXbUXO8Mf5P8MYwu/X5xL118XdLTi3zV8zo9dyc72HQXfQ/wQ3/cGXXv+3Xv93uOnf/ja4vbkB/yekbyX8GkUxLLfSgXTgt8jnwaHdowVXO49F5yBzhABZWeGl0bCWCrsAC8QoPr3yw+ePsDYWCmMRpF4bW/CBbnsN4x+Eg8wUpVSYw0H6LcyS5eN/epWzPWUyoXorqW952X6Efdeu6SugIjhvhcdNDZXDnAUwJV3rQGrWKse1qJQ/FRXcVpZlc38UA1lwsXhkOxhwJWZyXbc4LKTforQt1l6oCuGwRUtGKI1zcqXwGlaVB4Vij8RfkJ4Fao95F+BFt6sW2ezRWrKw3xLOGTqbbbSG2lRwENqTZNlW6A1zQ2msB6NBwCIdS129NR675gNbFsGAR6WiuGURK1N58OSLANUlF2IhtNg0kB0BHbbVKy1fPXRK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nkOdO6F0aaQ4lqCAmV9fQOXMpYqFIKjvUS/ZWlNteBKCn3lc6Jxay8UQ7ALcYYk6p15K5jWVZQnOxkxS4YJYeyl+enkhaljVFMNR3LQ/7/myNfzyY8+g4c5UvnMM+V+672PXn1ROwuy1bUzfmPrUuFyi2Vm2avEuSn9NOProSvYCdQSH/m9M1bjxZwpTnGhzRZL/N5lPR9OHW7h6cUgSaHNFrqbZwlUlzXSYU/W9x9xYwfBkr0xUjgy1RyvI76U1K4WF60YNTsiXhGIh2aD298YehGUfcpAzZZmVP+4/CI8HUdO8yPH9bTD4keXbYHAnXalE/bxekzEGfd58ccjJz13jpNYtl9+P6TvirmwxjNZ5mHhIk1IUr4XxedtoSlF08x6/QKjXUkU3a6BW6CfG55wxDiTj8QumjUbyFZlpj9YJL9lzIjwtVpVUviM10/ip0wKGXOblWDgKtqDCcjh7QiwTJfd4qhR1n1TvpTWaHglcIoamKG0TZTkqUWMeDZVE7fn4SHu0e6Fg8KUfxSeEIcXoRLzBpyh+cXg3XTDcTObc8Ht7YXu20myNbinzMBN5YX1V0kx0+6l/O+j3W3tzwwoSba0x/k5azLyxdTMe/BG0T2iYyauinaC1aWenldAaLZSC3ltfw+LIFkom8CMPOxaVoBjFE2PshZXkBxcF3lTvYZxMH2A8fB0uv89S+pi+TNL5aEify9GEt4bP43Gy5M/J8zRdJvPv/J0uFslDujhFG77Oklk6Z6AknE7u7ubpYsGA6TidPT5PA1SaLF7m6SSdLs8RRnfpdDm6Hw2T5eh5yhDjMQv6kjykJ7zfJs93o/tROl+Q/u0r8GgssybTuWoVXhouWhw/mye/W/uS/g+PY7nCN8x6pkTN49Tal51m4o9iSN9EUSok0OYifsOEkujCE7JE26EOBCvhJI/MPtsCD3hCG53tqZKG33n+8pAUfhcKwAn1PXNPNu+NzfA4aWZ7d3yn/BUAAP//SwsNmNoQAAA="
115-
},
116-
"mode": 384
117-
}
118-
]
11981
}
12082
}
121-
----
83+
----

0 commit comments

Comments
 (0)