Browse Source

Move all example boxes in a common directory

master
Georg Hopp 9 years ago
parent
commit
ce310af3d5
  1. 18
      example_boxes/README.md
  2. 17
      example_boxes/centos.json
  3. BIN
      example_boxes/centos_001_lxd.box
  4. 4
      example_boxes/centos_box/README.md
  5. 33
      example_boxes/centos_box/metadata.json
  6. 0
      example_boxes/centos_box/vagrant.pub
  7. 0
      example_boxes/gentoo.json
  8. BIN
      example_boxes/gentoo_001_lxd.box
  9. 4
      example_boxes/gentoo_box/README.md
  10. 2
      example_boxes/gentoo_box/metadata.json
  11. 0
      example_boxes/gentoo_box/vagrant.pub
  12. 4
      example_boxes/sid.json
  13. BIN
      example_boxes/sid_001_lxd.box
  14. 14
      example_boxes/sid_box/README.md
  15. 2
      example_boxes/sid_box/metadata.json
  16. 1
      example_boxes/sid_box/vagrant.pub
  17. BIN
      gentoo_001_lxd.box
  18. BIN
      sid_001_lxd.box

18
example_boxes/README.md

@ -0,0 +1,18 @@
# Vagrant LXD Example Boxe
## Vagrant box format
Vagrant providers each require a custom provider-specific box format.
Here are some examples of boxes for the `lxd` provider.
## The `lxd` box format
The `lxd` provider right now just uses the default lxd images provided
by the lxd images: remote. Upon start these will be provisioned with an
vagrant ssh user and the unsafe common pubkey of vagrant and
sshd will be enabled. All the necessary commands are defined in the
metadata.json file.
## Bootstraped provisioners
The boxes here are prepared to run with the ansible provisioner.

17
example_boxes/centos.json

@ -0,0 +1,17 @@
{
"name": "centos/7",
"description": "The latest centos/7 LXD image.",
"versions": [
{
"version": "0.0.1",
"providers": [
{
"name": "lxd",
"url": "file:///home/hopp/projects/vagrant/test/centos_001_lxd.box",
"checksum_type": "sha1",
"checksum": "52c6717974bc76ecb9591e55d30baf90be9c68e4"
}
]
}
]
}

BIN
example_boxes/centos_001_lxd.box

4
sid_box/README.md → example_boxes/centos_box/README.md

@ -10,7 +10,5 @@ $ tar cvzf lxd.box ./metadata.json ./vagrant.pub
The `lxd` provider right now just uses the default lxd images provided
by the lxd images: remote. Upon start these will be provisioned with an
vagrant ssh user and and the unsafe common pubkey of vagrant and
vagrant ssh user and the unsafe common pubkey of vagrant and
sshd will be enabled.
Well, at least thats the idea for now.

33
example_boxes/centos_box/metadata.json

@ -0,0 +1,33 @@
{
"provider": "lxd",
"bootstrap": {
"hostname": {
"exec": [
["sed", "-i", "s/<%= container %>/<%= hostname %>/", "/etc/hostname"],
["sed", "-i", "s/<%= container %>/<%= hostname %>/", "/etc/hosts"]
]
},
"packages": {
"exec": [
["yum", "install", "-y", "sudo"],
["yum", "install", "-y", "openssh-server"]
]
},
"sudo": {
"exec": [
[
"sed",
"-i",
"/vagrant/b;$a\\\nvagrant ALL=(ALL) NOPASSWD: ALL\\\nDefaults:vagrant !requiretty",
"/etc/sudoers"
]
]
},
"sshd_service": {
"exec": [
["systemctl", "enable", "sshd"],
["systemctl", "start", "sshd"]
]
}
}
}

0
gentoo_box/vagrant.pub → example_boxes/centos_box/vagrant.pub

0
gentoo.json → example_boxes/gentoo.json

BIN
example_boxes/gentoo_001_lxd.box

4
gentoo_box/README.md → example_boxes/gentoo_box/README.md

@ -10,7 +10,5 @@ $ tar cvzf lxd.box ./metadata.json ./vagrant.pub
The `lxd` provider right now just uses the default lxd images provided
by the lxd images: remote. Upon start these will be provisioned with an
vagrant ssh user and and the unsafe common pubkey of vagrant and
vagrant ssh user and the unsafe common pubkey of vagrant and
sshd will be enabled.
Well, at least thats the idea for now.

2
gentoo_box/metadata.json → example_boxes/gentoo_box/metadata.json

@ -19,7 +19,7 @@
[
"sed",
"-i",
"/vagrant/b;$a\\\nvagrant ALL=(ALL) NOPASSWD: ALL",
"/vagrant/b;$a\\\nvagrant ALL=(ALL) NOPASSWD: ALL\\\nDefaults:vagrant !requiretty",
"/etc/sudoers"
]
]

0
sid_box/vagrant.pub → example_boxes/gentoo_box/vagrant.pub

4
sid.json → example_boxes/sid.json

@ -1,5 +1,5 @@
{
"name": "lxd/debian/sid",
"name": "debian/sid",
"description": "The latest debian/sid LXD image.",
"versions": [
{
@ -7,7 +7,7 @@
"providers": [
{
"name": "lxd",
"url": "file:///home/hopp/projects/vagrant/vagrant-lxd/sid_001_lxd.box",
"url": "file:///home/hopp/projects/vagrant/test/sid_001_lxd.box",
"checksum_type": "sha1",
"checksum": "21d7376327acdb7f36aa25ed89039248c6562415"
}

BIN
example_boxes/sid_001_lxd.box

14
example_boxes/sid_box/README.md

@ -0,0 +1,14 @@
# Vagrant LXD Example Box
Vagrant providers each require a custom provider-specific box format.
This folder shows the example contents of a box for the `lxd` provider.
To turn this into a box:
```
$ tar cvzf lxd.box ./metadata.json ./vagrant.pub
```
The `lxd` provider right now just uses the default lxd images provided
by the lxd images: remote. Upon start these will be provisioned with an
vagrant ssh user and the unsafe common pubkey of vagrant and
sshd will be enabled.

2
sid_box/metadata.json → example_boxes/sid_box/metadata.json

@ -19,7 +19,7 @@
[
"sed",
"-i",
"/vagrant/b;$a\\\nvagrant ALL=(ALL) NOPASSWD: ALL",
"/vagrant/b;$a\\\nvagrant ALL=(ALL) NOPASSWD: ALL\\\nDefaults:vagrant !requiretty",
"/etc/sudoers"
]
]

1
example_boxes/sid_box/vagrant.pub

@ -0,0 +1 @@
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ== vagrant insecure public key

BIN
gentoo_001_lxd.box

BIN
sid_001_lxd.box

Loading…
Cancel
Save