@ydkn/pulumi-components 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +31 -0
- package/index.d.ts.map +1 -0
- package/index.js +62 -0
- package/index.js.map +1 -0
- package/lib/avahi/deployment.d.ts +36 -0
- package/lib/avahi/deployment.d.ts.map +1 -0
- package/lib/avahi/deployment.js +164 -0
- package/lib/avahi/deployment.js.map +1 -0
- package/lib/avahi/index.d.ts +4 -0
- package/lib/avahi/index.d.ts.map +1 -0
- package/lib/avahi/index.js +8 -0
- package/lib/avahi/index.js.map +1 -0
- package/lib/avahi/service.d.ts +51 -0
- package/lib/avahi/service.d.ts.map +1 -0
- package/lib/avahi/service.js +57 -0
- package/lib/avahi/service.js.map +1 -0
- package/lib/aws/accessKey.d.ts +22 -0
- package/lib/aws/accessKey.d.ts.map +1 -0
- package/lib/aws/accessKey.js +27 -0
- package/lib/aws/accessKey.js.map +1 -0
- package/lib/aws/bucket.d.ts +28 -0
- package/lib/aws/bucket.d.ts.map +1 -0
- package/lib/aws/bucket.js +49 -0
- package/lib/aws/bucket.js.map +1 -0
- package/lib/aws/index.d.ts +4 -0
- package/lib/aws/index.d.ts.map +1 -0
- package/lib/aws/index.js +8 -0
- package/lib/aws/index.js.map +1 -0
- package/lib/blocky/deployment.d.ts +39 -0
- package/lib/blocky/deployment.d.ts.map +1 -0
- package/lib/blocky/deployment.js +97 -0
- package/lib/blocky/deployment.js.map +1 -0
- package/lib/blocky/index.d.ts +3 -0
- package/lib/blocky/index.d.ts.map +1 -0
- package/lib/blocky/index.js +6 -0
- package/lib/blocky/index.js.map +1 -0
- package/lib/certManager/certificate.d.ts +126 -0
- package/lib/certManager/certificate.d.ts.map +1 -0
- package/lib/certManager/certificate.js +42 -0
- package/lib/certManager/certificate.js.map +1 -0
- package/lib/certManager/index.d.ts +5 -0
- package/lib/certManager/index.d.ts.map +1 -0
- package/lib/certManager/index.js +11 -0
- package/lib/certManager/index.js.map +1 -0
- package/lib/certManager/issuer.d.ts +109 -0
- package/lib/certManager/issuer.d.ts.map +1 -0
- package/lib/certManager/issuer.js +39 -0
- package/lib/certManager/issuer.js.map +1 -0
- package/lib/certManager/operator.d.ts +43 -0
- package/lib/certManager/operator.d.ts.map +1 -0
- package/lib/certManager/operator.js +177 -0
- package/lib/certManager/operator.js.map +1 -0
- package/lib/common/componentResource.d.ts +20 -0
- package/lib/common/componentResource.d.ts.map +1 -0
- package/lib/common/componentResource.js +62 -0
- package/lib/common/componentResource.js.map +1 -0
- package/lib/common/index.d.ts +4 -0
- package/lib/common/index.d.ts.map +1 -0
- package/lib/common/index.js +6 -0
- package/lib/common/index.js.map +1 -0
- package/lib/common/types.d.ts +3 -0
- package/lib/common/types.d.ts.map +1 -0
- package/lib/common/types.js +3 -0
- package/lib/common/types.js.map +1 -0
- package/lib/externalDns/dnsEndpoint.d.ts +66 -0
- package/lib/externalDns/dnsEndpoint.d.ts.map +1 -0
- package/lib/externalDns/dnsEndpoint.js +17 -0
- package/lib/externalDns/dnsEndpoint.js.map +1 -0
- package/lib/externalDns/index.d.ts +4 -0
- package/lib/externalDns/index.d.ts.map +1 -0
- package/lib/externalDns/index.js +8 -0
- package/lib/externalDns/index.js.map +1 -0
- package/lib/externalDns/operator.d.ts +45 -0
- package/lib/externalDns/operator.d.ts.map +1 -0
- package/lib/externalDns/operator.js +112 -0
- package/lib/externalDns/operator.js.map +1 -0
- package/lib/fcos/assets/rpm-opstree-install.sh +26 -0
- package/lib/fcos/assets/rpm-ostree-install.service +13 -0
- package/lib/fcos/config.d.ts +156 -0
- package/lib/fcos/config.d.ts.map +1 -0
- package/lib/fcos/config.js +168 -0
- package/lib/fcos/config.js.map +1 -0
- package/lib/fcos/host.d.ts +34 -0
- package/lib/fcos/host.d.ts.map +1 -0
- package/lib/fcos/host.js +57 -0
- package/lib/fcos/host.js.map +1 -0
- package/lib/fcos/index.d.ts +4 -0
- package/lib/fcos/index.d.ts.map +1 -0
- package/lib/fcos/index.js +8 -0
- package/lib/fcos/index.js.map +1 -0
- package/lib/freeradius/assets/clients.conf.tmpl +23 -0
- package/lib/freeradius/assets/default.tmpl +116 -0
- package/lib/freeradius/assets/eap.tmpl +66 -0
- package/lib/freeradius/assets/inner-tunnel.tmpl +74 -0
- package/lib/freeradius/assets/ldap.tmpl +48 -0
- package/lib/freeradius/assets/proxy.conf.tmpl +43 -0
- package/lib/freeradius/deployment.d.ts +74 -0
- package/lib/freeradius/deployment.d.ts.map +1 -0
- package/lib/freeradius/deployment.js +216 -0
- package/lib/freeradius/deployment.js.map +1 -0
- package/lib/freeradius/index.d.ts +3 -0
- package/lib/freeradius/index.d.ts.map +1 -0
- package/lib/freeradius/index.js +6 -0
- package/lib/freeradius/index.js.map +1 -0
- package/lib/gitlab/index.d.ts +4 -0
- package/lib/gitlab/index.d.ts.map +1 -0
- package/lib/gitlab/index.js +10 -0
- package/lib/gitlab/index.js.map +1 -0
- package/lib/gitlab/renovate.d.ts +38 -0
- package/lib/gitlab/renovate.d.ts.map +1 -0
- package/lib/gitlab/renovate.js +77 -0
- package/lib/gitlab/renovate.js.map +1 -0
- package/lib/gitlab/runners/cleanup.d.ts +29 -0
- package/lib/gitlab/runners/cleanup.d.ts.map +1 -0
- package/lib/gitlab/runners/cleanup.js +86 -0
- package/lib/gitlab/runners/cleanup.js.map +1 -0
- package/lib/gitlab/runners/index.d.ts +5 -0
- package/lib/gitlab/runners/index.d.ts.map +1 -0
- package/lib/gitlab/runners/index.js +10 -0
- package/lib/gitlab/runners/index.js.map +1 -0
- package/lib/gitlab/runners/runner.d.ts +63 -0
- package/lib/gitlab/runners/runner.d.ts.map +1 -0
- package/lib/gitlab/runners/runner.js +89 -0
- package/lib/gitlab/runners/runner.js.map +1 -0
- package/lib/gitlab/runners/runners.d.ts +27 -0
- package/lib/gitlab/runners/runners.d.ts.map +1 -0
- package/lib/gitlab/runners/runners.js +36 -0
- package/lib/gitlab/runners/runners.js.map +1 -0
- package/lib/grafana/agent.d.ts +41 -0
- package/lib/grafana/agent.d.ts.map +1 -0
- package/lib/grafana/agent.js +379 -0
- package/lib/grafana/agent.js.map +1 -0
- package/lib/grafana/index.d.ts +3 -0
- package/lib/grafana/index.d.ts.map +1 -0
- package/lib/grafana/index.js +6 -0
- package/lib/grafana/index.js.map +1 -0
- package/lib/hcloud/assets/fcos-install.sh +30 -0
- package/lib/hcloud/cluster.d.ts +96 -0
- package/lib/hcloud/cluster.d.ts.map +1 -0
- package/lib/hcloud/cluster.js +323 -0
- package/lib/hcloud/cluster.js.map +1 -0
- package/lib/hcloud/index.d.ts +5 -0
- package/lib/hcloud/index.d.ts.map +1 -0
- package/lib/hcloud/index.js +10 -0
- package/lib/hcloud/index.js.map +1 -0
- package/lib/hcloud/kubernetes.d.ts +39 -0
- package/lib/hcloud/kubernetes.d.ts.map +1 -0
- package/lib/hcloud/kubernetes.js +188 -0
- package/lib/hcloud/kubernetes.js.map +1 -0
- package/lib/hcloud/wireguard.d.ts +33 -0
- package/lib/hcloud/wireguard.d.ts.map +1 -0
- package/lib/hcloud/wireguard.js +103 -0
- package/lib/hcloud/wireguard.js.map +1 -0
- package/lib/k0s/cluster.d.ts +51 -0
- package/lib/k0s/cluster.d.ts.map +1 -0
- package/lib/k0s/cluster.js +183 -0
- package/lib/k0s/cluster.js.map +1 -0
- package/lib/k0s/index.d.ts +3 -0
- package/lib/k0s/index.d.ts.map +1 -0
- package/lib/k0s/index.js +6 -0
- package/lib/k0s/index.js.map +1 -0
- package/lib/kubernetes/helm/index.d.ts +3 -0
- package/lib/kubernetes/helm/index.d.ts.map +1 -0
- package/lib/kubernetes/helm/index.js +6 -0
- package/lib/kubernetes/helm/index.js.map +1 -0
- package/lib/kubernetes/helm/v3/chart.d.ts +37 -0
- package/lib/kubernetes/helm/v3/chart.d.ts.map +1 -0
- package/lib/kubernetes/helm/v3/chart.js +46 -0
- package/lib/kubernetes/helm/v3/chart.js.map +1 -0
- package/lib/kubernetes/helm/v3/helpers.d.ts +3 -0
- package/lib/kubernetes/helm/v3/helpers.d.ts.map +1 -0
- package/lib/kubernetes/helm/v3/helpers.js +29 -0
- package/lib/kubernetes/helm/v3/helpers.js.map +1 -0
- package/lib/kubernetes/helm/v3/index.d.ts +5 -0
- package/lib/kubernetes/helm/v3/index.d.ts.map +1 -0
- package/lib/kubernetes/helm/v3/index.js +10 -0
- package/lib/kubernetes/helm/v3/index.js.map +1 -0
- package/lib/kubernetes/helm/v3/release.d.ts +15 -0
- package/lib/kubernetes/helm/v3/release.d.ts.map +1 -0
- package/lib/kubernetes/helm/v3/release.js +18 -0
- package/lib/kubernetes/helm/v3/release.js.map +1 -0
- package/lib/kubernetes/index.d.ts +5 -0
- package/lib/kubernetes/index.d.ts.map +1 -0
- package/lib/kubernetes/index.js +10 -0
- package/lib/kubernetes/index.js.map +1 -0
- package/lib/kubernetes/transformations/filter.d.ts +13 -0
- package/lib/kubernetes/transformations/filter.d.ts.map +1 -0
- package/lib/kubernetes/transformations/filter.js +32 -0
- package/lib/kubernetes/transformations/filter.js.map +1 -0
- package/lib/kubernetes/transformations/index.d.ts +6 -0
- package/lib/kubernetes/transformations/index.d.ts.map +1 -0
- package/lib/kubernetes/transformations/index.js +12 -0
- package/lib/kubernetes/transformations/index.js.map +1 -0
- package/lib/kubernetes/transformations/metadataNamespace.d.ts +3 -0
- package/lib/kubernetes/transformations/metadataNamespace.d.ts.map +1 -0
- package/lib/kubernetes/transformations/metadataNamespace.js +27 -0
- package/lib/kubernetes/transformations/metadataNamespace.js.map +1 -0
- package/lib/kubernetes/transformations/removeCrdDescriptions.d.ts +3 -0
- package/lib/kubernetes/transformations/removeCrdDescriptions.d.ts.map +1 -0
- package/lib/kubernetes/transformations/removeCrdDescriptions.js +61 -0
- package/lib/kubernetes/transformations/removeCrdDescriptions.js.map +1 -0
- package/lib/kubernetes/transformations/v1beta1Deprecations.d.ts +3 -0
- package/lib/kubernetes/transformations/v1beta1Deprecations.d.ts.map +1 -0
- package/lib/kubernetes/transformations/v1beta1Deprecations.js +55 -0
- package/lib/kubernetes/transformations/v1beta1Deprecations.js.map +1 -0
- package/lib/kubernetes/v1/index.d.ts +5 -0
- package/lib/kubernetes/v1/index.d.ts.map +1 -0
- package/lib/kubernetes/v1/index.js +10 -0
- package/lib/kubernetes/v1/index.js.map +1 -0
- package/lib/kubernetes/v1/nfsVolume.d.ts +92 -0
- package/lib/kubernetes/v1/nfsVolume.d.ts.map +1 -0
- package/lib/kubernetes/v1/nfsVolume.js +97 -0
- package/lib/kubernetes/v1/nfsVolume.js.map +1 -0
- package/lib/kubernetes/v1/pullSecret.d.ts +31 -0
- package/lib/kubernetes/v1/pullSecret.d.ts.map +1 -0
- package/lib/kubernetes/v1/pullSecret.js +27 -0
- package/lib/kubernetes/v1/pullSecret.js.map +1 -0
- package/lib/kubernetes/v1/service.d.ts +31 -0
- package/lib/kubernetes/v1/service.d.ts.map +1 -0
- package/lib/kubernetes/v1/service.js +43 -0
- package/lib/kubernetes/v1/service.js.map +1 -0
- package/lib/metallb/controller.d.ts +17 -0
- package/lib/metallb/controller.d.ts.map +1 -0
- package/lib/metallb/controller.js +87 -0
- package/lib/metallb/controller.js.map +1 -0
- package/lib/metallb/index.d.ts +5 -0
- package/lib/metallb/index.d.ts.map +1 -0
- package/lib/metallb/index.js +10 -0
- package/lib/metallb/index.js.map +1 -0
- package/lib/metallb/ipAddressPool.d.ts +20 -0
- package/lib/metallb/ipAddressPool.d.ts.map +1 -0
- package/lib/metallb/ipAddressPool.js +22 -0
- package/lib/metallb/ipAddressPool.js.map +1 -0
- package/lib/metallb/l2Advertisement.d.ts +21 -0
- package/lib/metallb/l2Advertisement.d.ts.map +1 -0
- package/lib/metallb/l2Advertisement.js +22 -0
- package/lib/metallb/l2Advertisement.js.map +1 -0
- package/lib/node/index.d.ts +4 -0
- package/lib/node/index.d.ts.map +1 -0
- package/lib/node/index.js +6 -0
- package/lib/node/index.js.map +1 -0
- package/lib/node/kubernetes.d.ts +38 -0
- package/lib/node/kubernetes.d.ts.map +1 -0
- package/lib/node/kubernetes.js +89 -0
- package/lib/node/kubernetes.js.map +1 -0
- package/lib/node/node.d.ts +21 -0
- package/lib/node/node.d.ts.map +1 -0
- package/lib/node/node.js +3 -0
- package/lib/node/node.js.map +1 -0
- package/lib/openldap/deployment.d.ts +58 -0
- package/lib/openldap/deployment.d.ts.map +1 -0
- package/lib/openldap/deployment.js +217 -0
- package/lib/openldap/deployment.js.map +1 -0
- package/lib/openldap/index.d.ts +3 -0
- package/lib/openldap/index.d.ts.map +1 -0
- package/lib/openldap/index.js +6 -0
- package/lib/openldap/index.js.map +1 -0
- package/lib/plex/index.d.ts +4 -0
- package/lib/plex/index.d.ts.map +1 -0
- package/lib/plex/index.js +8 -0
- package/lib/plex/index.js.map +1 -0
- package/lib/plex/mediaServer.d.ts +46 -0
- package/lib/plex/mediaServer.d.ts.map +1 -0
- package/lib/plex/mediaServer.js +234 -0
- package/lib/plex/mediaServer.js.map +1 -0
- package/lib/plex/playlists.d.ts +62 -0
- package/lib/plex/playlists.d.ts.map +1 -0
- package/lib/plex/playlists.js +129 -0
- package/lib/plex/playlists.js.map +1 -0
- package/lib/prometheus/index.d.ts +4 -0
- package/lib/prometheus/index.d.ts.map +1 -0
- package/lib/prometheus/index.js +8 -0
- package/lib/prometheus/index.js.map +1 -0
- package/lib/prometheus/podMonitor.d.ts +42 -0
- package/lib/prometheus/podMonitor.d.ts.map +1 -0
- package/lib/prometheus/podMonitor.js +17 -0
- package/lib/prometheus/podMonitor.js.map +1 -0
- package/lib/prometheus/serviceMonitor.d.ts +46 -0
- package/lib/prometheus/serviceMonitor.d.ts.map +1 -0
- package/lib/prometheus/serviceMonitor.js +17 -0
- package/lib/prometheus/serviceMonitor.js.map +1 -0
- package/lib/raspberrypi/cluster.d.ts +41 -0
- package/lib/raspberrypi/cluster.d.ts.map +1 -0
- package/lib/raspberrypi/cluster.js +194 -0
- package/lib/raspberrypi/cluster.js.map +1 -0
- package/lib/raspberrypi/index.d.ts +3 -0
- package/lib/raspberrypi/index.d.ts.map +1 -0
- package/lib/raspberrypi/index.js +6 -0
- package/lib/raspberrypi/index.js.map +1 -0
- package/lib/rethinkdb/deployment.d.ts +61 -0
- package/lib/rethinkdb/deployment.d.ts.map +1 -0
- package/lib/rethinkdb/deployment.js +350 -0
- package/lib/rethinkdb/deployment.js.map +1 -0
- package/lib/rethinkdb/index.d.ts +3 -0
- package/lib/rethinkdb/index.d.ts.map +1 -0
- package/lib/rethinkdb/index.js +6 -0
- package/lib/rethinkdb/index.js.map +1 -0
- package/lib/rook/blockPool.d.ts +28 -0
- package/lib/rook/blockPool.d.ts.map +1 -0
- package/lib/rook/blockPool.js +56 -0
- package/lib/rook/blockPool.js.map +1 -0
- package/lib/rook/cluster.d.ts +54 -0
- package/lib/rook/cluster.d.ts.map +1 -0
- package/lib/rook/cluster.js +100 -0
- package/lib/rook/cluster.js.map +1 -0
- package/lib/rook/filesystem.d.ts +29 -0
- package/lib/rook/filesystem.d.ts.map +1 -0
- package/lib/rook/filesystem.js +110 -0
- package/lib/rook/filesystem.js.map +1 -0
- package/lib/rook/index.d.ts +6 -0
- package/lib/rook/index.d.ts.map +1 -0
- package/lib/rook/index.js +12 -0
- package/lib/rook/index.js.map +1 -0
- package/lib/rook/operator.d.ts +19 -0
- package/lib/rook/operator.d.ts.map +1 -0
- package/lib/rook/operator.js +162 -0
- package/lib/rook/operator.js.map +1 -0
- package/lib/samba/deployment.d.ts +79 -0
- package/lib/samba/deployment.d.ts.map +1 -0
- package/lib/samba/deployment.js +238 -0
- package/lib/samba/deployment.js.map +1 -0
- package/lib/samba/index.d.ts +3 -0
- package/lib/samba/index.d.ts.map +1 -0
- package/lib/samba/index.js +6 -0
- package/lib/samba/index.js.map +1 -0
- package/lib/ssh/exec.d.ts +33 -0
- package/lib/ssh/exec.d.ts.map +1 -0
- package/lib/ssh/exec.js +116 -0
- package/lib/ssh/exec.js.map +1 -0
- package/lib/ssh/file.d.ts +43 -0
- package/lib/ssh/file.d.ts.map +1 -0
- package/lib/ssh/file.js +110 -0
- package/lib/ssh/file.js.map +1 -0
- package/lib/ssh/index.d.ts +5 -0
- package/lib/ssh/index.d.ts.map +1 -0
- package/lib/ssh/index.js +8 -0
- package/lib/ssh/index.js.map +1 -0
- package/lib/ssh/types.d.ts +19 -0
- package/lib/ssh/types.d.ts.map +1 -0
- package/lib/ssh/types.js +3 -0
- package/lib/ssh/types.js.map +1 -0
- package/lib/torproxy/deployment.d.ts +31 -0
- package/lib/torproxy/deployment.d.ts.map +1 -0
- package/lib/torproxy/deployment.js +131 -0
- package/lib/torproxy/deployment.js.map +1 -0
- package/lib/torproxy/index.d.ts +3 -0
- package/lib/torproxy/index.d.ts.map +1 -0
- package/lib/torproxy/index.js +6 -0
- package/lib/torproxy/index.js.map +1 -0
- package/lib/traefik/controller.d.ts +50 -0
- package/lib/traefik/controller.d.ts.map +1 -0
- package/lib/traefik/controller.js +166 -0
- package/lib/traefik/controller.js.map +1 -0
- package/lib/traefik/index.d.ts +5 -0
- package/lib/traefik/index.d.ts.map +1 -0
- package/lib/traefik/index.js +10 -0
- package/lib/traefik/index.js.map +1 -0
- package/lib/traefik/middleware.d.ts +27 -0
- package/lib/traefik/middleware.d.ts.map +1 -0
- package/lib/traefik/middleware.js +22 -0
- package/lib/traefik/middleware.js.map +1 -0
- package/lib/traefik/secureIngress.d.ts +32 -0
- package/lib/traefik/secureIngress.d.ts.map +1 -0
- package/lib/traefik/secureIngress.js +58 -0
- package/lib/traefik/secureIngress.js.map +1 -0
- package/lib/ubuntu/assets/init.sh +52 -0
- package/lib/ubuntu/deployment.d.ts +67 -0
- package/lib/ubuntu/deployment.d.ts.map +1 -0
- package/lib/ubuntu/deployment.js +230 -0
- package/lib/ubuntu/deployment.js.map +1 -0
- package/lib/ubuntu/index.d.ts +3 -0
- package/lib/ubuntu/index.d.ts.map +1 -0
- package/lib/ubuntu/index.js +6 -0
- package/lib/ubuntu/index.js.map +1 -0
- package/lib/unifi/controller.d.ts +52 -0
- package/lib/unifi/controller.d.ts.map +1 -0
- package/lib/unifi/controller.js +232 -0
- package/lib/unifi/controller.js.map +1 -0
- package/lib/unifi/index.d.ts +3 -0
- package/lib/unifi/index.d.ts.map +1 -0
- package/lib/unifi/index.js +6 -0
- package/lib/unifi/index.js.map +1 -0
- package/lib/velero/index.d.ts +3 -0
- package/lib/velero/index.d.ts.map +1 -0
- package/lib/velero/index.js +6 -0
- package/lib/velero/index.js.map +1 -0
- package/lib/velero/operator.d.ts +31 -0
- package/lib/velero/operator.d.ts.map +1 -0
- package/lib/velero/operator.js +148 -0
- package/lib/velero/operator.js.map +1 -0
- package/lib/wireguard/deployment.d.ts +82 -0
- package/lib/wireguard/deployment.d.ts.map +1 -0
- package/lib/wireguard/deployment.js +161 -0
- package/lib/wireguard/deployment.js.map +1 -0
- package/lib/wireguard/index.d.ts +3 -0
- package/lib/wireguard/index.d.ts.map +1 -0
- package/lib/wireguard/index.js +6 -0
- package/lib/wireguard/index.js.map +1 -0
- package/package.json +62 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
[Unit]
|
|
2
|
+
Description=Layer packages with rpm-ostree
|
|
3
|
+
Wants=network-online.target
|
|
4
|
+
After=network-online.target
|
|
5
|
+
Before=zincati.service
|
|
6
|
+
|
|
7
|
+
[Service]
|
|
8
|
+
Type=oneshot
|
|
9
|
+
RemainAfterExit=yes
|
|
10
|
+
ExecStart=/usr/local/sbin/rpm-opstree-install
|
|
11
|
+
|
|
12
|
+
[Install]
|
|
13
|
+
WantedBy=multi-user.target
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { ComponentResource } from "../common";
|
|
3
|
+
export interface UserArgs {
|
|
4
|
+
/**
|
|
5
|
+
* Username
|
|
6
|
+
*/
|
|
7
|
+
name: pulumi.Input<string>;
|
|
8
|
+
/**
|
|
9
|
+
* Optional: Groups
|
|
10
|
+
*/
|
|
11
|
+
groups?: pulumi.Input<pulumi.Input<string>[]>;
|
|
12
|
+
/**
|
|
13
|
+
* Optional: SSH authorized keys
|
|
14
|
+
*/
|
|
15
|
+
sshAuthorizedKeys?: pulumi.Input<pulumi.Input<string>[]>;
|
|
16
|
+
/**
|
|
17
|
+
* Optional: Password hash
|
|
18
|
+
*/
|
|
19
|
+
passwordHash?: pulumi.Input<string>;
|
|
20
|
+
}
|
|
21
|
+
export interface PartitionArgs {
|
|
22
|
+
/**
|
|
23
|
+
* Label
|
|
24
|
+
*/
|
|
25
|
+
label: pulumi.Input<string>;
|
|
26
|
+
/**
|
|
27
|
+
* Size in MiB
|
|
28
|
+
*/
|
|
29
|
+
size: pulumi.Input<number>;
|
|
30
|
+
/**
|
|
31
|
+
* Optional: Start in MiB
|
|
32
|
+
*/
|
|
33
|
+
start?: pulumi.Input<number>;
|
|
34
|
+
/**
|
|
35
|
+
* Optional: Partition number
|
|
36
|
+
*/
|
|
37
|
+
number?: pulumi.Input<number>;
|
|
38
|
+
/**
|
|
39
|
+
* Optional: Resize partition
|
|
40
|
+
*/
|
|
41
|
+
resize?: pulumi.Input<boolean>;
|
|
42
|
+
}
|
|
43
|
+
export interface DiskArgs {
|
|
44
|
+
/**
|
|
45
|
+
* Device
|
|
46
|
+
*/
|
|
47
|
+
device: pulumi.Input<string>;
|
|
48
|
+
/**
|
|
49
|
+
* Partitions
|
|
50
|
+
*/
|
|
51
|
+
partitions: pulumi.Input<pulumi.Input<PartitionArgs>[]>;
|
|
52
|
+
/**
|
|
53
|
+
* Optional: Wipe table
|
|
54
|
+
*/
|
|
55
|
+
wipeTable?: pulumi.Input<boolean>;
|
|
56
|
+
}
|
|
57
|
+
export interface FilesystemArgs {
|
|
58
|
+
/**
|
|
59
|
+
* Device
|
|
60
|
+
*/
|
|
61
|
+
device: pulumi.Input<string>;
|
|
62
|
+
/**
|
|
63
|
+
* Path
|
|
64
|
+
*/
|
|
65
|
+
path: pulumi.Input<string>;
|
|
66
|
+
/**
|
|
67
|
+
* Filesystem type
|
|
68
|
+
*/
|
|
69
|
+
format: pulumi.Input<string>;
|
|
70
|
+
/**
|
|
71
|
+
* Optional: Label
|
|
72
|
+
*/
|
|
73
|
+
label?: pulumi.Input<string>;
|
|
74
|
+
}
|
|
75
|
+
export interface FilesArgs {
|
|
76
|
+
/**
|
|
77
|
+
* Path
|
|
78
|
+
*/
|
|
79
|
+
path: pulumi.Input<string>;
|
|
80
|
+
/**
|
|
81
|
+
* Contents
|
|
82
|
+
*/
|
|
83
|
+
contents: pulumi.Input<string>;
|
|
84
|
+
/**
|
|
85
|
+
* Optional: Mode
|
|
86
|
+
*/
|
|
87
|
+
mode?: pulumi.Input<number>;
|
|
88
|
+
}
|
|
89
|
+
export interface SystemdUnitArgs {
|
|
90
|
+
/**
|
|
91
|
+
* Name
|
|
92
|
+
*/
|
|
93
|
+
name: pulumi.Input<string>;
|
|
94
|
+
/**
|
|
95
|
+
* Optional: Enabled
|
|
96
|
+
*/
|
|
97
|
+
enabled?: pulumi.Input<boolean>;
|
|
98
|
+
/**
|
|
99
|
+
* Optional: Masked
|
|
100
|
+
*/
|
|
101
|
+
mask?: pulumi.Input<boolean>;
|
|
102
|
+
/**
|
|
103
|
+
* Optional: Contents
|
|
104
|
+
*/
|
|
105
|
+
contents?: pulumi.Input<string>;
|
|
106
|
+
}
|
|
107
|
+
export interface IgnitionArgs {
|
|
108
|
+
/**
|
|
109
|
+
* Optional: Modules
|
|
110
|
+
*/
|
|
111
|
+
modules?: pulumi.Input<pulumi.Input<string>[]>;
|
|
112
|
+
/**
|
|
113
|
+
* Optional: Packages
|
|
114
|
+
*/
|
|
115
|
+
packages?: pulumi.Input<pulumi.Input<string>[]>;
|
|
116
|
+
/**
|
|
117
|
+
* Optional: Users
|
|
118
|
+
*/
|
|
119
|
+
users?: pulumi.Input<pulumi.Input<UserArgs>[]>;
|
|
120
|
+
/**
|
|
121
|
+
* Optional: Disks
|
|
122
|
+
*/
|
|
123
|
+
disks?: pulumi.Input<pulumi.Input<DiskArgs>[]>;
|
|
124
|
+
/**
|
|
125
|
+
* Optional: Filesystems
|
|
126
|
+
*/
|
|
127
|
+
filesystems?: pulumi.Input<pulumi.Input<FilesystemArgs>[]>;
|
|
128
|
+
/**
|
|
129
|
+
* Optional: Files
|
|
130
|
+
*/
|
|
131
|
+
files?: pulumi.Input<pulumi.Input<FilesArgs>[]>;
|
|
132
|
+
/**
|
|
133
|
+
* Optional: Systemd units
|
|
134
|
+
*/
|
|
135
|
+
systemdUnits?: pulumi.Input<pulumi.Input<SystemdUnitArgs>[]>;
|
|
136
|
+
}
|
|
137
|
+
export interface ConfigArgs extends IgnitionArgs {
|
|
138
|
+
/**
|
|
139
|
+
* Hostname
|
|
140
|
+
*/
|
|
141
|
+
hostname: pulumi.Input<string>;
|
|
142
|
+
}
|
|
143
|
+
export declare class Config extends ComponentResource {
|
|
144
|
+
readonly ignitionConfig: pulumi.Output<string>;
|
|
145
|
+
/**
|
|
146
|
+
* Create a new FCOS config resource.
|
|
147
|
+
* @param name The name of the FCOS config resource.
|
|
148
|
+
* @param args A bag of arguments to control the FCOS config creation.
|
|
149
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
150
|
+
*/
|
|
151
|
+
constructor(name: string, args: ConfigArgs, opts?: pulumi.ComponentResourceOptions);
|
|
152
|
+
private defaultConfig;
|
|
153
|
+
private assetContent;
|
|
154
|
+
private storageContents;
|
|
155
|
+
}
|
|
156
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../lib/fcos/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAIzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B;;OAEG;IACH,MAAM,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,CAAC,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;IAC3D;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IAChD;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;CAC9D;AAED,MAAM,WAAW,UAAW,SAAQ,YAAY;IAC9C;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAChC;AAED,qBAAa,MAAO,SAAQ,iBAAiB;IAC3C,SAAgB,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAEtD;;;;;OAKG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,wBAAwB;IAsGlF,OAAO,CAAC,aAAa;IAqDrB,OAAO,CAAC,YAAY;IAKpB,OAAO,CAAC,eAAe;CAMxB"}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Config = void 0;
|
|
4
|
+
const pulumi = require("@pulumi/pulumi");
|
|
5
|
+
const path = require("path");
|
|
6
|
+
const fs = require("fs");
|
|
7
|
+
const compress = require("zlib");
|
|
8
|
+
const common_1 = require("../common");
|
|
9
|
+
class Config extends common_1.ComponentResource {
|
|
10
|
+
ignitionConfig;
|
|
11
|
+
/**
|
|
12
|
+
* Create a new FCOS config resource.
|
|
13
|
+
* @param name The name of the FCOS config resource.
|
|
14
|
+
* @param args A bag of arguments to control the FCOS config creation.
|
|
15
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
16
|
+
*/
|
|
17
|
+
constructor(name, args, opts) {
|
|
18
|
+
super("fcos:config", name, args, opts);
|
|
19
|
+
this.ignitionConfig = pulumi
|
|
20
|
+
.all([
|
|
21
|
+
this.defaultConfig(),
|
|
22
|
+
args.hostname,
|
|
23
|
+
args.modules,
|
|
24
|
+
args.packages,
|
|
25
|
+
args.users,
|
|
26
|
+
args.disks,
|
|
27
|
+
args.filesystems,
|
|
28
|
+
args.files,
|
|
29
|
+
args.systemdUnits,
|
|
30
|
+
])
|
|
31
|
+
.apply(([config, hostname, modules, packages, users, disks, filesystems, files, systemdUnits]) => {
|
|
32
|
+
if (hostname !== undefined) {
|
|
33
|
+
config.storage.files.push({
|
|
34
|
+
path: "/etc/hostname",
|
|
35
|
+
contents: this.storageContents(hostname),
|
|
36
|
+
mode: 0o644,
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
for (const module of modules || []) {
|
|
40
|
+
config.storage.files.push({
|
|
41
|
+
path: `/etc/modules-load.d/${module}.conf`,
|
|
42
|
+
contents: this.storageContents(module),
|
|
43
|
+
mode: 0o644,
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
for (const pkg of packages || []) {
|
|
47
|
+
config.storage.files.push({ path: `/etc/rpm-opstree-install/${pkg}` });
|
|
48
|
+
}
|
|
49
|
+
for (const user of users || []) {
|
|
50
|
+
config.passwd.users.push(user);
|
|
51
|
+
}
|
|
52
|
+
for (const disk of disks || []) {
|
|
53
|
+
config.storage.disks.push({
|
|
54
|
+
device: disk.device,
|
|
55
|
+
partitions: disk.partitions.map((partition) => {
|
|
56
|
+
return {
|
|
57
|
+
label: partition.label,
|
|
58
|
+
size_mib: partition.size,
|
|
59
|
+
start_mib: partition.start,
|
|
60
|
+
number: partition.number,
|
|
61
|
+
resize: partition.resize,
|
|
62
|
+
};
|
|
63
|
+
}),
|
|
64
|
+
wipe_table: disk.wipeTable,
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
for (const filesystem of filesystems || []) {
|
|
68
|
+
config.storage.filesystems.push({
|
|
69
|
+
device: filesystem.device,
|
|
70
|
+
path: filesystem.path,
|
|
71
|
+
format: filesystem.format,
|
|
72
|
+
label: filesystem.label,
|
|
73
|
+
});
|
|
74
|
+
const checkSystemdName = filesystem.device.replace(/-/g, "\\x2d").replace(/^\//, "").replace(/\//g, "-");
|
|
75
|
+
config.systemd.units.push({
|
|
76
|
+
name: `${filesystem.path.replace(/^\//, "").replace(/\//g, "-")}.mount`,
|
|
77
|
+
enabled: true,
|
|
78
|
+
contents: [
|
|
79
|
+
"[Unit]",
|
|
80
|
+
"Before=local-fs.target",
|
|
81
|
+
`Requires=systemd-fsck@${checkSystemdName}.service`,
|
|
82
|
+
`After=systemd-fsck@${checkSystemdName}.service`,
|
|
83
|
+
"[Mount]",
|
|
84
|
+
`Where=${filesystem.path}`,
|
|
85
|
+
`What=${filesystem.device}`,
|
|
86
|
+
`Type=${filesystem.format}`,
|
|
87
|
+
"[Install]",
|
|
88
|
+
"RequiredBy=local-fs.target",
|
|
89
|
+
].join("\n"),
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
for (const file of files || []) {
|
|
93
|
+
config.storage.files.push({
|
|
94
|
+
path: file.path,
|
|
95
|
+
contents: this.storageContents(file.contents),
|
|
96
|
+
mode: file.mode ?? 0o644,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
for (const unit of systemdUnits || []) {
|
|
100
|
+
config.systemd.units.push(unit);
|
|
101
|
+
}
|
|
102
|
+
return JSON.stringify(config);
|
|
103
|
+
});
|
|
104
|
+
this.registerOutputs();
|
|
105
|
+
}
|
|
106
|
+
defaultConfig() {
|
|
107
|
+
return {
|
|
108
|
+
ignition: { version: "3.3.0" },
|
|
109
|
+
passwd: {
|
|
110
|
+
users: [],
|
|
111
|
+
},
|
|
112
|
+
storage: {
|
|
113
|
+
disks: [],
|
|
114
|
+
filesystems: [],
|
|
115
|
+
directories: [{ path: "/etc/rpm-opstree-install" }],
|
|
116
|
+
files: [
|
|
117
|
+
{
|
|
118
|
+
path: "/etc/sysctl.d/20-silence-audit.conf",
|
|
119
|
+
contents: this.storageContents("kernel.printk=4"),
|
|
120
|
+
mode: 0o644,
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
overwrite: true,
|
|
124
|
+
path: "/etc/sysctl.d/10-fs-inotify.conf",
|
|
125
|
+
contents: this.storageContents("fs.inotify.max_user_instances = 8192\nfs.inotify.max_user_watches = 524288"),
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
overwrite: true,
|
|
129
|
+
path: "/etc/sysctl.d/90-ipv4-ip-forward.conf",
|
|
130
|
+
contents: this.storageContents("net.ipv4.ip_forward = 1"),
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
overwrite: true,
|
|
134
|
+
path: "/etc/sysctl.d/90-ipv6-ip-forwarding.conf",
|
|
135
|
+
contents: this.storageContents("net.ipv6.conf.all.forwarding = 1"),
|
|
136
|
+
},
|
|
137
|
+
{ overwrite: false, path: "/etc/systemd/resolved.conf", append: [this.storageContents("LLMNR=no")] },
|
|
138
|
+
{
|
|
139
|
+
path: "/usr/local/sbin/rpm-opstree-install",
|
|
140
|
+
contents: this.storageContents(this.assetContent("rpm-opstree-install.sh")),
|
|
141
|
+
mode: 0o755,
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
},
|
|
145
|
+
systemd: {
|
|
146
|
+
units: [
|
|
147
|
+
{
|
|
148
|
+
name: "rpm-ostree-install.service",
|
|
149
|
+
enabled: true,
|
|
150
|
+
contents: this.assetContent("rpm-ostree-install.service"),
|
|
151
|
+
},
|
|
152
|
+
],
|
|
153
|
+
},
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
assetContent(filename) {
|
|
157
|
+
// eslint-disable-next-line security/detect-non-literal-fs-filename
|
|
158
|
+
return fs.readFileSync(path.join(__dirname, "assets", filename), "utf-8");
|
|
159
|
+
}
|
|
160
|
+
storageContents(data) {
|
|
161
|
+
return {
|
|
162
|
+
compression: "gzip",
|
|
163
|
+
source: `data:;base64,${compress.gzipSync(Buffer.from(data), { level: 9 }).toString("base64")}`,
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
exports.Config = Config;
|
|
168
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../lib/fcos/config.ts"],"names":[],"mappings":";;;AAAA,yCAAyC;AACzC,6BAA6B;AAC7B,yBAAyB;AACzB,iCAAiC;AACjC,sCAA8C;AAsJ9C,MAAa,MAAO,SAAQ,0BAAiB;IAC3B,cAAc,CAAwB;IAEtD;;;;;OAKG;IACH,YAAY,IAAY,EAAE,IAAgB,EAAE,IAAsC;QAChF,KAAK,CAAC,aAAa,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAEvC,IAAI,CAAC,cAAc,GAAG,MAAM;aACzB,GAAG,CAAC;YACH,IAAI,CAAC,aAAa,EAAE;YACpB,IAAI,CAAC,QAAQ;YACb,IAAI,CAAC,OAAO;YACZ,IAAI,CAAC,QAAQ;YACb,IAAI,CAAC,KAAK;YACV,IAAI,CAAC,KAAK;YACV,IAAI,CAAC,WAAW;YAChB,IAAI,CAAC,KAAK;YACV,IAAI,CAAC,YAAY;SAClB,CAAC;aACD,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,YAAY,CAAC,EAAE,EAAE;YAC/F,IAAI,QAAQ,KAAK,SAAS,EAAE;gBAC1B,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC;oBACxB,IAAI,EAAE,eAAe;oBACrB,QAAQ,EAAE,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC;oBACxC,IAAI,EAAE,KAAK;iBACZ,CAAC,CAAC;aACJ;YAED,KAAK,MAAM,MAAM,IAAI,OAAO,IAAI,EAAE,EAAE;gB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AAE,4BAA4B;wBAClC,OAAO,EAAE,IAAI;wBACb,QAAQ,EAAE,IAAI,CAAC,YAAY,CAAC,4BAA4B,CAAC;qBAC1D;iBACF;aACF;SACF,CAAC;IACJ,CAAC;IAEO,YAAY,CAAC,QAAgB;QACnC,mEAAmE;QACnE,OAAO,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,EAAE,QAAQ,CAAC,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAEO,eAAe,CAAC,IAAY;QAClC,OAAO;YACL,WAAW,EAAE,MAAM;YACnB,MAAM,EAAE,gBAAgB,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;SAChG,CAAC;IACJ,CAAC;CACF;AA/KD,wBA+KC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as tls from "@pulumi/tls";
|
|
3
|
+
import { ComponentResource } from "../common";
|
|
4
|
+
import { ConfigArgs } from "./config";
|
|
5
|
+
export interface HostUserArgs {
|
|
6
|
+
/**
|
|
7
|
+
* Username
|
|
8
|
+
*/
|
|
9
|
+
name: pulumi.Input<string>;
|
|
10
|
+
/**
|
|
11
|
+
* Optional: Groups
|
|
12
|
+
*/
|
|
13
|
+
groups?: pulumi.Input<pulumi.Input<string>[]>;
|
|
14
|
+
}
|
|
15
|
+
export interface HostArgs extends ConfigArgs {
|
|
16
|
+
/**
|
|
17
|
+
* Optional: Users with SSH access
|
|
18
|
+
*/
|
|
19
|
+
sshUsers?: pulumi.Input<pulumi.Input<HostUserArgs>[]>;
|
|
20
|
+
}
|
|
21
|
+
export declare class Host extends ComponentResource {
|
|
22
|
+
readonly sshPrivateKeys: pulumi.Output<{
|
|
23
|
+
[key: string]: tls.PrivateKey;
|
|
24
|
+
}>;
|
|
25
|
+
readonly ignitionConfig: pulumi.Output<string>;
|
|
26
|
+
/**
|
|
27
|
+
* Create a new FCOS host resource.
|
|
28
|
+
* @param name The name of the FCOS host resource.
|
|
29
|
+
* @param args A bag of arguments to control the FCOS host creation.
|
|
30
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
31
|
+
*/
|
|
32
|
+
constructor(name: string, args: HostArgs, opts?: pulumi.ComponentResourceOptions);
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=host.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../../../lib/fcos/host.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAY,UAAU,EAAU,MAAM,UAAU,CAAC;AAExD,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;CAC/C;AAED,MAAM,WAAW,QAAS,SAAQ,UAAU;IAC1C;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;CACvD;AAED,qBAAa,IAAK,SAAQ,iBAAiB;IACzC,SAAgB,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC,UAAU,CAAA;KAAE,CAAC,CAAC;IACjF,SAAgB,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAEtD;;;;;OAKG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,wBAAwB;CAyDjF"}
|
package/lib/fcos/host.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Host = void 0;
|
|
4
|
+
const pulumi = require("@pulumi/pulumi");
|
|
5
|
+
const tls = require("@pulumi/tls");
|
|
6
|
+
const common_1 = require("../common");
|
|
7
|
+
const config_1 = require("./config");
|
|
8
|
+
class Host extends common_1.ComponentResource {
|
|
9
|
+
sshPrivateKeys;
|
|
10
|
+
ignitionConfig;
|
|
11
|
+
/**
|
|
12
|
+
* Create a new FCOS host resource.
|
|
13
|
+
* @param name The name of the FCOS host resource.
|
|
14
|
+
* @param args A bag of arguments to control the FCOS host creation.
|
|
15
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
16
|
+
*/
|
|
17
|
+
constructor(name, args, opts) {
|
|
18
|
+
super("fcos:host", name, args, opts);
|
|
19
|
+
const emptyOpts = this.opts();
|
|
20
|
+
this.sshPrivateKeys = pulumi.all([args.sshUsers]).apply(([sshUsers]) => {
|
|
21
|
+
const sshPrivateKeys = {};
|
|
22
|
+
for (const sshUser of sshUsers || []) {
|
|
23
|
+
sshPrivateKeys[sshUser.name] = new tls.PrivateKey(`${name}-${sshUser.name}`, { algorithm: "ED25519" }, emptyOpts);
|
|
24
|
+
}
|
|
25
|
+
return sshPrivateKeys;
|
|
26
|
+
});
|
|
27
|
+
this.ignitionConfig = new config_1.Config(name, {
|
|
28
|
+
...args,
|
|
29
|
+
modules: pulumi.all([args.modules]).apply(([modules]) => (modules || []).concat("wireguard")),
|
|
30
|
+
packages: pulumi
|
|
31
|
+
.all([args.packages])
|
|
32
|
+
.apply(([packages]) => (packages || []).concat("netcat", "tcpdump", "iperf3", "htop", "golang-gvisor")),
|
|
33
|
+
users: pulumi
|
|
34
|
+
.all([args.users, args.sshUsers, this.sshPrivateKeys])
|
|
35
|
+
.apply(([users, sshUsers, sshPrivateKeys]) => {
|
|
36
|
+
const allUsers = [];
|
|
37
|
+
for (const user of users || []) {
|
|
38
|
+
allUsers.push(user);
|
|
39
|
+
}
|
|
40
|
+
for (const sshUser of sshUsers || []) {
|
|
41
|
+
allUsers.push({
|
|
42
|
+
name: sshUser.name,
|
|
43
|
+
groups: sshUser.groups,
|
|
44
|
+
sshAuthorizedKeys: sshPrivateKeys[sshUser.name].publicKeyOpenssh.apply((key) => [key.trim()]),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
return allUsers;
|
|
48
|
+
}),
|
|
49
|
+
systemdUnits: pulumi
|
|
50
|
+
.all([args.systemdUnits])
|
|
51
|
+
.apply(([systemdUnits]) => (systemdUnits || []).concat({ mask: true, name: "docker.service" }, { mask: true, name: "docker.socket" })),
|
|
52
|
+
}, emptyOpts).ignitionConfig;
|
|
53
|
+
this.registerOutputs();
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.Host = Host;
|
|
57
|
+
//# sourceMappingURL=host.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host.js","sourceRoot":"","sources":["../../../lib/fcos/host.ts"],"names":[],"mappings":";;;AAAA,yCAAyC;AACzC,mCAAmC;AACnC,sCAA8C;AAC9C,qCAAwD;AAoBxD,MAAa,IAAK,SAAQ,0BAAiB;IACzB,cAAc,CAAmD;IACjE,cAAc,CAAwB;IAEtD;;;;;OAKG;IACH,YAAY,IAAY,EAAE,IAAc,EAAE,IAAsC;QAC9E,KAAK,CAAC,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAErC,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;QAE9B,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAA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E;oBAC9B,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;iBACrB;gBAED,KAAK,MAAM,OAAO,IAAI,QAAQ,IAAI,EAAE,EAAE;oBACpC,QAAQ,CAAC,IAAI,CAAC;wBACZ,IAAI,EAAE,OAAO,CAAC,IAAI;wBAClB,MAAM,EAAE,OAAO,CAAC,MAAM;wBACtB,iBAAiB,EAAE,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;qBAC9F,CAAC,CAAC;iBACJ;gBAED,OAAO,QAAQ,CAAC;YAClB,CAAC,CAAC;YACJ,YAAY,EAAE,MAAM;iBACjB,GAAG,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;iBACxB,KAAK,CAAC,CAAC,CAAC,YAAY,CAAC,EAAE,EAAE,CACxB,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,gBAAgB,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAC3G;SACJ,EACD,SAAS,CACV,CAAC,cAAc,CAAC;QAEjB,IAAI,CAAC,eAAe,EAAE,CAAC;IACzB,CAAC;CACF;AAnED,oBAmEC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { PartitionArgs, DiskArgs, FilesystemArgs, UserArgs, FilesArgs, SystemdUnitArgs, IgnitionArgs, ConfigArgs, Config } from "./config";
|
|
2
|
+
import { HostUserArgs, HostArgs, Host } from "./host";
|
|
3
|
+
export { PartitionArgs, DiskArgs, FilesystemArgs, UserArgs, FilesArgs, SystemdUnitArgs, IgnitionArgs, ConfigArgs, Config, HostUserArgs, HostArgs, Host, };
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/fcos/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,QAAQ,EACR,cAAc,EACd,QAAQ,EACR,SAAS,EACT,eAAe,EACf,YAAY,EACZ,UAAU,EACV,MAAM,EACP,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEtD,OAAO,EACL,aAAa,EACb,QAAQ,EACR,cAAc,EACd,QAAQ,EACR,SAAS,EACT,eAAe,EACf,YAAY,EACZ,UAAU,EACV,MAAM,EACN,YAAY,EACZ,QAAQ,EACR,IAAI,GACL,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Host = exports.Config = void 0;
|
|
4
|
+
const config_1 = require("./config");
|
|
5
|
+
Object.defineProperty(exports, "Config", { enumerable: true, get: function () { return config_1.Config; } });
|
|
6
|
+
const host_1 = require("./host");
|
|
7
|
+
Object.defineProperty(exports, "Host", { enumerable: true, get: function () { return host_1.Host; } });
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/fcos/index.ts"],"names":[],"mappings":";;;AAAA,qCAUkB;AAYhB,uFAbA,eAAM,OAaA;AAXR,iCAAsD;AAcpD,qFAd+B,WAAI,OAc/B"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
client localhost {
|
|
2
|
+
ipaddr = 127.0.0.1
|
|
3
|
+
proto = *
|
|
4
|
+
secret = {{ localSecret }}
|
|
5
|
+
require_message_authenticator = no
|
|
6
|
+
nas_type = other
|
|
7
|
+
|
|
8
|
+
limit {
|
|
9
|
+
max_connections = 32
|
|
10
|
+
lifetime = 0
|
|
11
|
+
idle_timeout = 30
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
client localhost_ipv6 {
|
|
16
|
+
ipv6addr = ::1
|
|
17
|
+
secret = {{ localSecret }}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
client user_defined_client {
|
|
21
|
+
ipaddr = 0.0.0.0/0
|
|
22
|
+
secret = {{ clientSecret }}
|
|
23
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
server default {
|
|
2
|
+
listen {
|
|
3
|
+
type = auth
|
|
4
|
+
ipaddr = *
|
|
5
|
+
port = 0
|
|
6
|
+
|
|
7
|
+
limit {
|
|
8
|
+
max_connections = 32
|
|
9
|
+
lifetime = 0
|
|
10
|
+
idle_timeout = 30
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
listen {
|
|
15
|
+
type = acct
|
|
16
|
+
ipaddr = *
|
|
17
|
+
port = 0
|
|
18
|
+
|
|
19
|
+
limit {
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
authorize {
|
|
24
|
+
filter_username
|
|
25
|
+
preprocess
|
|
26
|
+
digest
|
|
27
|
+
suffix
|
|
28
|
+
|
|
29
|
+
eap {
|
|
30
|
+
ok = return
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
files
|
|
34
|
+
-sql
|
|
35
|
+
ldap
|
|
36
|
+
expiration
|
|
37
|
+
logintime
|
|
38
|
+
pap
|
|
39
|
+
|
|
40
|
+
if (User-Password) {
|
|
41
|
+
update control {
|
|
42
|
+
Auth-Type := ldap
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
authenticate {
|
|
48
|
+
Auth-Type PAP {
|
|
49
|
+
ldap
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
Auth-Type CHAP {
|
|
53
|
+
chap
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
Auth-Type MS-CHAP {
|
|
57
|
+
mschap
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
mschap
|
|
61
|
+
digest
|
|
62
|
+
ldap
|
|
63
|
+
eap
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
preacct {
|
|
67
|
+
preprocess
|
|
68
|
+
acct_unique
|
|
69
|
+
suffix
|
|
70
|
+
files
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
accounting {
|
|
74
|
+
detail
|
|
75
|
+
unix
|
|
76
|
+
-sql
|
|
77
|
+
exec
|
|
78
|
+
attr_filter.accounting_response
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
session {
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
post-auth {
|
|
85
|
+
if (session-state:User-Name && reply:User-Name && request:User-Name && (reply:User-Name == request:User-Name)) {
|
|
86
|
+
update reply {
|
|
87
|
+
&User-Name !* ANY
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
update {
|
|
92
|
+
&reply: += &session-state:
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
-sql
|
|
96
|
+
exec
|
|
97
|
+
remove_reply_message_if_eap
|
|
98
|
+
|
|
99
|
+
Post-Auth-Type REJECT {
|
|
100
|
+
-sql
|
|
101
|
+
attr_filter.access_reject
|
|
102
|
+
eap
|
|
103
|
+
remove_reply_message_if_eap
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
Post-Auth-Type Challenge {
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
pre-proxy {
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
post-proxy {
|
|
114
|
+
eap
|
|
115
|
+
}
|
|
116
|
+
}
|