commit 7d69ac447a5d9e8e338ebfab12ee468bc573ec64 Author: jeangab Date: Wed Aug 28 16:16:36 2024 -0400 Try out bifrost and see if we want to use it as bare metal provisionner diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..e5e8283 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +bootx64.efi filter=lfs diff=lfs merge=lfs -text +grubx64.efi filter=lfs diff=lfs merge=lfs -text +initrd filter=lfs diff=lfs merge=lfs -text +linux filter=lfs diff=lfs merge=lfs -text diff --git a/bifrost-docker/Dockerfile b/bifrost-docker/Dockerfile new file mode 100644 index 0000000..b450533 --- /dev/null +++ b/bifrost-docker/Dockerfile @@ -0,0 +1,23 @@ +FROM ubuntu:22.04 + +ENV DEBIAN_FRONTEND=noninteractive + +# ansible does not work without it +ENV LC_ALL=C.UTF-8 + +RUN apt-get update && apt-get install -y \ + git \ + python3 \ + sudo + +RUN git clone https://opendev.org/openstack/bifrost.git /opt/bifrost + +WORKDIR /opt/bifrost + +RUN ./bifrost-cli install\ + --network-interface wlp0s20f3\ + --dhcp-pool 192.168.12.180-192.168.12.200 + +RUN pip3 install -r requirements.txt + +CMD ["/bin/bash"] diff --git a/bifrost-docker/docker-compose.yml b/bifrost-docker/docker-compose.yml new file mode 100644 index 0000000..ebfaca5 --- /dev/null +++ b/bifrost-docker/docker-compose.yml @@ -0,0 +1,9 @@ +version: '3' +services: + bifrost: + build: . + volumes: + - ./bifrost_data:/opt/bifrost/data + network_mode: "host" + privileged: true + tty: true