Coder Social home page Coder Social logo

Comments (8)

click0 avatar click0 commented on August 12, 2024 1

There are three roles here.
After pushing my roles to the github, I will probably do your first part.

from depenguin-run.

click0 avatar click0 commented on August 12, 2024 1

Then I'm looking into building rescue ISOs on various Linux distributions.

And if you need my help with Ansible, you can tag me.

from depenguin-run.

click0 avatar click0 commented on August 12, 2024

There are three roles here. After pushing my roles to the github, I will probably do your first part.

I wrote the role.
Linux. Running QEMU with (or without) ISO and connecting block devices (HDD/SSD) of the host machine.
Using this role, you can run ISO with installers of various operating systems (including those with a graphical interface) and various service disks.

For your project, you need to add a role that first builds MfsBSD with new options, ssh keys, and archives of FreeBSD itself.

But I see the need to first create roles to create a Linux rescue ISO (based on different Linux distributions with different package managers).

from depenguin-run.

bretton avatar bretton commented on August 12, 2024

awesome stuff, will have another look when I have some capacity.

I'll probably try a simpler version to gain some experience with ansible, which would connect to IP in rescue mode, download depenguin.me script and run it, then connect again to qemu instance, and run the configured unattended bsdinstall script, then reboot.

nothing needed to configure for mfsbsd or downloading ISOs, it's all configured already.

from depenguin-run.

click0 avatar click0 commented on August 12, 2024

Your script mfsbsd-13.1-script/depenguinme.sh also downloads mfsbsd image:
https://github.com/depenguin-me/mfsbsd-13.1-script/blob/ae8e1d3433805bf63a867475b7f59cce83237e74/depenguinme.sh#L232-L233

You are also manually trying to find block devices.
https://github.com/depenguin-me/mfsbsd-13.1-script/blob/ae8e1d3433805bf63a867475b7f59cce83237e74/depenguinme.sh#L235-L244

You can use bsdinstall, but this is a manual mode that cannot be automated...

Leave the shell script mfsbsd-13.1-script/depenguinme.sh as is. Perhaps obvious issues will have to be fixed.
Ansible roles will live their own separate lives.
Self-written scripts for installing FreeBSD from LiveCD FreeBSD will also live their own life.
Nothing prevents the authors from changing my Ansible role (click0/ansible-freebsd-install-on-zfs-lite) to fit their script options.

from depenguin-run.

bretton avatar bretton commented on August 12, 2024

Your script mfsbsd-13.1-script/depenguinme.sh also downloads mfsbsd image:

yup so there's no need for ansible to do the same, just to run the script.

You are also manually trying to find block devices.

this is because a cdrom might exist on sdb in the rescue system

You can use bsdinstall, but this is a manual mode that cannot be automated...

this isn't accurate, see unattended bsdinstall
https://depenguin.me/bsdinstall.html

in this case ansible would simply write values to the depenguin_settings.sh file and run depenguin_bsdinstall.sh. At least that's how I'd set it up. I wouldn't be locked into ansible, I could use same script with saltstack too.

from depenguin-run.

bretton avatar bretton commented on August 12, 2024

I have a working ansible setup here: https://github.com/depenguin-me/depenguinme-ansible

It uses the depenguin.me mfsbsd instance. Tested working with AX41, two spindle disks.

Still needs a bit of massaging to get post-install connect and updates to work.

from depenguin-run.

bretton avatar bretton commented on August 12, 2024

Closing this, continue in depenguinme-ansible repo

from depenguin-run.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.