Skip to content

Commit

Permalink
story(rack-blade): implement runtime config (#6)
Browse files Browse the repository at this point in the history
* chore(workflow): fix spelling mistake

* feat(rack-blade): implement initial runtime config

* feat(rack-blade): boot will now swap runtime config in after booting up
  • Loading branch information
Zaba505 authored Mar 8, 2023
1 parent a4d9ee2 commit 5e308d6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,18 @@ jobs:
run: |
mkdir dist
podman run --rm -v ./rack-blade/boot.bu:/config.bu:z quay.io/coreos/butane:release --pretty --strict /config.bu > ./dist/rack-blade-boot.ign
podman run --rm -v ./rack-blade/runtime.bu:/config.bu:z quay.io/coreos/butane:release --pretty --strict /config.bu > ./dist/rack-blade-runtime.ign
- name: Embed ignition files in ISO images
run: |
iso=$(podman run --security-opt label=disable --pull=always --rm -v .:/data -w /data quay.io/coreos/coreos-installer:release download -f iso 2>/dev/null)
podman run --security-opt label=disable --pull=always --rm -v .:/data -w /data quay.io/coreos/coreos-installer:release iso customize --live-ignition ./dist/rack-blade-boot.ign -o ./dist/rack-blade.iso $iso
podman run --security-opt label=disable --pull=always --rm -v .:/data -w /data quay.io/coreos/coreos-installer:release iso customize --live-ignition ./dist/rack-blade-boot.ign -o ./dist/rack-blade-boot.iso $iso
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
dist/rack-blade-boot.ign
dist/rack-blade.iso
dist/rack-blade-runtime.ign
dist/rack-blade-boot.iso
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# Infrastructure as Code Monorepo
# My Infrastructure as Code Monorepo
4 changes: 4 additions & 0 deletions rack-blade/boot.bu
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
variant: fcos
version: 1.4.0
ignition:
config:
replace:
source: https://github.com/Zaba505/infra/releases/latest/download/rack-blade-runtime.ign
passwd:
users:
- name: core
Expand Down
7 changes: 7 additions & 0 deletions rack-blade/runtime.bu
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
variant: fcos
version: 1.4.0
passwd:
users:
- name: core
ssh_authorized_keys:
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIECro1+siPNnv4iA078ov0OJEP6+0KgouufjB6F+SXr0 cakub6@gmx.com

0 comments on commit 5e308d6

Please sign in to comment.