Skip to content

Commit

Permalink
Ensure we have resource_name in addition to provides in resources
Browse files Browse the repository at this point in the history
This way we're fully compatible with Chef Infra Client < 16

Signed-off-by: Tim Smith <[email protected]>
  • Loading branch information
tas50 committed Jun 9, 2020
1 parent cbcb204 commit edc69c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions resources/cron.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#

provides :chef_client_cron
resource_name :chef_client_cron

property :job_name, String, default: 'chef-client'
property :comment, String
Expand Down
1 change: 1 addition & 0 deletions resources/scheduled_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#

provides :chef_client_scheduled_task
resource_name :chef_client_scheduled_task

property :task_name, String, default: 'chef-client'
property :user, String, default: 'System', sensitive: true
Expand Down
1 change: 1 addition & 0 deletions resources/systemd_timer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#

provides :chef_client_systemd_timer
resource_name :chef_client_systemd_timer

property :job_name, String, default: 'chef-client'
property :description, String, default: 'Chef Infra Client periodic execution'
Expand Down

0 comments on commit edc69c8

Please sign in to comment.