Page MenuHomeSoftware Heritage

Override host ips in vagrant environment
ClosedPublic

Authored by vsellier on Nov 9 2020, 9:51 AM.

Details

Summary

Allow to plug the services locally and avoir to interact with the real hosts.
There are no changes on the real configuration (production/staging) as the hostname are only defined on the vagrant subnet

Test Plan
➜  puppet-environment git:(master) ✗ bin/octocatalog-diff worker01
Found host worker01.softwareheritage.org
Cloning into '/tmp/swh-ocd.zeR3aWd8/environments/production/data/private'...
done.
Cloning into '/tmp/swh-ocd.zeR3aWd8/environments/staging/data/private'...
done.
*** Running octocatalog-diff on host worker01.softwareheritage.org
I, [2020-11-09T09:50:25.756098 #19268]  INFO -- : Catalogs compiled for worker01.softwareheritage.org
I, [2020-11-09T09:50:26.737459 #19268]  INFO -- : Diffs computed for worker01.softwareheritage.org
I, [2020-11-09T09:50:26.737494 #19268]  INFO -- : No differences
*** End octocatalog-diff on worker01.softwareheritage.org

Diff Detail

Repository
rSPSITE puppet-swh-site
Branch
staging
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 16948
Build 26147: arc lint + arc unit

Event Timeline

ardumont added inline comments.
data/subnets/vagrant.yaml
43

one s too many ;)

nice touch!

And that won't touch production/staging as nothing is defined for it (list is empty ;)

great, i did not check the ips yet though.

Use an alias for sentry entry to clarify the internal ip usage

Fix previous too enthusiastic commit

This revision is now accepted and ready to land.Nov 9 2020, 10:27 AM