File: Vagrantfile

package info (click to toggle)
pyinfra 0.2.2%2Bgit20161227.ec708ef-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 11,804 kB
  • ctags: 677
  • sloc: python: 5,944; sh: 71; makefile: 11
file content (62 lines) | stat: -rw-r--r-- 1,826 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# pyinfra test VM's

Vagrant.configure('2') do |config|
    config.ssh.insert_key = false
    config.ssh.private_key_path = 'files/insecure_private_key'

    # Disable /vagrant synced folder
    config.vm.synced_folder '.', '/vagrant', disabled: true

    # Give the boxes less memory
    config.vm.provider 'virtualbox' do |v|
        v.memory = 256
    end

    # Disable updating/installing Virtualbox guest additions with vagrant-vbguest
    if Vagrant.has_plugin?('vagrant-vbguest')
        config.vbguest.auto_update = false
    end

    # Begin pyinfra test VM's:
    #

    config.vm.define :ubuntu14 do |ubuntu|
        ubuntu.vm.box = 'ubuntu/trusty64'
        ubuntu.vm.network :private_network, ip: '20.20.20.21'
    end

    config.vm.define :centos6 do |centos|
        centos.vm.box = 'centos/6'
        centos.vm.network :private_network, ip: '20.20.20.22'
    end

    config.vm.define :centos7 do |centos|
        centos.vm.box = 'centos/7'
        centos.vm.network :private_network, ip: '20.20.20.23'
    end

    config.vm.define :debian7 do |debian|
        debian.vm.box = 'debian/wheezy64'
        debian.vm.network :private_network, ip: '20.20.20.24'
    end

    config.vm.define :openbsd58 do |openbsd|
        openbsd.vm.box = 'twingly/openbsd-5.8-amd64'
        openbsd.vm.network :private_network, ip: '20.20.20.25'
    end

    config.vm.define :ubuntu15 do |ubuntu|
        ubuntu.vm.box = 'ubuntu/wily64'
        ubuntu.vm.network :private_network, ip: '20.20.20.26'
    end

    config.vm.define :debian8 do |debian|
        debian.vm.box = 'debian/jessie64'
        debian.vm.network :private_network, ip: '20.20.20.27'
    end

    config.vm.define :fedora23 do |fedora|
        fedora.vm.box = 'boxcutter/fedora23'
        fedora.vm.network :private_network, ip: '20.20.20.28'
    end
end