Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
asmirnov committed Sep 25, 2012
0 parents commit c20c9ca
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 0 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# CHANGELOG for aptstd

This file is used to list changes made in each version of aptstd.

## 0.1.0:

* Initial release of aptstd

- - -
Check the [Markdown Syntax Guide](http://daringfireball.net/projects/markdown/syntax) for help with Markdown.

The [Github Flavored Markdown page](http://github.github.com/github-flavored-markdown/) describes the differences between markdown on github and standard markdown.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Description
===========

Requirements
============

Attributes
==========

Usage
=====

6 changes: 6 additions & 0 deletions metadata.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
maintainer "Alexander Smirnov"
maintainer_email "devops@asmirnov.info"
license "Apache 2.0"
description "Installs/Configures aptstd"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "0.1.0"
40 changes: 40 additions & 0 deletions recipes/default.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#
# Cookbook Name:: aptstd
# Recipe:: default
#
# Copyright 2012, Alexander Smirnov
#
# 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.
#

include_recipe "apt"

template "/etc/apt/sources.list" do
source "sources.list.erb"
mode "0644"
notifies :run, resources(:execute => "apt-get update"), :immediately
end

apt_repository "debian-security" do
uri "http://security.debian.org/"
distribution "squeeze/updates"
components ["main", "contrib", "non-free"]
deb_src true
end

apt_repository "debian-updates" do
uri "http://cdn.debian.net/debian"
distribution "squeeze-updates"
components ["main", "contrib", "non-free"]
deb_src true
end
2 changes: 2 additions & 0 deletions templates/default/sources.list.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
deb http://cdn.debian.net/debian squeeze main contrib non-free
deb-src http://cdn.debian.net/debian squeeze main contrib non-free

0 comments on commit c20c9ca

Please sign in to comment.