Skip to content

Commit

Permalink
s390x: Add builder config for RHCOS
Browse files Browse the repository at this point in the history
Add the builder config for the s390x RHCOS builder.

Signed-off-by: Jan Schintag <[email protected]>
  • Loading branch information
jschintag committed Feb 27, 2023
1 parent b813111 commit 7874aa0
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 4 deletions.
8 changes: 4 additions & 4 deletions multi-arch-builders/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ cat builder-common.bu | butane --pretty --strict > builder-common.ign
cat coreos-ppc64le-builder.bu | butane --pretty --strict --files-dir=. > coreos-ppc64le-builder.ign
```

To connect to this machine first add
To connect to this machine first add
[custom ssh configuration](https://docs.fedoraproject.org/en-US/infra/sysadmin_guide/sshaccess/#_ssh_configuration)
for connecting to machines via Fedora bastion hosts.

Expand Down Expand Up @@ -132,8 +132,8 @@ container where ibmcloud is running:

```bash
cat builder-common.bu | butane --pretty --strict > builder-common.ign
cat coreos-s390x-builder.bu | butane --pretty --strict --files-dir=. > coreos-s390x-builder.ign
podman cp coreos-s390x-builder.ign ibmcloud:/root/coreos-s390x-builder.ign
cat coreos-s390x-fcos-builder.bu | butane --pretty --strict --files-dir=. > coreos-s390x-fcos-builder.ign
podman cp coreos-s390x-fcos-builder.ign ibmcloud:/root/coreos-s390x-fcos-builder.ign
```

Now we can start the instance:
Expand All @@ -148,7 +148,7 @@ SUBNET='0757-2bcc7a5a-e0f6-4141-85ef-25dee337ae32'
SG='r014-39a202b7-1551-47f8-b38a-7f496c881da2'
ibmcloud is instance-create $NAME $VPC $ZONE $PROFILE $SUBNET --output json --image-id $IMAGE \
--boot-volume '{"name": "my-boot-vol-1", "volume": {"capacity": 200, "profile": {"name": "general-purpose"}}}' \
--sgs $SG --user-data @coreos-s390x-builder.ign > out.json
--sgs $SG --user-data @coreos-s390x-fcos-builder.ign > out.json
```


Expand Down
File renamed without changes.
32 changes: 32 additions & 0 deletions multi-arch-builders/coreos-s390x-rhcos-builder.bu
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This butane config will do the following:
#
# - Merge in the builder-common.ign Ignition file
# - Allow the builder user to log in with the associated ssh key
# - Set a hostname
#
variant: fcos
version: 1.4.0
ignition:
config:
merge:
- source: http://foo/bar/builder-common.ign
passwd:
users:
- name: builder
ssh_authorized_keys:
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBYuN4Crt4kwszp25BPpNGc8xPiVyXwXAGILQmBOOvCq builder@fcos-pipeline-s390x
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEA9fEPuFwffqoqOFa9R0mIbUCaeHB03ql/QcTQ5Bqlx builder@rhcos-pipeline-s390x
- name: core
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAgEAkNiuIximCsbukdOoG99V8dZB3FexJC6CHLuuRUT3xYYXqtcKQXcvb7Nj02zHOiHk34mFpAKNKISFV2pM9qd3TE1Iv7iFkfZanYf4USzHhb5Lm7ZU16H7RyPiCF/YkZ7obmIRb6MOqClGwPTqtYQtOuMR8d35/fJcOijXun1Mt07QG2AHrRVt3Z1gtyxaFz5hln9UUW1Wqby9FKANw3OIZ1xwn/qEZr5dKxGea0mE2PVC5hEerzrC5xIGO00zivKvwtyKnKB5dFCLtvQrPhaYAHKHJBTpMmzjQWgs4MdD6JwFrUSICuiiaVLd8bMGjJgSKsM0t3CJS7J2v9l0ZO0yRd1UdTau6JEbYOjMdE5MRutBUfCLhxkFIfOEQgLf0lE1UxU2XsJQ/zdnMXtExwhSMKfYlOyw1PgP7j8tUuEElY9Pr1pDEm0th4SAwq3+hnFGyP00gddhHY9qYUHi+lwj82lvjPQccSBso+nuJ8L2485e8WUultAUAYQ2MGscPYihkSJXxs0O17k7aLVzz+E8e1UgSuUAcQlrdxson6+P/O9qFnLAKQ+fYJHfoET+RVht4f94lbhr15M9IJGHZGQexwqshuABhsE2DKtT1/nizsl+85CpF1Esj3w1mEGhuDEiuCmC7wI0i12+YMuuYMdGcM75mhWFD0QjIjwcQjmmZyk= [email protected]
kernel_arguments:
should_exist:
# enables Secure Execution Host
- prot_virt=1
storage:
files:
- path: /etc/hostname
mode: 0644
overwrite: true
contents:
inline: rdu-z15-l21

0 comments on commit 7874aa0

Please sign in to comment.