Code Monkey home page Code Monkey logo

it-cpe-cookbooks's Introduction

IT-CPE-Cookbooks

The IT-CPE-Cookbooks ("Client Platform Engineering") repo contains a suite of cookbooks that we use to manage our fleet of client devices.

Notes

In order to use most of these cookbooks, you must also deploy some of Facebook's cookbooks found here

The following Facebook cookbooks will more than likely be required:

  • cpe_init
  • cpe_launchd
  • cpe_profiles
  • cpe_utils

The following Facebook cookbooks are also recommended for dynamic configurations:

  • cpe_node_customizations
  • cpe_user_customizations

it-cpe-cookbooks's People

Contributors

1dustindavis avatar andrewjharms avatar chefaustin avatar clburlison avatar danhutchings avatar discentem avatar erikng avatar maotsu avatar mikedodge04 avatar tas50 avatar williamtheaker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

it-cpe-cookbooks's Issues

Big Sur issues

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>'

Enablement of `unified_mode` for v17+ Chef client compatibility

(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 the first line of 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.

Enablement of unified_mode for v17+ Chef client compatibility (continued)

(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.

cpe_firewall is not attribute driven on Windows

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.