Commit graph

1205 commits

Author SHA1 Message Date
Samuel Beaulieu
6aa10151ca
(DIO-3138) vmpooler v2 api missing vm/hostname
there was one API that was falling back on v1 and was returning a domain key.
in order to make it consistent with the changes in v2, the domain is not returned
anymore, and the fqdn is returned if it is available
2022-06-29 14:14:25 -05:00
Samuel
c3a6fd2527
Merge pull request #475 from puppetlabs/sut_domain
(DIO-2833) Connect domain settings to pools, create v2 API
2022-04-07 09:03:09 -05:00
Samuel Beaulieu
57542d775b
update docs, remove domain key 2022-03-31 14:26:36 -05:00
Samuel Beaulieu
ef87fe8db5
adding deprecation warning to logs for reroute.rb 2022-03-31 13:16:03 -05:00
Samuel Beaulieu
9a9dfce316
adding an api endpoint to print the current full config 2022-03-31 13:16:02 -05:00
Samuel Beaulieu
1005a33ed2
fix rubocop 2022-03-31 13:16:01 -05:00
Samuel Beaulieu
7c5a3f802e
update gemfile.lock 2022-03-31 13:16:00 -05:00
Samuel Beaulieu
3809dac2d4
fix rubocop and fetch_single_vm logic, bump version 2022-03-31 13:15:59 -05:00
Samuel Beaulieu
2e608b7196
spec test domain set at the config and provider levels 2022-03-31 13:15:58 -05:00
Samuel Beaulieu
70b5bd297a
add multi domain support to ondemand queries 2022-03-31 13:15:57 -05:00
Samuel Beaulieu
a2d613782a
remove 'last minute' tcp vm_ready check from the api for pooled vms
the vm_ready methods should be implemented per provider and checking in the api
creates issues since provider code is not available. Removing this for the V2 api
2022-03-31 13:15:56 -05:00
Samuel Beaulieu
dd375b20c3
document the new provider configuration skip_dns_check_before_creating_vm 2022-03-31 13:15:55 -05:00
Samuel Beaulieu
66eb598e4e
tabling this PR for the next sprint 2022-03-31 13:15:54 -05:00
Samuel Beaulieu
e5c477254f
initial review 2022-03-31 13:15:53 -05:00
6b9eb2369f
Connect domain settings to pools, create v2 API 2022-03-31 13:15:52 -05:00
Samuel
7786c9193e
Merge pull request #489 from puppetlabs/fix-deprecation-redis
(maint) Fix deprecation warning for redis ruby library
2022-03-31 13:15:25 -05:00
Samuel Beaulieu
c225bafc4a
fix spec tests to include pipelined 2022-03-30 15:52:29 -05:00
Samuel Beaulieu
2ad9b8c549
(maint) Fix deprecation warning for redis ruby library
The syntax for pipelined has changed and the old syntax will be removed in v5.0.0
Fixing the syntax now since the block syntax has been supported for a while now.
2022-03-30 09:01:25 -05:00
Jake Spain
3d203e2578
Merge pull request #477 from puppetlabs/otel-http_client
Add OTel HttpClient Instrumentation
2022-01-20 14:40:51 -05:00
72c82cf084
Add OTel HttpClient Instrumentation
This will be useful for the GCE provider.
2022-01-20 11:42:43 -05:00
Jake Spain
6d6da30696
Merge pull request #476 from puppetlabs/update-dev-tooling
(DIO-2833) Update dev tooling and related docs
2022-01-19 16:07:00 -05:00
f7eaeedbfc
Update dev tooling and related docs 2022-01-19 15:21:02 -05:00
49822bff31
Merge pull request #473 from puppetlabs/gem-v2.2.0
Bump version to 2.2.0
2021-12-30 13:46:45 -05:00
Samuel
ddbd522d5c
Bump version to 2.2.0
In preparation for release
2021-12-29 13:27:24 -06:00
Samuel
acf84267e2
Merge pull request #472 from puppetlabs/fix-extra-config
(maint) Fix EXTRA_CONFIG merge behavior
2021-12-29 13:22:30 -06:00
Samuel Beaulieu
3a508a3afb
(maint) do not raise an error when base provider create_template_delta_disks called 2021-12-23 14:08:18 -06:00
Samuel Beaulieu
23efcc4cc0
(maint) Fix EXTRA_CONFIG merge behavior
Before this change if an extra config file had new keys they would get
merged to the main config but if it contained an existing key, like
'providers' it would overwrite the original config.
Adding a library 'deep_merge' to do a more natural merge, where existing keys
get sub-elements added together and arrays are combined like for the
pool configuration.
Adding spec tests around EXTRA_CONFIG as they were missing, by adding
and testing two new extra_config.yaml fixture files
2021-12-23 13:34:33 -06:00
39dc26e485
Merge pull request #400 from puppetlabs/extra-atributes
Add additional data to spans in api/v1.rb
2021-12-21 08:32:49 -05:00
44d03edce8
Merge pull request #471 from puppetlabs/otel-update
Update to latest OTel gems
2021-12-21 08:32:39 -05:00
2d1d28ed49
Add additional data to spans in api/v1.rb 2021-12-20 15:33:25 -05:00
48107bb6c7
Update to latest OTel gems 2021-12-20 12:36:34 -05:00
439dbc05ae
Merge pull request #470 from puppetlabs/fix_used_providers_method
Ensure all configured providers are loaded
2021-12-13 08:40:18 -05:00
45378d46b9
Ensure all configured providers are loaded
Prior to this, providers that should have been loaded per the
provider_class key of the providers hash were not actually loaded.
2021-12-10 21:05:54 -05:00
7872bfe8fc
Merge pull request #469 from puppetlabs/tag_vm_user
(maint) Adding a provider method tag_vm_user
2021-12-09 13:41:30 -05:00
Samuel Beaulieu
daea25b1d1
(maint) Adding a provider method tag_vm_user
This method should be called only once, when the VM is moved to a running state
which is when the data for the user (if using tokens) is available. In vmpooler
base provider it is a noop method, but the various providers can implement it
to tag or label a running VM with the name of the user who checked it out
2021-12-09 11:13:03 -06:00
c6bca58c6e
Merge pull request #467 from puppetlabs/fix-purge
Move vsphere specific methods out of vmpooler
2021-12-09 11:38:33 -05:00
Samuel
ea86c2645a
Update lib/vmpooler/providers/base.rb
Co-authored-by: Gene Liverman <gene.liverman+06301990@puppet.com>
2021-12-09 09:32:04 -06:00
0777bd36d4
Merge pull request #468 from puppetlabs/fix-gh-testing
Update testing.yml
2021-12-09 08:37:34 -05:00
Samuel
46d1011b4b
Update testing.yml
since we use main as default branch now
2021-12-08 21:24:34 -06:00
Samuel
b85455e4e8
Update lib/vmpooler/providers/base.rb
Co-authored-by: Gene Liverman <gene.liverman+06301990@puppet.com>

abc
2021-12-08 13:03:19 -06:00
Samuel
5d21541f4f
Update docs/configuration.md
Co-authored-by: Gene Liverman <gene.liverman+06301990@puppet.com>
2021-12-08 13:03:18 -06:00
Samuel Beaulieu
aa380694e3
Bump version to 2.1.0 2021-12-08 13:03:13 -06:00
Samuel Beaulieu
f6bbef4245
Move vsphere specific methods out of vmpooler
vmpooler has the vsphere provider taken out, moving some vsphere related
methods to the provider:
1) pool_folders
2) get_base_folders
At the same time renaming some configuration and code items
to remove harmful terminology.
purge_unconfigured_folders DEPRECATED, use purge_unconfigured_resources
folder_whitelist DEPRECATED, use resources_allowlist
the above configuration items are still supported but will be removed in
the next major version.
base class method purge_unconfigured_folders was renamed to purge_unconfigured_resources
and requires the equivalent change in the provider classes

abc
2021-12-08 13:02:34 -06:00
be72bb46d8
Merge pull request #466 from puppetlabs/fix-release-workflow
Use credentials file for Rubygems auth
2021-12-08 09:38:49 -05:00
950e8cd7f3
Use credentials file for Rubygems auth 2021-12-08 09:33:45 -05:00
Erik Hansen
3c61050032
Merge pull request #465 from puppetlabs/release-prep-for-2.0
Release prep for v2.0.0
2021-12-07 16:32:59 -08:00
1163cbe02c
Release prep for v2.0.0 2021-12-07 19:12:45 -05:00
trvs-sdlr
d2330054f9
Merge pull request #464 from puppetlabs/release-workflow
Add Gem release workflow
2021-12-07 11:32:42 -08:00
4742977e16
Add Gem release workflow 2021-12-07 11:32:14 -05:00
19626ddea0
Merge pull request #463 from puppetlabs/icon-updates
Update icon in the readme to reference this repo
2021-12-07 11:18:00 -05:00