Chef-client on Arista?

I created this page as I was constantly on the hunt as to how to load chef on Arista switches.  I cant say I was super happy with the Arista / chef integration, I actually switched over to Ansible for my network management tool (more to come later).

But at least this process will give some guidance on the process of installing chef client on Arista devices. 

==========================
#bootstrap arista switches

copy ftp://10.21.93.13/pub/chef/chef-12.16.42-1.el6.i386.rpm extension:

extension chef-12.16.42-1.el6.i386.rpm

copy installed-extensions boot-extensions

create /etc/chef/client.rb

###############################
[admin@sn1-rsw-e02-40 chef]$ cat client.rb
ssl_verify_mode :verify_none
log_level :info
log_location STDOUT
node_name ‘admin’
client_key ‘/etc/chef/admin.pem’
validation_client_name ‘puretec-validator’
validation_key ‘/etc/chef/puretec-validator.pem’
chef_server_url ‘https://chef-server04.puretec.purestorage.com:443/organizations/puretec’
enable_reporting “true”
ssl_verify_mode :verify_none
###############################

create /etc/chef/admin.pem

create /etc/chef/puretec-validator.pem

execute sudo chef-client –config /etc/chef/client.rb -j /etc/chef/file.json –environment _default
sudo chef-client –config /etc/chef/client.rb –environment _default

Be the first to comment

Leave a Reply