Commit graph

59 commits

Author SHA1 Message Date
Jake Spain
dd1829abf8
vmpooler should be a dependency 2023-01-30 14:00:58 -05:00
Jake Spain
1d8b9c5ab9
Add changelog and release instructions 2023-01-30 14:00:58 -05:00
Jake Spain
91cf44d54a
Update release workflow 2023-01-30 10:07:13 -05:00
Jake Spain
733856809c
Add jruby-9.4 to testing 2023-01-30 09:08:42 -05:00
Jake Spain
6d0842d48b
Merge pull request #19 from puppetlabs/add-mend
(RE-15111) Migrate Snyk to Mend Scanning
2023-01-20 14:49:18 -05:00
Jake Spain
4afe1db81b
Migrate Snyk to Mend Scanning 2023-01-20 12:43:23 -05:00
Jake Spain
97eb08011c
Change dependabot to weekly 2023-01-19 21:17:35 -05:00
Jake Spain
992d35003c
Merge pull request #17 from puppetlabs/update_codeowners
(RE-14811) Remove DIO as codeowners
2022-08-26 10:35:29 -04:00
Jake Spain
f93610a3ff
Remove DIO as codeowners 2022-08-26 09:44:43 -04:00
Jake Spain
d1c9d946f6
Merge pull request #16 from puppetlabs/migrate_snyk
Add Snyk action
2022-08-18 10:12:06 -04:00
Jake Spain
8451e2834d
Add Snyk action 2022-08-16 17:31:02 -04:00
Jake Spain
c2f6868237
Merge pull request #15 from puppetlabs/update-codeowners
Add release-engineering to codeowners
2022-08-08 15:03:36 -04:00
Jake Spain
84a026e8ad
Add release-engineering to codeowners 2022-08-08 14:35:32 -04:00
Erik Hansen
3c95190eae
Merge pull request #13 from puppetlabs/maint-refactor-dns
(maint) Refactor cloud dns
2022-07-27 10:31:46 -07:00
Samuel Beaulieu
26327210a4
Added a check for failed create attempts, they are now retried up to 30 times 2022-07-27 12:24:45 -05:00
Samuel Beaulieu
b94d54f129
bump testing with jruby-9.3.6.0 2022-07-27 09:35:18 -05:00
Samuel
9d5d0d7c2d
Merge pull request #12 from puppetlabs/dependabot/bundler/googleauth-gte-0.16.2-and-lt-1.3.0
Update googleauth requirement from >= 0.16.2, < 1.2.0 to >= 0.16.2, < 1.3.0
2022-07-27 09:33:21 -05:00
Samuel Beaulieu
2a39a8cf06
fix rubocop offences and spec tests 2022-07-27 09:31:24 -05:00
Samuel Beaulieu
79516d8014
(maint) Refactor cloud dns
Moved the creation and deletion methods to a vmpooler class, to be used by the ec2
provisioner.
Added a check for failed deletion attempts, they are now retried up to 30 times
2022-07-26 16:20:48 -05:00
dependabot[bot]
7d399da016
Update googleauth requirement from >= 0.16.2, < 1.2.0 to >= 0.16.2, < 1.3.0
Updates the requirements on [googleauth](https://github.com/googleapis/google-auth-library-ruby) to permit the latest version.
- [Release notes](https://github.com/googleapis/google-auth-library-ruby/releases)
- [Changelog](https://github.com/googleapis/google-auth-library-ruby/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-auth-library-ruby/compare/googleauth/v0.17.0...googleauth/v1.2.0)

---
updated-dependencies:
- dependency-name: googleauth
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-24 13:25:45 +00:00
Jake Spain
46b9c5aef0
Merge pull request #11 from puppetlabs/v0.3.0
release prep 0.3.0
2022-06-21 10:26:56 -04:00
Samuel
3d21d543b5
release prep 0.3.0 2022-06-21 09:22:52 -05:00
Samuel
dc6c5c491e
Merge pull request #10 from puppetlabs/DIO-3162
(DIO-3162) vmpooler gce provider to support disk type (to use ssd)
2022-06-21 09:21:26 -05:00
Samuel Beaulieu
39d6d0d849
temp disable a rubocop check 2022-06-17 09:04:37 -05:00
Samuel Beaulieu
e06917dd92
(DIO-3162) vmpooler gce provider to support disk type (to use ssd)
Added a new pool config named disk_type, which can be set to pd-ssd to
use a SSD disk attahed to the instance. When not set, or set to empty,
the google default of pd-standard is used
2022-06-16 09:44:37 -05:00
c6533af9ed
Merge pull request #9 from puppetlabs/release
0.2.0 release prep
2022-04-19 09:33:40 -04:00
Jake Spain
f297108aa2
0.2.0 release prep
Includes:
- https://github.com/puppetlabs/vmpooler-provider-gce/pull/8
- https://github.com/puppetlabs/vmpooler-provider-gce/pull/7
- https://github.com/puppetlabs/vmpooler-provider-gce/pull/6
2022-04-15 09:27:10 -04:00
Jake Spain
a1ea9f7b5a
Merge pull request #6 from puppetlabs/dependabot/bundler/googleauth-gte-0.16.2-and-lt-1.2.0
Update googleauth requirement from ~> 0.16.2 to >= 0.16.2, < 1.2.0
2022-04-15 08:41:15 -04:00
Jake Spain
5074ad4840
Merge pull request #7 from puppetlabs/dependabot/bundler/vmpooler-gte-1.3.0-and-tw-2.3
Update vmpooler requirement from ~> 1.3, >= 1.3.0 to >= 1.3.0, ~> 2.3
2022-04-15 08:40:44 -04:00
Jake Spain
65965dd542
Merge pull request #8 from puppetlabs/set-hostname
Set hostname for instance during create_vm
2022-04-15 08:36:08 -04:00
Jake Spain
b62580df0a
Set hostname for instance during create_vm
This sets the instance hostname to the configured domain according to https://cloud.google.com/compute/docs/instances/custom-hostname-vm#api and https://googleapis.dev/ruby/google-api-client/latest/Google/Apis/ComputeV1/Instance.html#hostname-instance_method
2022-04-15 08:28:08 -04:00
dependabot[bot]
336f417b4f
Update vmpooler requirement from ~> 1.3, >= 1.3.0 to >= 1.3.0, ~> 2.3
Updates the requirements on [vmpooler](https://github.com/puppetlabs/vmpooler) to permit the latest version.
- [Release notes](https://github.com/puppetlabs/vmpooler/releases)
- [Changelog](https://github.com/puppetlabs/vmpooler/blob/main/CHANGELOG.md)
- [Commits](https://github.com/puppetlabs/vmpooler/compare/1.3.0...2.3.0)

---
updated-dependencies:
- dependency-name: vmpooler
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-08 13:24:05 +00:00
dependabot[bot]
c6ca569fce
Update googleauth requirement from ~> 0.16.2 to >= 0.16.2, < 1.2.0
Updates the requirements on [googleauth](https://github.com/googleapis/google-auth-library-ruby) to permit the latest version.
- [Release notes](https://github.com/googleapis/google-auth-library-ruby/releases)
- [Changelog](https://github.com/googleapis/google-auth-library-ruby/blob/main/CHANGELOG.md)
- [Commits](https://github.com/googleapis/google-auth-library-ruby/compare/google-auth-library-ruby/v0.16.2...googleauth/v1.1.2)

---
updated-dependencies:
- dependency-name: googleauth
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-23 11:40:59 -04:00
Samuel
614c474305
Update version.rb
preparation for releasing gem
2022-01-10 15:53:44 -06:00
Samuel
761fc6cbb1
Update version.rb
prep release of gem
2022-01-10 15:26:07 -06:00
480796fe39
Merge pull request #4 from puppetlabs/add-cloud-dns
Adding the cloud DNS API library and related methods
2022-01-10 16:05:55 -05:00
Samuel Beaulieu
e3119758b4
fix rubocop offence 2022-01-10 10:43:53 -06:00
Samuel Beaulieu
83770acd89
fix dns_setup as zone was already a method
also changed from setting the project name in the instance labels to a
instance tag aka network tag, as the setup for allowing traffic in the FW
is bassed on tag not label
2022-01-06 16:39:53 -06:00
Samuel Beaulieu
2cb2550aca
refactor dns_zone to be renamed domain to match the global parameter being overwritten
in the upstream vmpooler code, we use the global domain parameter, so naming that parameter
the same in GCE. This parameter can be optionally set in the provider config, and
overwrites the global parameter. It is used to infer the FQDN as .
2021-12-31 10:30:18 -06:00
Samuel Beaulieu
b66218dc10
replace dns zone entry if it already exists
on the rare occasion where adding a dns record and we get teh error it already exists
assume that it is stale and replace it with the new IP
2021-12-31 09:35:29 -06:00
Samuel Beaulieu
0beec3d8e9
code review fixes 2021-12-29 12:17:25 -06:00
Samuel Beaulieu
a4c730df7b
fix rubocop and spec tests 2021-12-29 12:02:55 -06:00
Samuel Beaulieu
daa55fe5b8
Adding the cloud DNS API library and related methods
we setup DNS when a VM is created and tear it down when a VM is deleted
the DNS zone should exist already and is referenced by a provider setting
the dns zone is also set in order to use it for vm_ready? instead of the global
domain
instances have a label that identifies which project they belong to, so
it can be used for FW rules
2021-12-29 08:21:51 -06:00
f6ec318b2d
Merge pull request #3 from puppetlabs/fix-tests
fix simplecov with jruby, add a .rubocop.yml config file
2021-12-10 15:21:31 -05:00
Samuel Beaulieu
55654387af
fix simplecov with jruby, add a .rubocop.yml config file 2021-12-10 12:34:06 -06:00
Samuel Beaulieu
356dfb3f52
fix spec test yaml 2021-12-09 18:53:25 -06:00
Samuel Beaulieu
5c67073dad
rubocop fixes 2021-12-09 18:43:36 -06:00
Samuel Beaulieu
662f965c0f
refactor the connection and add debug logs 2021-12-09 17:59:15 -06:00
Samuel Beaulieu
04cc86689d
Merge branch 'main' of github.com:puppetlabs/vmpooler-provider-gce 2021-12-09 11:38:01 -06:00
Samuel Beaulieu
8594160fbe
Implementing the tag_vm_user method
This method gets the user name based on the token:user metadata in redis,
cleans it up to be safe for a label name (lowercase, numbers and dash or underscore only),
and update the existing instance labels adding a new one called token-user
2021-12-09 11:35:29 -06:00