A vagrant provider for lxd container.
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.
 
 

34 lines
809 B

{
"provider": "lxd",
"bootstrap": {
"hostname": {
"exec": [
["sed", "-i", "s/-lxc //", "/etc/init.d/hostname"],
["sed", "-i", "s/LXC_NAME/<%= hostname %>/", "/etc/conf.d/hostname"],
["sed", "-i", "s/<%= container %>/<%= hostname %>/", "/etc/hostname"],
["sed", "-i", "s/<%= container %>/<%= hostname %>/", "/etc/hosts"]
]
},
"packages": {
"exec": [
["emerge", "--update", "sudo", "dhcpcd"]
]
},
"sudo": {
"exec": [
[
"sed",
"-i",
"/vagrant/b;$a\\\nvagrant ALL=(ALL) NOPASSWD: ALL",
"/etc/sudoers"
]
]
},
"sshd_service": {
"exec": [
["rc-update", "add", "sshd", "default"],
["/etc/init.d/sshd", "start"]
]
}
}
}