Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .fixtures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,5 @@ fixtures:
stdlib:
repo: "puppetlabs/stdlib"
ref: "4.1.0"
apt:
repo: "puppetlabs/apt"
ref: "2.1.0"
symlinks:
varnish: "#{source_dir}"
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2017-10-11 Release 2.0.0
- Remove varnish::repo and apt dependency. Users should manage their own apt repos.

2015-07-23 Release 1.1.0
- Support puppetlabs/apt >=2.0.0
- Not backwards compat with puppetlabs/apt <2.0.0
Expand Down
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
source "https://rubygems.org"

group :test do
gem "rake"
gem "rake", '< 11.0'
gem "puppet", ENV['PUPPET_VERSION'] || '~> 3.7.0'
gem "rspec", '< 3.2.0'
gem "rspec-puppet", :git => 'https://github.com/rodjek/rspec-puppet.git'
gem "puppetlabs_spec_helper"
gem "metadata-json-lint"
gem "metadata-json-lint", '<= 0.0.19'
gem "rspec-puppet-facts"
end

Expand Down
25 changes: 0 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,31 +70,6 @@ varnish::instance { 'instance0' :
}
```

### Repo

This varnish module currently uses the public repo.varnish-cache.org debian
repository. If you want to use another repo, you can do it like the varnish
package above, with class parameters or hiera.

*Class Parameters*
```puppet
class { 'varnish' :
apt_location => 'http://some.other.repo',
apt_repos => 'main restricted universe',
...
}
```

*Hiera*
```
---
varnish::apt_location: 'http://some.other/repo'
varnish::apt_repos: 'repo-name'
varnish::apt_key: 'XXXXXX'
varnish::key_source: 'http://some.other/key.txt'
varnish::apt_include_src: false
```

### Configs

The varnish::instance type ships with a pretty simple config. You can pass
Expand Down
24 changes: 0 additions & 24 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -12,39 +12,15 @@
# [*package_ensure*]
# You can ensure a specific package version here, defaults to 'present'.
#
# [*apt_location*]
# The location of the varnish apt repository
#
# [*apt_repos*]
# The repo names to use. If multiple, space separated string.
#
# [*apt_key*]
# The public apt key of the repo.
#
# [*apt_key_source*]
# A url key source for the apt key.
#
# [*apt_include_src*]
# Whether to include the apt source.
#
class varnish (
$packages = hiera('varnish::packages', $varnish::params::packages),
$package_ensure = hiera('varnish::package_ensure',
$varnish::params::package_ensure),
$apt_location = hiera('varnish::apt_location',
$varnish::params::apt_location),
$apt_repos = hiera('varnish::apt_repos',
$varnish::params::apt_repos),
$apt_key = hiera('varnish::apt_key', $varnish::params::apt_key),
$apt_key_source = hiera('varnish::key_source',
$varnish::params::apt_key_source),
$apt_include_src = hiera('varnish::apt_include_src', true),
) inherits varnish::params {

# validate parameters here

anchor { 'varnish::begin': } ->
class { 'varnish::repo': } ->
class { 'varnish::install': } ->
class { 'varnish::config': } ->
class { 'varnish::service': } ->
Expand Down
4 changes: 0 additions & 4 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
$service_name = 'varnish'
$vmod_dependencies = ['build-essential', 'dpkg-dev', 'libtool',
'pkg-config', 'libpcre3-dev', 'git-core']
$apt_location = 'http://repo.varnish-cache.org/debian/'
$apt_repos = 'varnish-3.0'
$apt_key = 'C4DEFFEB'
$apt_key_source = 'http://repo.varnish-cache.org/debian/GPG-key.txt'
}
default: {
fail("${::operatingsystem} not supported")
Expand Down
22 changes: 0 additions & 22 deletions manifests/repo.pp

This file was deleted.

6 changes: 1 addition & 5 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chartbeat-varnish",
"version": "1.1.0",
"version": "2.0.0",
"author": "chartbeat",
"summary": "Module to manage the Varnish Web Accelerator",
"license": "MIT",
Expand All @@ -12,10 +12,6 @@
{
"name": "puppetlabs/stdlib",
"version_requirement": ">=4.0.0"
},
{
"name": "puppetlabs/apt",
"version_requirement": ">=2.0.0"
}
],
"operatingsystem_support": [
Expand Down
1 change: 0 additions & 1 deletion spec/classes/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
}}

it { should contain_class('varnish::params') }
it { should contain_class('varnish::repo') }
it { should contain_class('varnish::install') }
it { should contain_class('varnish::config') }
it { should contain_class('varnish::service') }
Expand Down
44 changes: 0 additions & 44 deletions spec/classes/repo_spec.rb

This file was deleted.

1 change: 0 additions & 1 deletion spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
puppet_module_install(:source => proj_root, :module_name => 'varnish')
hosts.each do |host|
on host, puppet('module', 'install', 'puppetlabs-stdlib'), { :acceptable_exit_codes => [0,1] }
on host, puppet('module', 'install', 'puppetlabs-apt'), { :acceptable_exit_codes => [0,1] }
end
end
end