Hi all,
we wrote a plugin for Foreman, that allows to control the snapshot api of vSphere within the host view of foreman.
You can take snapshots of running and stopped hosts, and you can rollback a host to such a snapshot.
In the back, the plugin talks to the fog library.
We tried to capsulate the snapshot logic in a way, that it shall be easy to implement support for other virtualization backends (compute resources).
The plugin can be found at 'https://github.com/ATIX-AG/foreman_snapshot_management'.
Thoughts and comments are welcome.
Matthias and the ATIX crew
1 Like
Very cool! I had a similar plugin for Openstack and Libvirt a few years
back[1] which also went through Fog - maybe I should see if I can use
it to extend your plugin
Greg
[1]https://github.com/GregSutcliffe/foreman_snapshot/
···
On Wed, 2017-07-05 at 17:19 +0200, Matthias Dellweg wrote: > Hi all, > we wrote a plugin for Foreman, that allows to control the snapshot > api of vSphere within the host view of foreman. > You can take snapshots of running and stopped hosts, and you can > rollback a host to such a snapshot. > In the back, the plugin talks to the fog library. > We tried to capsulate the snapshot logic in a way, that it shall be > easy to implement support for other virtualization backends (compute > resources).
1 Like
I like it!
I found no option to create snapshots automatically, this would be very nice.
I think it would be nice to shedule updated with the “remote_execution” plugin and automatically create an snapshot before updating.
What do you think about this?
2 Likes
would really love to see that capability
fwiw you can access the snapshot facilities via the api and the foreman-ansible-modules.
This way you can coordinate taking snapshots around your remote-execution if you have that automated.