cookbook 'guix', '~> 0.1.1'
guix (2) Versions 0.1.1 Follow0
Provides functional package management with GNU Guix
cookbook 'guix', '~> 0.1.1', :supermarket
knife supermarket install guix
knife supermarket download guix
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
<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>['guix']['version']</tt></td>
<td>String</td>
<td>GNU Guix release version</td>
<td><tt>'0.10.0'</tt></td>
</tr>
<tr>
<td><tt>['guix']['checksum']</tt></td>
<td>String</td>
<td>
The SHA256 checksum of the GNU Guix binary tarball corresponding
to the appropriate version
</td>
<td><tt>'b46cd525102c6189f160bde392a31bb61e3b94fd7bf109885803e6d9a32f2ed3'</tt></td>
</tr>
<tr>
<td><tt>['guix']['substitute_urls']</tt></td>
<td>Array</td>
<td>Trusted servers that provide binaries</td>
<td><tt>['https://mirror.hydra.gnu.org', 'https://hydra.gnu.org']</tt></td>
</tr>
<tr>
<td><tt>['guix']['substitute_keys']</tt></td>
<td>Array</td>
<td>Public keys for all substitute servers</td>
<td>An array with the public key for <tt>hydra.gnu.org</tt></td>
</tr>
</table>
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
<table>
<tr>
<th>Property</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>name</tt></td>
<td>String</td>
<td>Description of transaction (or package name if <tt>packages</tt> is omitted)</td>
<td>None</td>
</tr>
<tr>
<td><tt>packages</tt></td>
<td>Array</td>
<td>List of package specifications</td>
<td>None</td>
</tr>
<tr>
<td><tt>profile</tt></td>
<td>String</td>
<td>File name of the package profile to use for the transaction</td>
<td>User's default profile</td>
</tr>
<tr>
<td><tt>cwd</tt></td>
<td>String</td>
<td>Directory to perform the transaction within</td>
<td><tt>'/'</tt></td>
</tr>
<tr>
<td><tt>load_path</tt></td>
<td>Array</td>
<td>List of directories to search for package recipes</td>
<td><tt>[]</tt></td>
</tr>
<tr>
<td><tt>substitutes</tt></td>
<td>String</td>
<td>Whether or not to use pre-built binaries</td>
<td><tt>true</tt></td>
</tr>
<tr>
<td><tt>grafts</tt></td>
<td>Boolean</td>
<td>
Whether or not to use
<a href="https://www.gnu.org/software/guix/manual/html_node/Security-Updates.html">
grafts
</a>
</td>
<td><tt>true</tt></td>
</tr>
<tr>
<td><tt>user</tt></td>
<td>String</td>
<td>User to perform the transaction</td>
<td><tt>'root'</tt></td>
</tr>
<tr>
<td><tt>group</tt></td>
<td>String</td>
<td>Group to perform the transaction</td>
<td><tt>'root'</tt></td>
</tr>
</table>
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.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
0.1.0
Initial release of chef-guix
Collaborator Number Metric
0.1.1 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.1 failed this metric
FC064: Ensure issues_url is set in metadata: guix/metadata.rb:1
FC065: Ensure source_url is set in metadata: guix/metadata.rb:1
FC066: Ensure chef_version is set in metadata: guix/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: guix/metadata.rb:1
FC069: Ensure standardized license defined in metadata: guix/metadata.rb:1
FC108: Resource should not define a property named 'name': guix/resources/environment.rb:21
FC108: Resource should not define a property named 'name': guix/resources/package.rb:22
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.1 failed this metric
Failure: Cookbook should not contain binaries. Found:
guix/sdl2.pdf
guix/ruby-pry.png
guix/guix-daemon
guix/libutil.a
guix/libformat.a
guix/guix-register
guix/libstore.a
guix/openssh.png
guix/dump.rdb
guix/guix.go
guix/gnu.go
Testing File Metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.1 failed this metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.1 failed this metric
FC064: Ensure issues_url is set in metadata: guix/metadata.rb:1
FC065: Ensure source_url is set in metadata: guix/metadata.rb:1
FC066: Ensure chef_version is set in metadata: guix/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: guix/metadata.rb:1
FC069: Ensure standardized license defined in metadata: guix/metadata.rb:1
FC108: Resource should not define a property named 'name': guix/resources/environment.rb:21
FC108: Resource should not define a property named 'name': guix/resources/package.rb:22
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.1 failed this metric
Failure: Cookbook should not contain binaries. Found:
guix/sdl2.pdf
guix/ruby-pry.png
guix/guix-daemon
guix/libutil.a
guix/libformat.a
guix/guix-register
guix/libstore.a
guix/openssh.png
guix/dump.rdb
guix/guix.go
guix/gnu.go
Testing File Metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.1 failed this metric
FC065: Ensure source_url is set in metadata: guix/metadata.rb:1
FC066: Ensure chef_version is set in metadata: guix/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: guix/metadata.rb:1
FC069: Ensure standardized license defined in metadata: guix/metadata.rb:1
FC108: Resource should not define a property named 'name': guix/resources/environment.rb:21
FC108: Resource should not define a property named 'name': guix/resources/package.rb:22
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.1.1 failed this metric
Failure: Cookbook should not contain binaries. Found:
guix/sdl2.pdf
guix/ruby-pry.png
guix/guix-daemon
guix/libutil.a
guix/libformat.a
guix/guix-register
guix/libstore.a
guix/openssh.png
guix/dump.rdb
guix/guix.go
guix/gnu.go
Testing File Metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.1 failed this metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number