Skip to content

Commit

Permalink
Merge pull request #176 from vdloo/add-archlinux-to-params
Browse files Browse the repository at this point in the history
Archlinux support
  • Loading branch information
solarkennedy committed Aug 22, 2015
2 parents 1e9c9d2 + fa5b437 commit e6c0cde
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
} else {
$init_style = 'systemd'
}
} elsif $::operatingsystem == 'Archlinux' {
$init_style = 'systemd'
} elsif $::operatingsystem == 'SLES' {
$init_style = 'sles'
} elsif $::operatingsystem == 'Darwin' {
Expand Down
3 changes: 3 additions & 0 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@
"15.04"
]
},
{
"operatingsystem": "Archlinux"
},
{
"operatingsystem": "Fedora",
"operatingsystemrelease": [
Expand Down
9 changes: 9 additions & 0 deletions spec/classes/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,15 @@
it { should contain_file('/etc/init.d/consul').with_content(/daemon --user=consul/) }
end

context "On an Archlinux based OS" do
let(:facts) {{
:operatingsystem => 'Archlinux',
}}

it { should contain_class('consul').with_init_style('systemd') }
it { should contain_file('/lib/systemd/system/consul.service').with_content(/consul agent/) }
end

context "On an Amazon based OS" do
let(:facts) {{
:operatingsystem => 'Amazon',
Expand Down

0 comments on commit e6c0cde

Please sign in to comment.