Skip to content

Commit

Permalink
updated/added hauler bits
Browse files Browse the repository at this point in the history
  • Loading branch information
zackbradys committed Aug 13, 2024
1 parent e01ba3b commit 7aa55f2
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 12 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Rancher Airgap is a framework and guide built for collecting, packaging, and distributing the Rancher Product Stack for deployment in disconnected or airgapped environments.

We utilize Project [Hauler](https://github.com/rancherfederal/hauler) by [Rancher Government Solutions](https://github.com/rancherfederal) to collect, package, and distribute the assets. `Hauler` simplifies the airgap process, by representing assets as content and collections and allows users to easily fetch, store, package, and distribute with declarative manifests or the command line. In this repositry, we generate these manifests for each of the products.
We utilize Project [Hauler](https://github.com/hauler-dev/hauler) by [Rancher Government Solutions](https://github.com/rancherfederal) to collect, package, and distribute the assets. `Hauler` simplifies the airgap process, by representing assets as content and collections and allows users to easily fetch, store, package, and distribute with declarative manifests or the command line. In this repositry, we generate these manifests for each of the products.

**Review the high level *[example use cases](examples)*!**

Expand Down Expand Up @@ -40,7 +40,7 @@ fetch -> validate -> save -> | <airgap> | -> load -> validate -> distribute
### Addons

- [hauler/hauler](hauler/hauler/README.md) - provides the content manifest for Hauler
- currently supports: `Hauler: v1.0.4`
- currently supports: `Hauler: v1.0.6`
- [hauler/helm](hauler/helm/README.md) - provides the content manifest for Helm
- currently supports: `Helm: v3.15.3`
- [hauler/cosign](hauler/cosign/README.md) - provides the content manifest for Cosign
Expand All @@ -55,6 +55,6 @@ fetch -> validate -> save -> | <airgap> | -> load -> validate -> distribute
## Hauler Installation

```bash
# https://github.com/rancherfederal/hauler
# https://github.com/hauler-dev/hauler
curl -sfL https://get.hauler.dev | bash
```
2 changes: 1 addition & 1 deletion examples/os-packages-example.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ hauler store sync --store packages --files rancher-airgap-packages.yaml
hauler store save --store packages --filename rancher-airgap-packages.tar.zst

### Fetch Hauler Binary
curl -sfOL https://github.com/rancherfederal/hauler/releases/download/v1.0.3/hauler_1.0.3_linux_amd64.tar.gz
curl -sfOL https://github.com/hauler-dev/hauler/releases/download/v1.0.6/hauler_1.0.6_linux_amd64.tar.gz
```

---
Expand Down
2 changes: 1 addition & 1 deletion examples/rancher-airgap-quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ hauler store save --store neuvector-store --filename rancher-airgap-neuvector.ta
hauler store save --store extras --filename rancher-airgap-extras.tar.zst

### Fetch Hauler Binary
curl -sfOL https://github.com/rancherfederal/hauler/releases/download/v1.0.3/hauler_1.0.3_linux_amd64.tar.gz
curl -sfOL https://github.com/hauler-dev/hauler/releases/download/v1.0.6/hauler_1.0.6_linux_amd64.tar.gz
```

---
Expand Down
19 changes: 12 additions & 7 deletions hauler/scripts/hauler/hauler-hauler.sh
Original file line number Diff line number Diff line change
@@ -1,33 +1,37 @@
### Set Variables
export vHauler=1.0.4
export vHauler=1.0.6

### Setup Working Directory
rm -rf /opt/hauler/hauler
mkdir -p /opt/hauler/hauler
cd /opt/hauler/hauler

### Create Hauler Manifest
### Hauler -> https://github.com/rancherfederal/hauler
### Hauler -> https://github.com/hauler-dev/hauler
cat << EOF >> /opt/hauler/hauler/rancher-airgap-hauler.yaml
apiVersion: content.hauler.cattle.io/v1alpha1
kind: Files
metadata:
name: rancher-airgap-files-hauler
spec:
files:
- path: https://github.com/rancherfederal/hauler/releases/download/v${vHauler}/hauler_${vHauler}_linux_amd64.tar.gz
- path: https://github.com/hauler-dev/hauler/releases/download/v${vHauler}/hauler_${vHauler}_linux_amd64.tar.gz
name: hauler-linux-amd64.tar.gz
- path: https://github.com/rancherfederal/hauler/releases/download/v${vHauler}/hauler_${vHauler}_linux_arm64.tar.gz
- path: https://github.com/hauler-dev/hauler/releases/download/v${vHauler}/hauler_${vHauler}_linux_arm64.tar.gz
name: hauler-linux-arm64.tar.gz
- path: https://github.com/hauler-dev/hauler/releases/download/v${vHauler}/hauler_${vHauler}_windows_amd64.tar.gz
name: hauler-windows-amd64.tar.gz
- path: https://github.com/hauler-dev/hauler/releases/download/v${vHauler}/hauler_${vHauler}_windows_arm64.tar.gz
name: hauler-windows-arm64.tar.gz
---
apiVersion: content.hauler.cattle.io/v1alpha1
kind: Charts
metadata:
name: rancher-airgap-charts-hauler
spec:
charts:
- name: hauler
repoURL: oci://ghcr.io/rancherfederal/charts
- name: hauler-helm
repoURL: oci://ghcr.io/hauler-dev
version: ${vHauler}
---
apiVersion: content.hauler.cattle.io/v1alpha1
Expand All @@ -36,7 +40,8 @@ metadata:
name: rancher-airgap-images-hauler
spec:
images:
- name: ghcr.io/rancherfederal/hauler:v${vHauler}
- name: ghcr.io/hauler-dev/hauler:v${vHauler}
- name: ghcr.io/hauler-dev/hauler-debug:v${vHauler}
EOF

### Add the Hauler Manifest
Expand Down

0 comments on commit 7aa55f2

Please sign in to comment.