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.
 
 

23 lines
582 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"]
]
},
"sudo": {
"exec": [
["echo", "vagrant ALL=(ALL) NOPASSWD: ALL", ">>/etc/sudoers"]
]
}
}
}