Sourdough

Latest version: v1.0.2

Safety actively analyzes 629765 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 4

0.12.3

Yet another vSphere cleanup

* Fix error when no valid vSphere configuration toml file can be found.
* Add disfeature flag file (`/etc/sourdough/disable-vsphere`) to disable vSphere entirely when we know we're not going to be able to reach the vSphere server (don't ask).
* Add ability to set network connection timeout with `connection_wait` in `/etc/sourdough/sourdough.toml` to cope with slow vSphere servers.

0.12.2

Working around more vSphere shenanigans

* Switched from using IP address to UUID when looking up tag data. We were using the VM's IP address as the key when requesting tag information. This turned out to be a bad idea because if the machine has several IPs, the one `getIP()` picked wasn't necessarily the one vSphere was using as the main key, so you wouldn't always be able to get the tag data from vSphere when searching by IP, which sucks.
* For efficiency, we now check the `vmwareTags` dict to see if we've already read a tag value _before_ reading all the tags from the hypervisor. We also load all available tags into the cache whenever we scan for a tag that isn't already cached.
* Added `detectVSphereHost()`, `loadVSphereSettings()` and `writeVSphereSettings()` so we don't retry connecting to all the vSphere hosts listed in `vmware.toml` every time we read a tag, with the associated delays waiting for timeouts trying to connect to unreachable hypervisors. Now we store that information in a knob file so future `sourdough` runs won't have to grovel through the entire hypervisor list.
* Added a debugging flag file, `/etc/sourdough/debug-sourdough`. When the flag is present, `sourdough` won't actually start `chef-client` so you can debug vSphere issues faster.
* Renamed `get_ip()` to `getIP()` for naming consistency
* Converted a lot of crappy `print` statements to proper `logger` usage
* Updated and created a bunch of missing/crappy docstrings

0.12.0

0.11.0

Revert bad 0.10.0 version

0.10.0

Removed. Broke build due to bad testing.

0.9.5

* Use correct IP address when searching for tags in VSphere

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.