You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
819 B
35 lines
819 B
{
|
|
"provider": "lxd",
|
|
"image": "debian/sid",
|
|
"bootstrap": {
|
|
"hostname": {
|
|
"exec": [
|
|
["sed", "-i", "s/<%= container %>/<%= hostname %>/", "/etc/hostname"],
|
|
["sed", "-i", "s/<%= container %>/<%= hostname %>/", "/etc/hosts"]
|
|
]
|
|
},
|
|
"packages": {
|
|
"exec": [
|
|
["apt-get", "install", "-y", "sudo"],
|
|
["apt-get", "install", "-y", "openssh-server"],
|
|
["apt-get", "install", "-y", "python"]
|
|
]
|
|
},
|
|
"sudo": {
|
|
"exec": [
|
|
[
|
|
"sed",
|
|
"-i",
|
|
"/vagrant/b;$a\\\nvagrant ALL=(ALL) NOPASSWD: ALL\\\nDefaults:vagrant !requiretty",
|
|
"/etc/sudoers"
|
|
]
|
|
]
|
|
},
|
|
"sshd_service": {
|
|
"exec": [
|
|
["systemctl", "enable", "ssh"],
|
|
["systemctl", "start", "ssh"]
|
|
]
|
|
}
|
|
}
|
|
}
|