forked from sous-chefs/rsyslog
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added rsyslog::clientdisabled, and some crude test-kitchen support
- Loading branch information
Simon McCartney
committed
Jul 22, 2013
1 parent
aea07d8
commit 956a82a
Showing
3 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
driver_plugin: vagrant | ||
|
||
platforms: | ||
- name: ubuntu-12.04 | ||
driver_config: | ||
box: ubuntu-12.04-cloudimg | ||
box_url: http://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-amd64-vagrant-disk1.box | ||
require_chef_omnibus: 10.24.4 | ||
|
||
suites: | ||
- name: rsyslog | ||
run_list: ["recipe[rsyslog::server]", "recipe[rsyslog::client]"] | ||
attributes: | ||
rsyslog: | ||
server_ip: 127.0.0.1 | ||
- name: rsyslog-clientdisabled | ||
run_list: ["recipe[rsyslog::clientdisabled]"] | ||
attributes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
source :rubygems | ||
source 'https://rubygems.org' | ||
# source 'http://15.185.118.80/partial-gem-mirror/' | ||
|
||
gem 'test-kitchen' | ||
# gem 'berkshelf' | ||
gem 'berkshelf', :git => 'http://github.com/RiotGames/berkshelf.git', :branch => '2-0-stable' | ||
gem 'test-kitchen', '=1.0.0.alpha.7' | ||
gem 'kitchen-vagrant' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# | ||
# Cookbook Name:: rsyslog | ||
# Recipe:: client | ||
# | ||
# Copyright 2009-2011, Opscode, 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. | ||
# | ||
|
||
include_recipe "rsyslog" | ||
|
||
file "/etc/rsyslog.d/49-remote.conf" do | ||
only_if do ::File.exists?("/etc/rsyslog.d/49-remote.conf") end | ||
action :delete | ||
notifies :reload, "service[#{node['rsyslog']['service_name']}]" | ||
end |