Page MenuHomeSoftware Heritage

Add netbox inventory tool support
ClosedPublic

Authored by vsellier on Sep 24 2020, 9:41 AM.

Details

Diff Detail

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

Event Timeline

  • add apache and redis configurations
  • Use the swh forge's redis repository
  • use role::swh_server as base roleto activate the backup
  • Use the archive module to install the tgz
  • Declare missing dependencies to fix the initial puppet run
  • Install dir is now read-only for the netbox user
  • Restore the whitespaces on the cassandra configuration

isolate the reverse_proxy configuration in a dedicated profile

@olasd All the points we have checked yesterday should be addressed.

I gave up on using the swh_gunicorn module to configure the service because there are some hardcoded behaviors that don't match with the nedbox configuration (for example the location of the gunicorn executable, or the usage of a virtualenv not supported)

I'm not really sure of the vhost configuration but I can't test it locally due to the certificate management. It will befine tuned on the real server.

  • rebase
  • add the vagrant configuration
ardumont added inline comments.
site-modules/profile/templates/netbox/configuration.py.erb
33

Should use the redis_host and redis_port variables to avoid scratching heads later when the default values change.

44

same, i guess.

looks good to me, one remark inline.

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

Use redis's configuration properties in the configuration template

vsellier added inline comments.
site-modules/profile/templates/netbox/configuration.py.erb
33

good catch, it's fixed

vsellier marked an inline comment as done.

Uppdate to match the real server name

This revision was automatically updated to reflect the committed changes.