Chef Recipe Install Package
Use the package resource to manage packages.
Chef recipe install package. Allow downgrade options package name source timeout and version are the properties available to this resource. Come be part of shaping the direction of supermarket by opening issues and pull requests or by joining us on the chef mailing list. Alternatively chef inspec can be installed via installer script or package manager according to your operating system and method as listed below. If a version is specified install the specified version of the package nothing this resource block does not act unless notified by another resource to take action.
Chef inspec is available as a standalone homebrew package. This resource is the base resource for several other resources used for package management on specific platforms. The rest of these steps assume this location is in the tmp directory. This script does the following.
As a root user install the chef infra server package on the server using the name of the package provided by chef. When this recipe runs on the node the chef will check whether the apache is installed if it is it will skip this resource and go to the next resource. Chef software install script. Once notified this resource block either runs immediately or is queued up to run at the end of a chef infra client run purge purge a package.
The chef supermarket repository will continue to be where development of the supermarket application takes place. Brew cask install chef chef inspec. The rpm package resource has the following actions install default. Action install this specifies the action for the resource package in our case installation of httpd.
Action identifies which steps chef infra client will take to bring the node into the desired state. Run the following command in your terminal to install chef inspec. View our collection of guides documentation and articles. Detects the platform version and architecture of the machine on which the installer is being executed.
The chef software install script can be used to install any chef software including things like chef infra client chef infra server chef inspec. Go advanced options. If not it will install apache using the system installer. Upload the package to the machine that will run the chef infra server and then record its location on the file system.
When the package is installed from a local file such as with rubygems dpkg or rpm package manager the file must be added to the node using the remote file or cookbook file resources. If a version is specified install. If a version is specified install the specified version of the package nothing.