Page MenuHomeSoftware Heritage

Vagrant environment to test puppet locally
ClosedPublic

Authored by vsellier on Sep 16 2020, 6:28 PM.

Diff Detail

Repository
rSENV Puppet Environment
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

vsellier created this revision.Sep 16 2020, 6:28 PM

I think this should be moved to the sysadm-provisioning repository [1] instead.

[1] https://forge.softwareheritage.org/source/swh-sysadmin-provisioning/

olasd added a subscriber: olasd.Sep 17 2020, 12:05 PM

I think this should be moved to the sysadm-provisioning repository [1] instead.

[1] https://forge.softwareheritage.org/source/swh-sysadmin-provisioning/

No, I think a puppet-specific thing like this should definitely be in the puppet repository.

In D3967#98011, @olasd wrote:

I think this should be moved to the sysadm-provisioning repository [1] instead.

[1] https://forge.softwareheritage.org/source/swh-sysadmin-provisioning/

No, I think a puppet-specific thing like this should definitely be in the puppet repository.

I agree with @olasd as it will be used by a Vagrantfile defining the configuration of the vms and using the puppet repository to provision them. It's highly coupled with the puppet repository.
If in the future it will be possible to provision a local environment via terraform, it will make sense.

the iso is available on the public annex at this url : https://annex.softwareheritage.org/public/isos/virtualbox/debian/

The next step is to add some doc about the iso creation and the vagrant usage.

vsellier updated this revision to Diff 14019.Sep 17 2020, 5:47 PM

prefix the preseed file by the debian version name

vsellier updated this revision to Diff 14034.Sep 17 2020, 7:02 PM

add vagrant usage documentation

vsellier retitled this revision from Create the virtualbox image used to instantiate the vagrant environment to Vagrant environment to test puppet locally.Sep 18 2020, 2:54 PM
vsellier updated this revision to Diff 14060.Sep 18 2020, 2:55 PM
Add vagrant configuration and documentation

cool.

Thanks for adding some documentation about how to use it ;).

I don't know what's the current state of the diff is (I see quite a lot of commented code, don't know if you want to merge it like this or not, e.g. Vagrantfile).

fyi, you can mark the diff as "planned changes" in the selection box "Add Action" at the bottom of the page (if you have some changes remaining.

Note to self: I definitely need to try this out, that looks nice ;)

README.md
217 ↗(On Diff #14060)

with:

:)

vsellier updated this revision to Diff 14100.EditedSep 21 2020, 1:44 PM

Fix plenty of " :" ;)

vsellier planned changes to this revision.Sep 21 2020, 2:52 PM

I don't know what's the current state of the diff is (I see quite a lot of commented code, don't know if you want to merge it like this or not, e.g. Vagrantfile).

I just discover there is still an issue with the network interfaces not configured after a restart of a vm. IMO we can wait for this problem to be solved before landing the diff.

vsellier updated this revision to Diff 14102.Sep 21 2020, 2:59 PM

Remove unecessary comments

vsellier updated this revision to Diff 14104.Sep 21 2020, 4:26 PM

Remove useless comment

vsellier updated this revision to Diff 14144.Sep 22 2020, 3:05 PM

Update the base image to use ethX interfaces

ardumont accepted this revision.Sep 22 2020, 4:24 PM
This revision is now accepted and ready to land.Sep 22 2020, 4:24 PM
vsellier updated this revision to Diff 14198.Sep 23 2020, 6:33 PM
  • declare site.pp to override the default puppet entrypoint
  • add the inventory vm
vsellier updated this revision to Diff 14350.Sep 28 2020, 2:52 PM
  • Add a script to avoid to commit each change before being able to test it (watch-vagrant-conf)
  • Update the documentation accordingly
  • Declare the admin-inventory server
vsellier updated this revision to Diff 14351.Sep 28 2020, 2:54 PM

Switch the default test branch to staging