Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Amazon OS #68

Merged
merged 1 commit into from
Jan 26, 2015
Merged
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
1 change: 1 addition & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
'Debian' => 'debian',
'SLES' => 'sles',
'Darwin' => 'launchd',
'Amazon' => 'sysv',
default => undef
}
if $init_style == undef {
Expand Down
10 changes: 10 additions & 0 deletions spec/classes/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,16 @@
it { should contain_file('/etc/init.d/consul').with_content(/daemon --user=consul/) }
end

context "On an Amazon based OS" do
let(:facts) {{
:operatingsystem => 'Amazon',
:operatingsystemrelease => '3.10.34-37.137.amzn1.x86_64'
}}

it { should contain_class('consul').with_init_style('sysv') }
it { should contain_file('/etc/init.d/consul').with_content(/daemon --user=consul/) }
end

context "On a redhat 7 based OS" do
let(:facts) {{
:operatingsystem => 'CentOS',
Expand Down