Page MenuHomeSoftware Heritage

adapt configuration for the vagrant environment

Authored by vsellier on Sep 18 2020, 3:09 PM.

Diff Detail

rSPSITE puppet-swh-site
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

vsellier created this revision.Sep 18 2020, 3:09 PM
ardumont added subscribers: olasd, ardumont.EditedSep 18 2020, 5:29 PM

I have a question about our environment use inline.

But other than that, looks fine :)


I think @olasd suggested something about a better way of defining environments orally last week...
(which I forget the details of...).

Wondering if we can do better than overriding the main hiera.yaml?

olasd added inline comments.Sep 18 2020, 5:49 PM
5 ↗(On Diff #14061)

this looks redundant with the dns::local_cache variable (and it's also not really used, apparently)


Please make sure to have newlines at the end of files. this makes git diff a bit annoying.


Yeah, I wanted to add per environment lookups to the hierarchy;

Something like

- path: "environment/%{::environment}.yaml"
  name: "Variables set per environment"

Honestly I'm not sure what this would really achieve, because what really matters is the *combination* between location and environment. Maybe the location files should be completely split per-environment.

vsellier planned changes to this revision.Sep 21 2020, 3:42 PM
vsellier added inline comments.
5 ↗(On Diff #14061)

Good catch, it's a relica of an local test I forgot to remove.


I have chosen to override the main hiera configuration to be able to adapt the per host configuration in the vagrant environment. At the moment, it's used only for the network configuration.

As @olasd suggest, it would be a great improvement (in the context of this task) to have a configuration driven by the environment instead of by the host name but it looks like it's a big refactoring not necessarily needed to start the vagrant environment tests. WDYT ?

vsellier updated this revision to Diff 14103.Sep 21 2020, 4:01 PM

remove useless properties

vsellier added inline comments.Sep 21 2020, 4:01 PM

It's fixed

vsellier updated this revision to Diff 14139.Sep 22 2020, 2:38 PM
  • fix hiera configuration in the context of vagrant
  • fix vms network configuration
vsellier updated this revision to Diff 14204.Sep 24 2020, 9:32 AM

Add the properties for netbox on vagrant

This revision is now accepted and ready to land.Sep 25 2020, 9:54 AM
This revision was automatically updated to reflect the committed changes.
ardumont added inline comments.Mon, Oct 5, 8:18 PM

I finally made something converge on this.
(thanks for @vsellier which helped me how to debug properly this)