1
0
mirror of https://github.com/gryf/boxpy.git synced 2025-12-19 13:37:58 +01:00
Commit Graph

38 Commits

Author SHA1 Message Date
6d0fa3445f Rearranged a bit Config class. 2021-05-06 20:53:21 +02:00
b557a6353d Added advanced feature.
In boxpy_data section it is possible to specify another nic and its type
to be attached to the vm:

boxpy_data:
  advanced:
    nic2: intnet
    nic3: hostonly

It's a stub for now, and only intnet will work by providing another nic,
which user should take care about providing configuration.
2021-05-06 20:50:33 +02:00
1bded7f75c Wait for VM to truly power off.
Added small sleep to wait for the machine to be truly down before
detaching ISO image.
2021-05-06 20:50:02 +02:00
30b7f1ab59 Fixed name clash on Config and VBoxManage objects.
There were two different things named with the same name in both
classes, which lead to conflict. This patch is fixing it.
2021-05-06 20:48:07 +02:00
8df0d31d25 Some minor tweaks 2021-05-05 20:42:39 +02:00
91f0019c78 Added cleanup for interrupted cloud-init 2021-05-05 20:24:07 +02:00
da1ae93fa2 Added ability for merging options using all possible ways.
Currently specifying attributes of VM was done by using command options
during creation, or only required VM name for rebuilding (due to smart
way of storing information within VM definition).

Now, there is possibility for providing all the information using
special key "boxpy_data" in user-script, so that there is no need to
provide that information from command line.

All three ways are respected with following order:

- default, which are hard coded in defaults
- custom user script passed by --cloud-config (or stored in vm in case
  of rebuild)
- information which is stored in VM definition (if exists - this only
  affects "rebuild" command)
- and finally highest priority have parameters passed by command line.
2021-05-05 20:15:39 +02:00
359d1cf440 Changed user-data-path param to cloud-config 2021-05-05 17:29:21 +02:00
ed5535cd4e Guard against interruption during invalid cloud config. 2021-05-05 17:25:59 +02:00
9da0e3f6ff Cacluate hostname out of vm name. 2021-04-20 11:56:46 +02:00
d4afa6e90b Added ssh port forwarding port option 2021-04-20 09:57:20 +02:00
03b6fdb8ec Remove irrelevant options from completion 2021-04-20 09:55:12 +02:00
c51603644b Added missing gnu sed definition and some cosmetic changes for completion script. 2021-04-13 21:44:14 +02:00
2984109bd5 Made a poor-man progress bar for waiting for cloud init. 2021-04-12 20:58:32 +02:00
05c3259c76 Changed defaults to use less resources 2021-04-12 20:57:52 +02:00
180c30c834 Fixed bug for not filles user-data option 2021-04-12 20:56:24 +02:00
198dfefeeb Added bash completion 2021-04-12 20:55:04 +02:00
40ac14723a Added ability to provide own user-data template 2021-04-12 19:15:51 +02:00
9b433cb044 Store information about other provided options during createion as extra data. 2021-04-12 17:35:44 +02:00
11f1ee5dda Added ability to specify sizes in GB. 2021-04-12 17:34:02 +02:00
ca713375ea Add missing media closing 2021-04-11 19:15:53 +02:00
06480daffb Simplify commands by using provided abstractions. 2021-04-11 18:59:20 +02:00
b0a64a6545 Added image abstraction for downloading and converting image. 2021-04-11 18:56:45 +02:00
b05b9403c4 Added rebuild command. 2021-04-11 18:55:41 +02:00
fc0a19bf38 Added VBoxManage class for abstraction of vboxmanage calls. 2021-04-11 18:52:57 +02:00
38b6e1b6af Add possibility to just pass key name.
From now, it's possible to just pass the key name, not the full path to
the key. By default it will be looked for in ~/.ssh directory.
2021-04-10 16:48:57 +02:00
70248bd23b Added list command. 2021-04-08 21:52:28 +02:00
69ff7206e5 Introducing custom exceptions tree. 2021-04-08 21:44:54 +02:00
4029284815 Added destroy class and the corresponding class. 2021-04-08 21:42:49 +02:00
59c8b926d8 Remove unneeded intermediate function for invoking action class. 2021-04-08 21:29:16 +02:00
ecb9c71c5d Added other option for mkisofs 2021-04-08 20:19:31 +02:00
0dded78bd2 Finalize build, removing cloud image, run freshly created vm. 2021-04-08 20:17:41 +02:00
3332177ab7 Adeded generating of cloud image 2021-04-08 19:34:02 +02:00
f61652a98d Attaching media images to vm, fixing some bugs 2021-04-08 19:33:06 +02:00
8156235d7d Create and set up VM 2021-04-07 19:35:34 +02:00
a21ca77597 Deal with the image, change default size. 2021-04-07 19:34:20 +02:00
dc1bc68cd7 Added checksum check 2021-04-07 09:53:13 +02:00
bec8f8b4db Started working on basic stuff, like main class and parsing arguments 2021-04-07 09:20:40 +02:00