34 Commits
Author SHA1 Message Date
Sean OMeara 671d3b928f Merge pull request #6 from tas50/master
Modernize the cookbook and resolve failures on Chef Infra Client >= 16
2021-02-18 11:50:29 +01:00
Tim Smith e48a43063f Add a spec dir
Signed-off-by: Tim Smith <tsmith@chef.io>
2020-09-17 15:23:18 -07:00
Tim Smith 5b4fbd33e5 Convert the HWRP to a custom resource
This resource wasn't utilizing inheritance which is the main reason for writing HWRPs. Converting to a custom resource eliminated some boilerplate logic.

I also added converge_by on the shellout to join, which will make this idempotent and why-run compliant.

Signed-off-by: Tim Smith <tsmith@chef.io>
2020-09-17 14:37:50 -07:00
Tim Smith ece1b563fc Require Chef Infra Client 12.15+
This is a pretty low bar, but makes sure that the metadata can be parses and custom resources are available.

Signed-off-by: Tim Smith <tsmith@chef.io>
2020-09-17 14:30:11 -07:00
Tim Smith daab036c8c Fix a typo in the resource
Signed-off-by: Tim Smith <tsmith@chef.io>
2020-09-17 14:29:15 -07:00
Tim Smith c0a073295e Add basic test using Github Actions
This will execute the delivery local mode based testing

Signed-off-by: Tim Smith <tsmith@chef.io>
2020-09-17 14:27:53 -07:00
Tim Smith 456608d3d2 Replace the full Delivery experience with delivery local mode
Delivery local mode is a simple toml file that defines bits of work to do in test

Signed-off-by: Tim Smith <tsmith@chef.io>
2020-09-17 14:26:42 -07:00
Tim Smith fc50b71df3 DRY and rework the platform detection for install.rb
Use platform_family not platform in order to get all the derivative platforms like Scientific Linux
Support Amazon Linux 2 which is 99.9% RHEL 7 now
Always releasever on Fedora to point to the correct repo dir even though they're all there for Fedora (that is beautiful btw)

Signed-off-by: Tim Smith <tsmith@chef.io>
2020-09-17 14:24:59 -07:00
Tim Smith f09fa08ddd Add scientific to the metadata since it comes with platform_family
This comes for free now

Signed-off-by: Tim Smith <tsmith@chef.io>
2020-09-17 14:22:22 -07:00
Tim Smith dfe0d47c67 Update the kitchen.yml file with the latest platform
Also rename it so it's not hidden anymore

Signed-off-by: Tim Smith <tsmith@chef.io>
2020-09-17 14:22:06 -07:00
Tim Smith f004ecf27b Remove the required name_property
The advantage of a name property is it inherits the block name and allows you to override that if you wish. That way people can use friendly block names if they want and just set the name property directly instead. If it's required then it's not doing that.

Signed-off-by: Tim Smith <tsmith@chef.io>
2020-09-17 14:11:28 -07:00
Tim Smith 2444796115 Require openssl instead of net/https
net/https just requires openssl and net/http

Signed-off-by: Tim Smith <tsmith@chef.io>
2020-09-17 14:10:16 -07:00
Tim Smith 0ed743452e Formatting and fix compatibility with Chef 16
Make sure provides/resource_name are set

Signed-off-by: Tim Smith <tsmith@chef.io>
2020-09-17 14:05:45 -07:00
Tim Smith 9d227eceab Remove Chef 11 era gating on metadata fields
Signed-off-by: Tim Smith <tsmith@chef.io>
2020-09-17 14:04:18 -07:00
Tim Smith ef19581e6d Remove deprecated long_description metadata
Signed-off-by: Tim Smith <tsmith@chef.io>
2020-09-17 14:04:02 -07:00
Tim Smith ed373a44eb Use a SPDX compliant license string
Signed-off-by: Tim Smith <tsmith@chef.io>
2020-09-17 14:03:51 -07:00
Grant Limberg de86eda3f0 Merge pull request #2 from russellseymour/master
Changed resource and provider to be a custom resource
1.0.7
2017-11-28 09:25:20 -08:00
Russell Seymour ffa1c5ba42 Corrected the syntax error from before and put in the correct place
Signed-off-by: Russell Seymour <russell.seymour@turtlesystems.co.uk>
2017-07-17 16:06:18 +01:00
Russell Seymour a14f3babd2 Corrected syntax error
Signed-off-by: Russell Seymour <russell.seymour@turtlesystems.co.uk>
2017-07-17 15:35:45 +01:00
Russell Seymour b8afc58a9f Corrected typo
Signed-off-by: Russell Seymour <russell.seymour@turtlesystems.co.uk>
2017-07-17 11:49:41 +01:00
Russell Seymour 6fe3ffb455 Removed default value for node_name
Signed-off-by: Russell Seymour <russell.seymour@turtlesystems.co.uk>
2017-07-17 11:45:45 +01:00
Russell Seymour f311367d0e Bumped version number
Signed-off-by: Russell Seymour <russell.seymour@turtlesystems.co.uk>
2017-07-17 11:43:05 +01:00
Russell Seymour 70a92c4c0f Forgot inheritence
Signed-off-by: Russell Seymour <russell.seymour@turtlesystems.co.uk>
2017-07-17 11:34:37 +01:00
Russell Seymour 74ac750328 Moved resource to library so it is using the updated custom resource pattern.
Signed-off-by: Russell Seymour <russell.seymour@turtlesystems.co.uk>
2017-07-17 11:27:45 +01:00
Grant Limberg c6e73e5cd6 ohai plugin is now a template
Allows the use of the ohai plugin with instances of ZeroTier installed in custom locations
2017-04-06 14:05:52 -07:00