Initial import

This commit is contained in:
Monty Taylor 2012-08-06 09:50:06 -05:00
commit d6c00f0a46
5 changed files with 48 additions and 0 deletions

8
Modulefile Normal file
View File

@ -0,0 +1,8 @@
name 'openstackci-apparmor'
version '0.0.1'
source 'https://github.com/openstack-ci/puppet-apparmor.git'
author 'OpenStack Continuous Integration'
license 'Apache License, Version 2.0'
summary 'apparmor module'
description 'apparmor module'
project_page 'https://github.com/openstack-ci/puppet-apparmor'

4
README.md Normal file
View File

@ -0,0 +1,4 @@
apparmor
--------
This is the apparmor module. It simply manages the apparmor service.

8
manifests/init.pp Normal file
View File

@ -0,0 +1,8 @@
class apparmor {
package { "apparmor":
ensure => present
}
service { "apparmor":
ensure => 'running';
}
}

17
spec/spec_helper.rb Normal file
View File

@ -0,0 +1,17 @@
dir = File.expand_path(File.dirname(__FILE__))
$LOAD_PATH.unshift File.join(dir, 'lib')
require 'mocha'
require 'puppet'
require 'rspec'
require 'spec/autorun'
Spec::Runner.configure do |config|
config.mock_with :mocha
end
# We need this because the RAL uses 'should' as a method. This
# allows us the same behaviour but with a different method name.
class Object
alias :must :should
end

11
tests/init.pp Normal file
View File

@ -0,0 +1,11 @@
# The baseline for module testing used by Puppet Labs is that each manifest
# should have a corresponding test manifest that declares that class or defined
# type.
#
# Tests are then run by using puppet apply --noop (to check for compilation errors
# and view a log of events) or by fully applying the test in a virtual environment
# (to compare the resulting system state to the desired state).
#
# Learn more about module testing here: http://docs.puppetlabs.com/guides/tests_smoke.html
#
include apparmor