Skip to content

SVCPLAN-8828: optional env vars, optional exported clients - #15

Merged
jakerundall merged 1 commit into
mainfrom
rundall/SVCPLAN-8828/optionally_set_python_paths_in_defaults_file
Feb 17, 2026
Merged

jakerundall merged 1 commit into
mainfrom
rundall/SVCPLAN-8828/optionally_set_python_paths_in_defaults_file

Conversation

@jakerundall

Copy link
Copy Markdown
Contributor

Allow setting additional environment variables in borg_defaults.sh via profile_backup::client::env_vars. Use cases were:

  • expand PYTHONPATH
  • override BORG path These help when pip packages need to be installed in alternate locations.

Allow disabling use of exported clients.

  • The clients on the mg cluster were registering themselves with their mgmt IPs and we'd rather use IB for backup, when possible.

@jakerundall jakerundall self-assigned this Feb 17, 2026
@jakerundall

Copy link
Copy Markdown
Contributor Author

I've tested this with mg-servicebackup1 (tested w/ and w/o exported clients) and mgdb[1,2] (tested w/ and w/o additional env vars).

@billglick billglick left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few comments and suggestions.

The main issue is that I would change the exported resource option to be in the client, not exporting it if it isn't set.

Comment thread manifests/client.pp
Comment thread manifests/server.pp Outdated
Comment thread manifests/client.pp
Comment thread data/common.yaml
@jakerundall
jakerundall force-pushed the rundall/SVCPLAN-8828/optionally_set_python_paths_in_defaults_file branch from f43e6f6 to 9cc8257 Compare February 17, 2026 22:26
@jakerundall

Copy link
Copy Markdown
Contributor Author

Ready for another look when you get a chance, thanks @billglick !

@billglick billglick left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Allow setting additional environment variables in borg_defaults.sh via
profile_backup::client::env_vars. Use cases were:
- expand PYTHONPATH
- override BORG path
These help when pip packages need to be installed in alternate locations.

Allow override of the network interface that will be used by facter to determine
the client's IP.
- Jake is not unsure how facter decides the value of networking.ip, but on MG
  nodes it was the mgmt IP. Now you can tell Puppet/facter to use the IP of
  another interface, e.g., ib0.

Regen REFERENCE.md.
@jakerundall
jakerundall force-pushed the rundall/SVCPLAN-8828/optionally_set_python_paths_in_defaults_file branch from 9cc8257 to 64b97ff Compare February 17, 2026 22:55
@jakerundall
jakerundall merged commit 64b97ff into main Feb 17, 2026
4 checks passed
@jakerundall
jakerundall deleted the rundall/SVCPLAN-8828/optionally_set_python_paths_in_defaults_file branch February 17, 2026 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants