forked from faxm0dem/puppet-syslog_ng
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
64 additions
and
4 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
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,20 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'spec_helper_acceptance' | ||
|
||
describe 'syslog_ng class' do | ||
it_behaves_like 'an idempotent resource' do | ||
let(:manifest) do | ||
<<-PUPPET | ||
class { 'syslog_ng': | ||
manage_repo => true, | ||
} | ||
syslog_ng::config { 'version': | ||
content => '@version: 3.30', | ||
order => '02', | ||
} | ||
PUPPET | ||
end | ||
end | ||
end |
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,14 @@ | ||
# Needed for facter to fetch facts used by the apt module | ||
if $facts['os']['name'] == 'Ubuntu' { | ||
package{ 'lsb-release': | ||
ensure => present, | ||
} | ||
} | ||
|
||
# FIXME: Workaroud for: | ||
# https://github.com/puppetlabs/puppetlabs-apt/pull/1015 | ||
if $facts['os']['name'] == 'Debian' { | ||
package{ 'apt-transport-https': | ||
ensure => present, | ||
} | ||
} |
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,10 +1,12 @@ | ||
# DO NOT EDIT THIS FILE! | ||
# This file is managed by ModuleSync. | ||
# | ||
# frozen_string_literal: true | ||
|
||
# Managed by modulesync - DO NOT EDIT | ||
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/ | ||
|
||
require 'voxpupuli/acceptance/spec_helper_acceptance' | ||
|
||
configure_beaker | ||
configure_beaker do |host| | ||
install_module_from_forge_on(host, 'puppetlabs/apt', '>= 0') | ||
end | ||
|
||
Dir['./spec/support/acceptance/**/*.rb'].sort.each { |f| require f } |