chef-zero | memory Chef server for testing and solo purposes | Configuration Management library

 by   chef Ruby Version: v1.6.3 License: Apache-2.0

kandi X-RAY | chef-zero Summary

kandi X-RAY | chef-zero Summary

chef-zero is a Ruby library typically used in Devops, Configuration Management, Chef applications. chef-zero has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Chef Zero is a simple, easy-install, in-memory Chef server that can be useful for Chef Client testing and chef-solo-like tasks that require a full Chef Server. It IS intended to be simple, Chef 11+ compliant, easy to run and fast to start. It is NOT intended to be secure, scalable, performant or persistent. It does NO input validation, authentication or authorization (it will not throw a 400, 401 or 403). It does not save data, and will start up empty each time you start it. Because Chef Zero runs in memory, it's super fast and lightweight. This makes it perfect for testing against a "real" Chef Server without mocking the entire Internet.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              chef-zero has a low active ecosystem.
              It has 543 star(s) with 96 fork(s). There are 82 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 11 open issues and 92 have been closed. On average issues are closed in 413 days. There are 4 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of chef-zero is v1.6.3

            kandi-Quality Quality

              chef-zero has 0 bugs and 0 code smells.

            kandi-Security Security

              chef-zero has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              chef-zero code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              chef-zero is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              chef-zero releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed chef-zero and discovered the below as its top functions. This is intended to give you an instant insight into chef-zero implemented functionality, and help decide if they suit your requirements.
            • Loads data for the user
            • Creates a new instance
            • Defines a chef server
            • Create a request object .
            • Starts a running process .
            • Starts the server .
            • Perform HTTP request
            • Log request
            • Check the api version number
            • Get the data store
            Get all kandi verified functions for this library.

            chef-zero Key Features

            No Key Features are available at this moment for chef-zero.

            chef-zero Examples and Code Snippets

            No Code Snippets are available at this moment for chef-zero.

            Community Discussions

            QUESTION

            Gitlab : Spawning error : "File is a symlink that does not point to a valid file (RuntimeError)"
            Asked 2020-May-14 at 12:23

            Having a working gitlab instance on an Ubuntu 18.04 server for abouth 2 months, it now refuse to swpan due to the following 2 errors in /var/log/nginx/error.log

            ...

            ANSWER

            Answered 2020-May-14 at 12:23

            This is almost certainly a permissions error.

            Make sure that whatever file is readable: chmod a+r /opt/gitlab/embedded/service/gitlab-rails/config/database.yml (according to the comments you already did this) AND

            Make sure that all the directories are executable, which for directories allows cd'ing into that directory:

            Source https://stackoverflow.com/questions/61587787

            QUESTION

            Understanding Chef Environment Attributes
            Asked 2020-Feb-07 at 22:03
            Background

            I am trying to understand how to correctly work with environment attributes in recipes. Note: I understand that my approach may not be Chef's best practices; however, my goal is to understand data flow here, not to necessarily use my approach in a production application.

            Some details:

            1. I am using Vagrant and Chef -- specifically, the chef-zero provisioner (Thus I must use ruby files for my environments rather than JSON due to a chef-vagrant limitation).
            2. Here is my directory structure:
            ...

            ANSWER

            Answered 2020-Feb-07 at 22:03

            You are doing everything right and your expectations are correct. The only thing, you are missing, is that you do not assign the environment to the vm. For that you need to add a line in your Vagrantfile:

            Source https://stackoverflow.com/questions/60120813

            QUESTION

            What's the best way to set up "utility" resources in Chef
            Asked 2020-Jan-03 at 05:16
            Some Background
            1. I am using Vagrant and chef-zero; chef server is not part of my equation
            2. I have two roles: base and infrastructure, and two cookbooks: apt and php. The purpose of the base role is to do some basic provisioning and package management and to clone a repository from github, etc. The apt cookbook has a recipe, update_upgrade.rb which runs an execute resource to effectively call apt update, apt upgrade, apt-get autoremove and so forth
            3. The infrastructure role sets up PHP via the php cookbook. It'll include more later, but it serves as a good example of the need I have.
            4. The php cookbook has two recipes: add_repository.rb and install.rb. The add_repository recipe runs an execute resource to add the ondrej/php repository to apt. The install recipe iterates over a list of packages in order to install php from the added repository. This is where the need for the utility comes into play.

            The crux is, I need to run apt update after I add the PHP repo and before I install its packages. What's the best way to achieve this?

            What I've Tried

            Initially, I had my add_repository and install resources combined into a single install recipe and had planned to use include_recipe apt::update_upgrade to insert my apt cookbook's execute resource into that recipe. However, after scouring the chef docs, and this handy article: Should I use include_recipe or add the recipe to run_list?, it seems that include_recipe doesn't run immediately where it's placed. The suggestion in said article was to use a run list to dictate precise execution of recipes, and the chef docs do suggest that the recipes execute in the order they are listed.

            This led me to break up the php resources into add_repository and install and to use the following role run list for infrastructure:

            ...

            ANSWER

            Answered 2020-Jan-03 at 05:16

            the best practice is to use the appropriate chef resource in conjunction with notification.

            since you are using apt, use the appropriate apt resources, such as apt_update (to make sure apt repositories are up to date), apt_package (to manipulate packages using apt, apt_repository (to add apt respository) and try to avoid using execute resource to do all of that - this will take advantage of chef idompotance (you might like reading Thinking Like a Chef)

            each chef resource, can notify and\or subscribe to notifications. but you might not need to use it if you write the resources in order.

            if you these advises won't lead you the right way, please post a relevant snippet where you have an issue and i will try to help you farther.

            UPDATE

            since apt suffers from many failures during update, i would give it few retries and also a periodic update.

            Source https://stackoverflow.com/questions/59559623

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install chef-zero

            This server can be installed as a Ruby Gem.

            Support

            For information on contributing to this project see https://github.com/chef/chef/blob/master/CONTRIBUTING.md.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/chef/chef-zero.git

          • CLI

            gh repo clone chef/chef-zero

          • sshUrl

            git@github.com:chef/chef-zero.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Configuration Management Libraries

            dotfiles

            by mathiasbynens

            consul

            by hashicorp

            viper

            by spf13

            eureka

            by Netflix

            confd

            by kelseyhightower

            Try Top Libraries by chef

            chef

            by chefRuby

            bento

            by chefShell

            omnibus

            by chefRuby

            ohai

            by chefRuby

            devops-kungfu

            by chefJavaScript