Skip to content

Commit

Permalink
Add explicit unified_mode false to core/other resources
Browse files Browse the repository at this point in the history
Differential Revision: D65959110

fbshipit-source-id: 0970484d5409eee8900471d57a715aadb846ee6c
  • Loading branch information
Billy Barrese authored and facebook-github-bot committed Nov 21, 2024
1 parent 2791f2e commit c17040d
Show file tree
Hide file tree
Showing 27 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions itchef/cookbooks/cpe_applocker/resources/cpe_applocker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

resource_name :cpe_applocker
provides :cpe_applocker, :os => 'windows'
unified_mode(false) if Chef::VERSION >= 18
default_action :configure
property :applocker_rules, Hash

Expand Down
1 change: 1 addition & 0 deletions itchef/cookbooks/cpe_chrome/resources/cpe_chrome_posix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

resource_name :cpe_chrome_posix
provides :cpe_chrome, :os => ['darwin', 'linux']
unified_mode(false) if Chef::VERSION >= 18
default_action :config

action :config do
Expand Down
1 change: 1 addition & 0 deletions itchef/cookbooks/cpe_chrome/resources/cpe_chrome_win.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

resource_name :cpe_chrome_win
provides :cpe_chrome, :os => 'windows'
unified_mode(false) if Chef::VERSION >= 18
default_action :config

action :config do
Expand Down
1 change: 1 addition & 0 deletions itchef/cookbooks/cpe_dconf/resources/cpe_dconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

resource_name :cpe_dconf
provides :cpe_dconf, :os => 'linux'
unified_mode(false) if Chef::VERSION >= 18
default_action :update

action :update do
Expand Down
1 change: 1 addition & 0 deletions itchef/cookbooks/cpe_flatpak/resources/flatpak.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

resource_name :cpe_flatpak_linux
provides :cpe_flatpak, :os => 'linux'
unified_mode(false) if Chef::VERSION >= 18
default_action :manage
property :fp, String, :name_property => true

Expand Down
1 change: 1 addition & 0 deletions itchef/cookbooks/cpe_flatpak/resources/flatpak_pkgs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

resource_name :cpe_flatpak_pkg
provides :cpe_flatpak_pkg, :os => 'linux'
unified_mode(false) if Chef::VERSION >= 18
default_action :install
property :pkg, String
property :pfp, String, :name_property => true
Expand Down
1 change: 1 addition & 0 deletions itchef/cookbooks/cpe_flatpak/resources/flatpak_repo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

resource_name :cpe_flatpak_repo
provides :cpe_flatpak_repo, :os => 'linux'
unified_mode(false) if Chef::VERSION >= 18
default_action :install
property :repo_name, String
property :rfp, String, :name_property => true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

resource_name :cpe_gnome_software
provides :cpe_gnome_software
unified_mode(false) if Chef::VERSION >= 18
default_action :manage

action :manage do
Expand Down
1 change: 1 addition & 0 deletions itchef/cookbooks/cpe_hosts/resources/cpe_hosts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

resource_name :cpe_hosts
provides :cpe_hosts
unified_mode(false) if Chef::VERSION >= 18
default_action :run

action :run do
Expand Down
1 change: 1 addition & 0 deletions itchef/cookbooks/cpe_kernel_channel/resources/fedora.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

resource_name :cpe_kernel_channel_fedora
provides :cpe_kernel_channel, :platform => 'fedora'
unified_mode(false) if Chef::VERSION >= 18
default_action :update

action :update do
Expand Down
1 change: 1 addition & 0 deletions itchef/cookbooks/cpe_munki/resources/cpe_munki_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

resource_name :cpe_munki_config
provides :cpe_munki_config, :os => 'darwin'
unified_mode(false) if Chef::VERSION >= 18
default_action :config

action :config do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# Resource:: cpe_munki_defaults_config

provides :cpe_munki_defaults_config, :os => 'darwin'
unified_mode(false) if Chef::VERSION >= 18
default_action :config

action :config do
Expand Down
1 change: 1 addition & 0 deletions itchef/cookbooks/cpe_munki/resources/cpe_munki_install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

resource_name :cpe_munki_install
provides :cpe_munki_install, :os => 'darwin'
unified_mode(false) if Chef::VERSION >= 18
default_action :install

action_class do
Expand Down
1 change: 1 addition & 0 deletions itchef/cookbooks/cpe_munki/resources/cpe_munki_local.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

resource_name :cpe_munki_local
provides :cpe_munki_local, :os => 'darwin'
unified_mode(false) if Chef::VERSION >= 18
default_action :run

action :run do
Expand Down
1 change: 1 addition & 0 deletions itchef/cookbooks/cpe_nomad/resources/darwin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

resource_name :cpe_nomad_darwin
provides :cpe_nomad_darwin, :os => 'darwin'
unified_mode(false) if Chef::VERSION >= 18
default_action :manage

action :manage do
Expand Down
1 change: 1 addition & 0 deletions itchef/cookbooks/cpe_pathsd/resources/cpe_pathsd_darwin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

resource_name :cpe_pathsd_darwin
provides :cpe_pathsd, :os => 'darwin'
unified_mode(false) if Chef::VERSION >= 18
default_action :manage

action :manage do
Expand Down
1 change: 1 addition & 0 deletions itchef/cookbooks/cpe_pathsd/resources/cpe_pathsd_linux.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

resource_name :cpe_pathsd_linux
provides :cpe_pathsd, :os => 'linux'
unified_mode(false) if Chef::VERSION >= 18
default_action :manage

action :manage do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

resource_name :cpe_powermanagement
provides :cpe_powermanagement, :os => 'darwin'
unified_mode(false) if Chef::VERSION >= 18
default_action :config

action :config do
Expand Down
1 change: 1 addition & 0 deletions itchef/cookbooks/cpe_preferencepanes/resources/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

resource_name :cpe_preferencepanes
provides :cpe_preferencepanes, :os => 'darwin'
unified_mode(false) if Chef::VERSION >= 18
default_action :config

# rubocop:disable Metrics/BlockLength
Expand Down
1 change: 1 addition & 0 deletions itchef/cookbooks/cpe_profiles/resources/cpe_profiles.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

resource_name :cpe_profiles
provides :cpe_profiles, :os => 'darwin'
unified_mode(false) if Chef::VERSION >= 18
default_action :run

action :run do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

resource_name :cpe_profiles_local
provides :cpe_profiles_local, :os => 'darwin'
unified_mode(false) if Chef::VERSION >= 18
default_action :run

action :run do
Expand Down
1 change: 1 addition & 0 deletions itchef/cookbooks/cpe_remote/resources/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
resource_name :cpe_remote_file
default_action :create
provides :cpe_remote_file
unified_mode(false) if Chef::VERSION >= 18

property :folder_name, String, :name_property => true
# see https://github.com/chef/chef/blob/ +
Expand Down
1 change: 1 addition & 0 deletions itchef/cookbooks/cpe_remote/resources/pkg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
default_action :install

provides :cpe_remote_pkg, :os => 'darwin'
unified_mode(false) if Chef::VERSION >= 18
property :allow_downgrade, [TrueClass, FalseClass], :default => true
property :app, String, :name_property => true
property :checksum, String
Expand Down
1 change: 1 addition & 0 deletions itchef/cookbooks/cpe_remote/resources/zip.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
resource_name :cpe_remote_zip
default_action :create
provides :cpe_remote_zip
unified_mode(false) if Chef::VERSION >= 18

property :folder_name, String, :name_property => true
property :zip_checksum, String
Expand Down
1 change: 1 addition & 0 deletions itchef/cookbooks/cpe_symlinks/resources/cpe_symlinks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

resource_name :cpe_symlinks
provides :cpe_symlinks
unified_mode(false) if Chef::VERSION >= 18
default_action :create

# rubocop:disable Metrics/BlockLength
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
resource_name :cpe_win_telemetry
default_action :config
provides :cpe_win_telemetry, :os => 'windows'
unified_mode(false) if Chef::VERSION >= 18

action :config do
return unless node.windows? && node.os_at_least?('10.0.15063')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

resource_name :cpe_windows_update_for_business
provides :cpe_windows_update_for_business
unified_mode(false) if Chef::VERSION >= 18
default_action :config

# rubocop:disable Layout/LineLength
Expand Down

0 comments on commit c17040d

Please sign in to comment.