-
Notifications
You must be signed in to change notification settings - Fork 0
/
vagrant.json
105 lines (105 loc) · 3 KB
/
vagrant.json
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{
"builders":[
{
"type":"virtualbox-iso",
"boot_command":[
"<down>",
"<enter>",
"<enter>",
"<wait10>",
"<wait10>",
"<wait10>",
"<wait10>",
"passwd {{user `root_username`}}",
"<enter>",
"<wait>",
"{{user `root_password`}}",
"<enter>",
"<wait>",
"{{user `root_password`}}",
"<enter>",
"<wait10>",
"emerge --sync && echo 3 | emerge openssh",
"<enter>",
"<wait10>",
"<wait10>",
"<wait10>",
"<wait10>",
"<wait10>",
"<wait10>",
"<wait>",
"sed -i -e 's/UsePAM yes/UsePAM no/g' /etc/ssh/sshd_config",
"<enter>",
"echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config",
"<enter>",
"sed -i -e 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config",
"<enter>",
"systemctl start sshd",
"<enter>",
"<wait10>",
"<wait10>"
],
"boot_wait":"5s",
"disk_size": "{{user `disk_size`}}",
"guest_additions_mode":"disable",
"guest_os_type":"Gentoo_64",
"headless":true,
"iso_url":"http://www.pentoo.ch/isos/Pentoo_amd64_default/{{user `build_type`}}/_{{user `build`}}_{{user `arch`}}.iso",
#http://www.pentoo.ch/isos/Pentoo_amd64_default/
"iso_checksum_type":"none",
"shutdown_command":"shutdown -hP now",
"ssh_password":"{{user `root_password`}}",
"ssh_username":"{{user `root_username`}}",
"ssh_wait_timeout":"20s",
"vm_name":"Sabayon VirtualBox SpinBase"
}
],
"description":"Sabayon SpinBase",
"post-processors":[
[
{
"output":"Sabayon_Linux_{{user `build`}}_{{user `arch`}}_{{user `flavor`}}.box",
"type":"vagrant"
},
{
"type":"atlas",
"token":"{{user `atlas_token`}}",
"artifact":"Sabayon/spinbase-amd64",
"artifact_type":"vagrant.box",
"metadata":{
"created_at":"{{timestamp}}",
"provider":"virtualbox"
}
}
]
],
"provisioners":[
{
"destination":"/tmp",
"source":"scripts",
"type":"file"
},
{
"environment_vars":[
"SCRIPTS=/tmp",
"VAGRANT={{user `vagrant`}}",
"GUEST_ADDITIONS={{user `guest_additions`}}"
],
"scripts":[
"provision.sh"
],
"type":"shell"
}
],
"variables":{
"atlas_token":"{{env `ATLAS_TOKEN`}}",
"root_username":"root",
"root_password":"root",
"build":"DAILY",
"build_type":"daily",
"arch":"amd64",
"disk_size":"60000",
"vagrant":"vagrant",
"guest_additions" : "virtualbox",
}
}