Skip to content

Commit

Permalink
Merge pull request #1249 from LuvCurves/stable
Browse files Browse the repository at this point in the history
(FACT-1293) Add Arista Support
  • Loading branch information
joshcooper committed Jan 6, 2016
2 parents 83f805c + a35cbe7 commit b7a0cd4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions acceptance/config/aio/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
:pre_suite => [
'setup/common/pre-suite/000-delete-puppet-when-none.rb',
'setup/aio/pre-suite/010_Install.rb',
'setup/aio/pre-suite/021_InstallAristaModule.rb',
],
}
12 changes: 12 additions & 0 deletions acceptance/setup/aio/pre-suite/021_InstallAristaModule.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
platforms = hosts.map{|val| val[:platform]}
skip_test "No arista hosts present" unless platforms.any? { |val| /^eos-/ =~ val }
test_name 'Arista Switch Pre-suite' do
switchs = select_hosts({:platform => ['eos-4-i386']})

step 'add puppet user to switch' do
switchs.each do |switch|
on(switch, "/opt/puppetlabs/bin/puppet config --confdir /etc/puppetlabs/puppet set user root")
on(switch, "/opt/puppetlabs/bin/puppet config --confdir /etc/puppetlabs/puppet set group root")
end
end
end

0 comments on commit b7a0cd4

Please sign in to comment.