vagrant mageia8 image

This forum is dedicated to new ideas, suggestions and proposals.

vagrant mageia8 image

Postby defwxyz » Jun 22nd, '22, 12:33

Hello,

I've created a minimal image of mageia8 for virtualbox provider.
You can try it with the following Vagrantfile:

Code: Select all
Vagrant.configure("2") do |config|
  config.vm.box = "defwxyz/mageia8"
end


using these commands :
to construct the vm:
Code: Select all
vagrant up

and then to connect inside the vm:
Code: Select all
vagrant ssh





Here is another way to use the image:
You can use ansible_local provisioning with the following Vagrantfile and playbook.yml :

Code: Select all
$ cat Vagrantfile
Vagrant.configure("2") do |config|
  config.vm.box = "defwxyz/mageia8"
  config.vm.provision "shell", inline: "urpmi --auto ansible"
  config.vm.provision "ansible_local" do |ansible|
    ansible.playbook = "playbook.yml"
  end
end

$ cat playbook.yml
- hosts: all
  connection: local
  tasks:
    - name: "display facts"
      debug:
        var: ansible_facts
Last edited by isadora on Jun 22nd, '22, 13:51, edited 1 time in total.
Reason: Topic moved into appropriate sub-forum
defwxyz
 
Posts: 2
Joined: Jun 22nd, '22, 10:09

Re: vagrant mageia8 image

Postby doktor5000 » Jun 22nd, '22, 19:14

Thanks for sharing! :)
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18040
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Ideas and suggestions

Who is online

Users browsing this forum: No registered users and 1 guest

cron