Skip to content

Latest commit

 

History

History
171 lines (147 loc) · 3.84 KB

README.md

File metadata and controls

171 lines (147 loc) · 3.84 KB

GNU Guix cookbook

The Guix cookbook provides access to the functional package management features of GNU Guix from within Chef recipes.

Supported Platforms

Any GNU/Linux system will work, but right now Upstart is the only init system supported.

Attributes

Key Type Description Default
['guix']['version'] String GNU Guix release version '0.10.0'
['guix']['checksum'] String The SHA256 checksum of the GNU Guix binary tarball corresponding to the appropriate version 'b46cd525102c6189f160bde392a31bb61e3b94fd7bf109885803e6d9a32f2ed3'
['guix']['substitute_urls'] Array Trusted servers that provide binaries ['https://mirror.hydra.gnu.org', 'https://hydra.gnu.org']
['guix']['substitute_keys'] Array Public keys for all substitute servers An array with the public key for hydra.gnu.org

Resources

guix_package

Install/remove one or more packages from a user's package profile. Supported actions are :install and :remove.

Example

guix_package 'ruby' do
  action :install
end

guix_package 'install a bunch of fun stuff' do
  packages ['ruby', 'emacs', 'git']
  action :install
end
Property Type Description Default
name String Description of transaction (or package name if packages is omitted) None
packages Array List of package specifications None
profile String File name of the package profile to use for the transaction User's default profile
cwd String Directory to perform the transaction within '/'
load_path Array List of directories to search for package recipes []
substitutes String Whether or not to use pre-built binaries true
grafts Boolean Whether or not to use grafts true
user String User to perform the transaction 'root'
group String Group to perform the transaction 'root'

guix_environment

WRITEME

Usage

guix::default

Include guix in your node's run_list:

{
  "run_list": [
    "recipe[guix::default]"
  ]
}

Copyright

Copyright © 2016 Vista Higher Learning, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

See the LICENSE file for the full license text.