Skip to content

Commit

Permalink
Merge pull request #12 from Mylezeem/include_apache
Browse files Browse the repository at this point in the history
install: Use include ::apache rather than calling the class
  • Loading branch information
thejandroman committed Jul 7, 2014
2 parents acd8aca + 3f30288 commit 64fb5f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
5 changes: 1 addition & 4 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
}

if $::kibana3::manage_ws {
class {
'apache':
default_vhost => false,
}
include ::apache
}

if $::kibana3::k3_folder_owner {
Expand Down
18 changes: 6 additions & 12 deletions spec/classes/install_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
context 'with defaults' do
it { should compile }
it { should contain_class('git') }
it { should contain_class('apache') \
.with_default_vhost(false) }
it { should contain_class('apache') }
it { should contain_vcsrepo('/opt/kibana3') \
.with_revision('a50a913') \
.that_notifies('Class[Apache::Service]') \
Expand All @@ -31,8 +30,7 @@
let (:params) {{ :manage_git => false }}
it { should compile }
it { should_not contain_class('git') }
it { should contain_class('apache') \
.with_default_vhost(false) }
it { should contain_class('apache') }
it { should contain_vcsrepo('/opt/kibana3') \
.with_revision('a50a913') \
.that_notifies('Class[Apache::Service]') \
Expand Down Expand Up @@ -61,8 +59,7 @@
let (:params) {{ :k3_folder_owner => 'foo' }}
it { should compile }
it { should contain_class('git') }
it { should contain_class('apache')\
.with_default_vhost(false) }
it { should contain_class('apache') }
it { should contain_vcsrepo('/opt/kibana3') \
.with(
'revision' => 'a50a913',
Expand All @@ -82,8 +79,7 @@
let (:params) {{ :k3_install_folder => '/tmp/kibana3' }}
it { should compile }
it { should contain_class('git') }
it { should contain_class('apache')\
.with_default_vhost(false) }
it { should contain_class('apache') }
it { should contain_vcsrepo('/tmp/kibana3') \
.with_revision('a50a913') \
.that_notifies('Class[Apache::Service]') \
Expand All @@ -99,8 +95,7 @@
let (:params) {{ :k3_release => '3a485aa' }}
it { should compile }
it { should contain_class('git') }
it { should contain_class('apache')\
.with_default_vhost(false) }
it { should contain_class('apache') }
it { should contain_vcsrepo('/opt/kibana3') \
.with_revision('3a485aa') \
.that_notifies('Class[Apache::Service]') \
Expand All @@ -116,8 +111,7 @@
let (:params) {{ :ws_port => '8080' }}
it { should compile }
it { should contain_class('git') }
it { should contain_class('apache')\
.with_default_vhost(false) }
it { should contain_class('apache') }
it { should contain_vcsrepo('/opt/kibana3') \
.with_revision('a50a913') \
.that_notifies('Class[Apache::Service]') \
Expand Down

0 comments on commit 64fb5f8

Please sign in to comment.