Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

aptly (37) Versions 0.2.4

Installs/Configures aptly

Policyfile
Berkshelf
Knife
cookbook 'aptly', '= 0.2.4', :supermarket
cookbook 'aptly', '= 0.2.4'
knife supermarket install aptly
knife supermarket download aptly
README
Dependencies
Changelog
Quality 0%

aptly Cookbook

This cookbook installs and configures aptly (http://www.aptly.info)

Requirements

Platform

  • Ubuntu 12.04
  • Ubuntu 14.04

Attributes

  • default['aptly']['uri'] = 'http://repo.aptly.info/'
  • default['aptly']['dist'] = "squeeze"
  • default['aptly']['components'] = ['main']
  • default['aptly']['keyserver'] = 'keys.gnupg.net'
  • default['aptly']['key'] = '2A194991'
  • default['aptly']['user'] = 'aptly'
  • default['aptly']['group'] = 'aptly'
  • default['aptly']['rootdir'] = "/opt/aptly"
  • default['aptly']['downloadconcurrency'] = 4
  • default['aptly']['architectures'] = []
  • default['aptly']['dependencyfollowsuggests'] = false
  • default['aptly']['dependencyfollowrecommends'] = false
  • default['aptly']['dependencyfollowallvariants'] = false
  • default['aptly']['dependencyfollowsource'] = false
  • default['aptly']['gpgdisablesign'] = false
  • default['aptly']['gpgdisableverify'] = false
  • default['aptly']['downloadsourcepackages'] = false
  • default['aptly']['ppadistributorid'] = ""
  • default['aptly']['ppacodename'] = ""

Recipes

default

Installs aptly

Usage

add to run_list

include recipe

include_recipe "aptly"

Examples

aptly_repo "myrepo" do
  action :create
  comment "A repository of packages"
  component "main"
  distribution "Ubuntu"
end
aptly_repo "myrepo" do
  action :create
end
aptly_repo "myrepo" do
  action :drop
end
aptly_repo "myrepo" do
  action :add
  file "/path/to/package-1.0.1.deb"
end
aptly_repo "myrepo" do
  action :add
  directory "/path/to/packages"
end
aptly_repo "myrepo" do
  action :remove
  file "/path/to/package-1.0.1.deb"
end
aptly_mirror "ubuntu-precise-main" do
  action :create
  distribution "precise"
  component "main"
  keyid "437D05B5"
  keyserver "keys.gnupg.net"
  uri "http://ubuntu.osuosl.org/ubuntu/"
end
aptly_mirror "ubuntu-precise-main" do
  action :update
end
aptly_mirror "ubuntu-precise-main" do
  action :drop
end
aptly_snapshot "pulltest" do
  action :create
  from "myrepo"
  type "repo"
  empty false
end
aptly_snapshot "pulltest" do
  action :drop
end
aptly_snapshot "merged-snapshot" do
  action :merge
  merge_source1 "pullrepo1"
  merge_source2 "pullrepo2"
end
aptly_snapshot "merged-snapshot" do
  action :verify
end
aptly_snapshot "pulledpork" do
  action :pull
  deps false
  remove false
  package "package-1.0.1"
  resource "pullrepo1"
  source "pullrepo2"
end
aptly_publish "myrepo" do
  action :create
  type "repo"
  prefix "foo"
end
aptly_publish "pulledpork" do
  action :create
  type "snapshot"
  prefix "bar"
end
aptly_publish "mycompany" do
  action :update
  prefix "foo"
end
aptly_publish "mycompany" do
  action :drop
  prefix "foo"
end
aptly_db "cleanup" do
  action :cleanup
end
aptly_db "recover" do
  action :recover
end

License & Authors

Copyright 2014, Heavy Water Operations, LLC

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.

Dependent cookbooks

apt >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

aptly CHANGELOG

This file is used to list changes made in each version of the aptly cookbook.

0.2.4

  • use exact matches in provider for not_if checks
  • Add chefspec matchers

0.2.3

  • Support for cookbook file to distribute gpg key
  • Initializing gpg config for default user

0.2.2

  • Helper to define proper environment
  • Add repo attribute to repo resource
  • Fix group owner attribute
  • Correction for aptly user seed action 0.2.1 -----
  • [Aaron Baer] - bug fix for writing files to the system as the wrong user

0.2.0

  • [Aaron Baer] - add providers for all aptly functionality

0.1.0

  • [Aaron Baer] - Initial release of aptly

Check the Markdown Syntax Guide for help with Markdown.

The Github Flavored Markdown page describes the differences between markdown on github and standard markdown.

Foodcritic Metric
            

0.2.4 failed this metric

FC002: Avoid string interpolation where not required: /tmp/cook/95eaefeb37f862ee807ea159/aptly/providers/repo.rb:55
FC002: Avoid string interpolation where not required: /tmp/cook/95eaefeb37f862ee807ea159/aptly/providers/repo.rb:70
FC002: Avoid string interpolation where not required: /tmp/cook/95eaefeb37f862ee807ea159/aptly/providers/repo.rb:71
FC002: Avoid string interpolation where not required: /tmp/cook/95eaefeb37f862ee807ea159/aptly/providers/repo.rb:90
FC002: Avoid string interpolation where not required: /tmp/cook/95eaefeb37f862ee807ea159/aptly/recipes/_import_system_keyrings.rb:22
FC002: Avoid string interpolation where not required: /tmp/cook/95eaefeb37f862ee807ea159/aptly/recipes/install.rb:23
FC002: Avoid string interpolation where not required: /tmp/cook/95eaefeb37f862ee807ea159/aptly/recipes/install.rb:24