pinterest / it-cpe-cookbooks Goto Github PK
View Code? Open in Web Editor NEWA suite of Chef cookbooks that we use to manage our fleet of client devices
License: Apache License 2.0
A suite of Chef cookbooks that we use to manage our fleet of client devices
License: Apache License 2.0
Your repo requires Facebook's cookbook cpe_utils, but it doesn't exist.
(Shamelessly copypasta'd from facebook/IT-CPE#260)
Converging the cookbooks in this repo on a v17+ Chef client result in the following deprecation warning being thrown (using cpe_applicationaccess
as an example):
The cpe_applicationaccess resource in the cpe_applicationaccess cookbook should declare `unified_mode true` at 1 location:
- /etc/chef/local-mode-cache/cache/cookbooks/cpe_applicationaccess/resources/cpe_applicationaccess.rb
See https://docs.chef.io/deprecations_unified_mode/ for further details.
https://docs.chef.io/unified_mode/
Anyone using Chef client v17+ will face this deprecation warning until unified_mode true
is appended to the first line of each custom resource file.
Ignore the deprecation warning.
Should be an easy PR (or series of PR's) to craft.
On Windows, the cpe_firewall cookbook will enable the firewall if it is included in the run list. No attributes need to be set.
At minimum, the windows recipe should only run if node['cpe_firewall']['EnableFirewall']
is true.
(Shamelessly copypasta'd from facebook/IT-CPE#260)
Describe the Enhancement:
Converging the cookbooks in this repo on a v17+ Chef client result in the following deprecation warning being thrown (using cpe_applicationaccess as an example):
The cpe_applicationaccess resource in the cpe_applicationaccess cookbook should declare unified_mode true
at 1 location:
- /etc/chef/local-mode-cache/cache/cookbooks/cpe_applicationaccess/resources/cpe_applicationaccess.rb
See https://docs.chef.io/deprecations_unified_mode/ for further details.
https://docs.chef.io/unified_mode/
Describe the Need:
Anyone using Chef client v17+ will face this deprecation warning until unified_mode true is appended to each custom resource file.
Current Alternative
Ignore the deprecation warning.
Can We Help You Implement This?:
Should be an easy PR (or series of PR's) to craft.
Redo this PR:
there's probably more
================================================================================
Recipe Compile Error
================================================================================
Chef::Exceptions::RecipeNotFound
--------------------------------
could not find recipe macos for cookbook cpe_firewall
Cookbook Trace:
---------------
/var/chef/cache/cookbooks/cpe_firewall/recipes/default.rb:14:in `from_file'
/var/chef/cache/cookbooks/cpe_uber_init/recipes/default.rb:268:in `block in from_file'
/var/chef/cache/cookbooks/cpe_uber_init/recipes/default.rb:267:in `each'
/var/chef/cache/cookbooks/cpe_uber_init/recipes/default.rb:267:in `from_file'
Relevant File Content:
----------------------
/var/chef/cache/cookbooks/cpe_firewall/recipes/default.rb:
7: # Copyright (c) 2017-present, Pinterest, Inc.
8: # All rights reserved.
9: #
10: # This source code is licensed under the Apache 2.0 license found in the
11: # LICENSE file in the root directory of this source tree.
12: #
13:
14>> include_recipe "cpe_firewall::#{node['platform']}"
15:
System Info:
------------
chef_version=16.1.16
platform=macos
platform_version=10.16
ruby=ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-darwin17]
program_name=/usr/local/bin/chef-client
executable=/opt/chef/bin/chef-client
Running handlers:
[2020-06-22T17:46:51-07:00] ERROR: Running exception handlers
Running handlers complete
[2020-06-22T17:46:51-07:00] ERROR: Exception handlers complete
Chef Infra Client failed. 0 resources updated in 19 seconds
[2020-06-22T17:46:51-07:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2020-06-22T17:46:51-07:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2020-06-22T17:46:51-07:00] FATAL: Chef::Exceptions::RecipeNotFound: could not find recipe macos for cookbook cpe_firewall
Generated at 2020-06-22 17:46:51 -0700
Chef::Exceptions::RecipeNotFound: could not find recipe macos for cookbook cpe_firewall
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.16/lib/chef/cookbook_version.rb:204:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.16/lib/chef/run_context.rb:393:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.16/lib/chef/run_context.rb:349:in `block in include_recipe'
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.16/lib/chef/run_context.rb:348:in `each'
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.16/lib/chef/run_context.rb:348:in `include_recipe'
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.16/lib/chef/dsl/include_recipe.rb:26:in `include_recipe'
/var/chef/cache/cookbooks/cpe_firewall/recipes/default.rb:14:in `from_file'
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.16/lib/chef/mixin/from_file.rb:34:in `instance_eval'
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.16/lib/chef/mixin/from_file.rb:34:in `from_file'
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.16/lib/chef/cookbook_version.rb:230:in `load_ruby_recipe'
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.16/lib/chef/cookbook_version.rb:200:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.16/lib/chef/run_context.rb:393:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.16/lib/chef/run_context.rb:349:in `block in include_recipe'
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.16/lib/chef/run_context.rb:348:in `each'
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.16/lib/chef/run_context.rb:348:in `include_recipe'
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.16/lib/chef/dsl/include_recipe.rb:26:in `include_recipe'
/var/chef/cache/cookbooks/cpe_uber_init/recipes/default.rb:268:in `block in from_file'
/var/chef/cache/cookbooks/cpe_uber_init/recipes/default.rb:267:in `each'
/var/chef/cache/cookbooks/cpe_uber_init/recipes/default.rb:267:in `from_file'
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.16/lib/chef/mixin/from_file.rb:34:in `instance_eval'
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.16/lib/chef/mixin/from_file.rb:34:in `from_file'
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.16/lib/chef/cookbook_version.rb:230:in `load_ruby_recipe'
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.16/lib/chef/cookbook_version.rb:200:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.16/lib/chef/run_context.rb:393:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.16/lib/chef/run_context/cookbook_compiler.rb:174:in `block in compile_recipes'
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.16/lib/chef/run_context/cookbook_compiler.rb:171:in `each'
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.16/lib/chef/run_context/cookbook_compiler.rb:171:in `compile_recipes'
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.16/lib/chef/run_context/cookbook_compiler.rb:79:in `compile'
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.16/lib/chef/run_context.rb:223:in `load'
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.16/lib/chef/policy_builder/expand_node_object.rb:103:in `setup_run_context'
/opt/chef/embedded/lib/ruby/2.7.0/forwardable.rb:235:in `setup_run_context'
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.16/lib/chef/client.rb:498:in `setup_run_context'
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.16/lib/chef/client.rb:284:in `run'
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.16/lib/chef/application.rb:292:in `run_with_graceful_exit_option'
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.16/lib/chef/application.rb:268:in `block in run_chef_client'
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.16/lib/chef/local_mode.rb:42:in `with_server_connectivity'
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.16/lib/chef/application.rb:251:in `run_chef_client'
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.16/lib/chef/application/base.rb:335:in `run_application'
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.1.16/lib/chef/application.rb:68:in `run'
/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-bin-16.1.16/bin/chef-client:25:in `<top (required)>'
/usr/local/bin/chef-client:171:in `load'
/usr/local/bin/chef-client:171:in `<main>'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.