Giter VIP home page Giter VIP logo

Comments (6)

till avatar till commented on August 31, 2024

Found an example in one of your other repositories 👍🏼 :
https://github.com/virt-lightning/cloud-init-bsd-testing/blob/master/user_data

I think my key was not in "expected" format:

users:
  - default
  - name: till
    sudo: ALL=(ALL) NOPASSWD:ALL
    ssh_authorized_keys:
-     - ssh-rsa hash==
+     - ssh-rsa hash== till@local

And from there, I also answered my first question: I found it by including default in the list of users (which I guess is another cloud-init oddity) that it would create a freebsd user and showed a comment/description from OpenStack.

Most openstack images create a user when a key is injected, so for example ubuntu or centos. Not entirely sure what Debian does, I haven't booted that in a long time.

Would you be open to changing that? I can probably work up a PR if you let me know where.

from freebsd-cloud-images.

till avatar till commented on August 31, 2024

Most openstack images create a user when a key is injected, so for example ubuntu or centos. Not entirely sure what Debian does, I haven't booted that in a long time.

Would you be open to changing that? I can probably work up a PR if you let me know where.

Just found /etc/cloud/cloud.cfg and it already does this, but I ruined it by trying cloud-config first. :)

from freebsd-cloud-images.

till avatar till commented on August 31, 2024

Could we add this to the readme? Maybe without the Ansible.

- name: Export the images
      command: 'qemu-img convert -f raw -O qcow2 -c images/basehost/builder/final.raw /var/lib/virt-lightning/pool/upstream/{{ final_name }}_exp.qcow2'
      args:
        creates: '/var/lib/virt-lightning/pool/upstream/{{ final_name }}_exp.qcow2

from freebsd-cloud-images.

goneri avatar goneri commented on August 31, 2024

Sorry for being slow on this. This is a good idea. Could you open up a PR for that?

from freebsd-cloud-images.

till avatar till commented on August 31, 2024

You mean the bit about building an image?

from freebsd-cloud-images.

goneri avatar goneri commented on August 31, 2024

Never mind, I misunderstood your previous comment. We don't really need to mention this step since the images are already compressed (the -c).

from freebsd-cloud-images.

Related Issues (3)

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.