[Comm] Поддержка дистрибутивов ALT в Vagrant 2.0.0

Evgeny Sinelnikov sin на altlinux.org
Чт Сен 7 20:46:01 MSK 2017


Здравствуйте,

хочу поделиться радостным, может быть не только для меня одного, событием.
Начиная с версии 2.0.0 в Vagrant добавлена поддержка etcnet и
определение дистрибутивов ALT Linux.

IMPROVEMENTS:
guests/alt: Add support for ALT Linux [GH-8746]

Выглядит это так:

[sin на tor basealt-workstation]$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'mastersin/basealt-p8-workstation'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'mastersin/basealt-p8-workstation' is up to date...
==> default: There was a problem while downloading the metadata for your box
==> default: to check for updates. This is not an error, since it is usually due
==> default: to temporary network problems. This is just a warning. The problem
==> default: encountered was:
==> default:
==> default: Couldn't resolve host 'atlas.hashicorp.com'
==> default:
==> default: If you want to check for box updates, verify your network
connection
==> default: is valid and try again.
==> default: Setting the name of the VM:
basealt-workstation_default_1504805099535_34096
==> default: Clearing any previously set network interfaces...
==> default: Available bridged network interfaces:
1) eth0
2) docker0
==> default: When choosing an interface, it is usually the one that is
==> default: being used to connect to the internet.
    default: Which interface should the network bridge to? 1
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
    default: Adapter 3: bridged
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default:
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default:
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
==> default: Mounting shared folders...
    default: /vagrant => /home/sin/vagrant/basealt-workstation

[sin на tor basealt-workstation]$ grep -v -e '^\s*#' -e '^$' Vagrantfile
Vagrant.configure("2") do |config|
  config.vm.box = "mastersin/basealt-p8-workstation"
  config.vm.network "private_network", ip: "192.168.33.10", netmask:
"255.255.255.224"
  config.vm.network "public_network", ip: "192.168.9.155", gateway:
"192.168.9.1"
  config.vm.hostname = "wsy.darkmastersin.net"
end

[sin на tor basealt-workstation]$ ping -c 2 192.168.9.155
PING 192.168.9.155 (192.168.9.155) 56(84) bytes of data.
64 bytes from 192.168.9.155: icmp_req=1 ttl=64 time=0.246 ms
64 bytes from 192.168.9.155: icmp_req=2 ttl=64 time=0.155 ms

--- 192.168.9.155 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 0.155/0.200/0.246/0.047 ms

[sin на tor basealt-workstation]$ vagrant ssh
Last login: Sat Jul  8 12:54:49 2017 from localhost
[vagrant на wsy ~]$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP group default qlen 1000
    link/ether 08:00:27:3e:5d:b0 brd ff:ff:ff:ff:ff:ff
    inet 10.0.2.15/24 brd 10.0.2.255 scope global dynamic eth0
       valid_lft 86216sec preferred_lft 86216sec
    inet6 fe80::a00:27ff:fe3e:5db0/64 scope link
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP group default qlen 1000
    link/ether 08:00:27:0a:11:d4 brd ff:ff:ff:ff:ff:ff
    inet 192.168.33.10/27 brd 192.168.33.31 scope global eth1
       valid_lft forever preferred_lft forever
    inet6 fe80::a00:27ff:fe0a:11d4/64 scope link
       valid_lft forever preferred_lft forever
4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP group default qlen 1000
    link/ether 08:00:27:11:1f:e5 brd ff:ff:ff:ff:ff:ff
    inet 192.168.9.155/24 brd 192.168.9.255 scope global eth2
       valid_lft forever preferred_lft forever
    inet6 fe80::a00:27ff:fe11:1fe5/64 scope link
       valid_lft forever preferred_lft forever

Устанавливается из rpm для CentOS:
https://www.vagrantup.com/downloads.html

[sin на tor basealt-workstation]$ rpm -qi vagrant
Name        : vagrant                      Relocations: /
Version     : 2.0.0                             Vendor:
root на localhost.localdomain
Release     : 1                             Build Date: Чт 07 сен 2017 16:10:44
Install date: Чт 07 сен 2017 20:22:04      Build Host: localhost.localdomain
Group       : default                       Source RPM: vagrant-2.0.0-1.src.rpm
Size        : 199156046                        License: MIT
Packager    : HashiCorp <support на hashicorp.com>
URL         : https://www.vagrantup.com
Summary     : Vagrant is a tool for building and distributing
development environments.
Description :
Vagrant is a tool for building and distributing development environments.


У меня в облаке vagrant сейчас доступно три вида образов для virtualbox:
https://app.vagrantup.com/mastersin/
 - mastersin/basealt-p8-workstation
 - mastersin/basealt-p8-server-systemd
 - mastersin/basealt-p8-server


---------- Forwarded message ----------
From: Chris Roberts <croberts на hashicorp.com>
Date: 2017-09-07 20:49 GMT+04:00
Subject: [vagrant-up] [ANN] Vagrant 2.0.0
To: Vagrant <vagrant-up на googlegroups.com>


Hi everyone,

I'm happy to announce the release of Vagrant 2.0.0. This release
includes a number of bug fixes and improvements. The Ansible
provisioner updates are an important improvement to take note of if
you are a user of the Ansible provisioner. A new compatibility_mode
option has been introduced and may be required to retain the behavior
of previous versions of Vagrant. You can read more about this new
option, as well as the full list of changes in this release, in the
CHANGELOG:

https://github.com/mitchellh/vagrant/blob/v2.0.0/CHANGELOG.md

More information about the 2.0 release can be found here:

https://www.hashicorp.com/blog/hashicorp-vagrant-2-0/

Cheers!
- Chris Roberts

--
This mailing list is governed under the HashiCorp Community Guidelines
- https://www.hashicorp.com/community-guidelines.html. Behavior in
violation of those guidelines may result in your removal from this
mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google
Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to vagrant-up+unsubscribe на googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/vagrant-up/10955751-92f0-432c-b1fd-cee0e073edcd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


-- 
Sin (Sinelnikov Evgeny)


Подробная информация о списке рассылки community