Skip to content

Commit

Permalink
Add metadata and test for Archlinux
Browse files Browse the repository at this point in the history
  • Loading branch information
vdloo committed Aug 22, 2015
1 parent 2088515 commit fa5b437
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
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 fa5b437

Please sign in to comment.