From ce310af3d553f5e12a6deb11069767e79cf52b68 Mon Sep 17 00:00:00 2001 From: Georg Hopp Date: Tue, 16 May 2017 08:45:29 +0200 Subject: [PATCH] Move all example boxes in a common directory --- example_boxes/README.md | 18 ++++++++++ example_boxes/centos.json | 17 +++++++++ example_boxes/centos_001_lxd.box | Bin 0 -> 806 bytes .../centos_box}/README.md | 4 +-- example_boxes/centos_box/metadata.json | 33 ++++++++++++++++++ .../centos_box}/vagrant.pub | 0 gentoo.json => example_boxes/gentoo.json | 0 example_boxes/gentoo_001_lxd.box | Bin 0 -> 826 bytes .../gentoo_box}/README.md | 4 +-- .../gentoo_box}/metadata.json | 2 +- .../gentoo_box}/vagrant.pub | 0 sid.json => example_boxes/sid.json | 4 +-- example_boxes/sid_001_lxd.box | Bin 0 -> 813 bytes example_boxes/sid_box/README.md | 14 ++++++++ .../sid_box}/metadata.json | 2 +- example_boxes/sid_box/vagrant.pub | 1 + gentoo_001_lxd.box | Bin 807 -> 0 bytes sid_001_lxd.box | Bin 796 -> 0 bytes 18 files changed, 89 insertions(+), 10 deletions(-) create mode 100644 example_boxes/README.md create mode 100644 example_boxes/centos.json create mode 100644 example_boxes/centos_001_lxd.box rename {sid_box => example_boxes/centos_box}/README.md (79%) create mode 100644 example_boxes/centos_box/metadata.json rename {gentoo_box => example_boxes/centos_box}/vagrant.pub (100%) rename gentoo.json => example_boxes/gentoo.json (100%) create mode 100644 example_boxes/gentoo_001_lxd.box rename {gentoo_box => example_boxes/gentoo_box}/README.md (79%) rename {gentoo_box => example_boxes/gentoo_box}/metadata.json (88%) rename {sid_box => example_boxes/gentoo_box}/vagrant.pub (100%) rename sid.json => example_boxes/sid.json (72%) create mode 100644 example_boxes/sid_001_lxd.box create mode 100644 example_boxes/sid_box/README.md rename {sid_box => example_boxes/sid_box}/metadata.json (88%) create mode 100644 example_boxes/sid_box/vagrant.pub delete mode 100644 gentoo_001_lxd.box delete mode 100644 sid_001_lxd.box diff --git a/example_boxes/README.md b/example_boxes/README.md new file mode 100644 index 0000000..11cb5a3 --- /dev/null +++ b/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. diff --git a/example_boxes/centos.json b/example_boxes/centos.json new file mode 100644 index 0000000..3ee6def --- /dev/null +++ b/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" + } + ] + } + ] +} diff --git a/example_boxes/centos_001_lxd.box b/example_boxes/centos_001_lxd.box new file mode 100644 index 0000000000000000000000000000000000000000..014a4360ff0d657f092923b33a656812369287e3 GIT binary patch literal 806 zcmV+>1KIo^iwFRkpBh;J1MQXjZ`(Ey$MbXk3Qkyo4Q^veR%JU|1}L^=D}KqZ$VyWT zG{so5o|b6U($N2Xq?34Qur?U5>;doti1Zx~Ums88>8u)J0v$-;*(Qsllh;6`sEWd7 zss3JkIy0miU6X2(sMcgzR-_YAlGVC;0>oFz<{7(;z!ZR!wHqhNH{xDe|DW>PDF8x} z#<}O!&CwY?>shU z)t}#702D_AdJ#^+n_mu&M=55ruqq~~der~;_V1F*gpUtW_w(m_Wg&schija@u$5vL zGC41zrz8jtX%vSvc24|dmS2mE6C7ok`!2(2PAmN9*&O7)naS}Ni^lh_=;&ajd1_a4 zxK3e2s;i&Ahqt%4(Sr@N!QkQtI{XMmV^f>WtoAwcv5+>tgS&ua=Z~@9rFgsZQcOtk zOr6!1WsK8II4*o;W0~vx%C_#I7f(%*5ga0Ns2z^rD!_+IQ-x>e;b|bdz2uL$FOxWB z&*#&B`;PsWIeR=SXUT5$O8@af|EGOlI`n@%9N}6R_5lW)NtU%i5@f zEvZ0q=U^J2=s4+U>PT;Rw5jEj>qM5Vwm^i/<%= 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"] + ] + } + } +} diff --git a/gentoo_box/vagrant.pub b/example_boxes/centos_box/vagrant.pub similarity index 100% rename from gentoo_box/vagrant.pub rename to example_boxes/centos_box/vagrant.pub diff --git a/gentoo.json b/example_boxes/gentoo.json similarity index 100% rename from gentoo.json rename to example_boxes/gentoo.json diff --git a/example_boxes/gentoo_001_lxd.box b/example_boxes/gentoo_001_lxd.box new file mode 100644 index 0000000000000000000000000000000000000000..0a09b261140477a06d5be67bc648c1cab229a785 GIT binary patch literal 826 zcmV-A1I7FwiwFS6pBh;J1MQT3Z<{(4hx2zog@^8>dzCdnUP#idSE30dH1BUE={il0 zae+X9fWrdQzWZ>}WWANTUR|kon&d~q<{XZHHpliU@M}z<0SPRuBHzos2115ZF4JDD zR)ohrMXZQoPArLnR1u|0wVD&eVpS~Vfbc4-dBQd#Fa#iHT7D4xB<`i}zbRkO0N{eq zk8J~o+y&s=ox#1M&ZX~@h=ef6yfi9vS$;%3xW*?>=EFOTGW+9$4Zue(!kGl%&TZO8 z{JFbBfaj^fV}f|wvq{0=Phy|mJwLWPZ+z~{J%#`9_7WUNfVY4DP(!|V|8L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gs#)% z7&j0IP;gja+IJsL+uYttUGJORX;=P9*qp=h-{#mpHEx42Z~z9ibsB}0W5Acll0g&gM<9;Q=7}cDghzpmVf>MZf|tflsmmoc%tL;rryETd)oAKlk$KQG5&}r2s!q z;t6@apZw~JdL(L(yIG63%OlP4O8w{M`hESc3w2p)h@}3PK3f0(3(BK^nxueHN-pZd z0KD>%-L+9;)hqO` z)zBLTxT|WtqSLHqf-c&Za9x3qWU11T|i%3nEFf^6k5}{oa$QC>NI<|&ghEQ6=x@n8YcF3RzEz;MRzdl z^2ON9=Lp79T(o81%M{(sZ+l*#O=MxxHL6{6F%}2bwWZlhrMu2O`!ZBEZL>Zc%^ZF` zxK_iCzno_~cd)szr;a-Fg=DhYR40-#DzteQ^zM2cqi-y#nr`-?){@<13l{~na$~74 z)s@<6j(S0OWw(oo({HYWyG;`#cMe;yWx3KFa^E^@c*B lP$(1%g+ifFC=?2XLZMJ76bgkxp-?Et;Rm%9aqa*p006%OnRWmG diff --git a/sid_001_lxd.box b/sid_001_lxd.box deleted file mode 100644 index d1617f4cb4dbd91777d00015b2e46039fa05f5e6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 796 zcmV+%1LOQ3iwFSEPY_uE1MQXjZ=*&K$Nh8uiWTZft$c}j1>4uA60wa<{KBtbayeD& zWzS$R5Lk1D>i+lcI*FBwbV(~UeMtL}yvuwU#?~4ev3c_QwYsfR93kX$T;k`fSW< zzr4EuD2@p9Bb0$1D9`)D-E^{}oBmRQfHT{hw;Q|Nj%PmXu}?=#)!kRKk{2Ah~le%`bGE zbaZWGG<@2W^2v1~%XT}M2SrNqq={`?(;LopS`A8dzUex+zV4OgmulpXLelLRy|Ue? z=8`EpS6aNpIUKD*;<(bV0&I<8y9-`oA@ypX-&s4JEet5{%^s7cw< z0zcPHulU^aLu0B*)9#?!wU!fkXy4d|v(mep!gsDBecQ5>(Rl8Po8e6-Y6q)DzW0XP zOK0YG=7E$>*W2n;9gIt3(S^OcUVG3VEUSiT^^wukymW__C9;db%3O8Uon~X)3!`hN zRZiW0V-wzO8w7g`)I?3&n_OIg$M#B_K1RC~19}ESAAtZDyghL^91e%W;cz${4u`|x aa5x+ehr{7;I2;b=ukZ)LFVsQ+C;$M8QI-t=