Mellanox MLNX-OS User Manual for SX1018HP Ethernet Managed Blade Switch

Rev 2.10
Mellanox Technologies
365
Mellanox Technologies Confidential
4.14 Puppet Agent
MLNX-OS includes a built-in agent for the open-source “Puppet” configuration change manage-
ment system. The Puppet agent enable
s configuring Mellanox switches in accordance with the
standard “puppet-netdev-stdlibtype library and with the “Mellanox-netdev-stdlib-mlnxos” and
“Mellanox-netdev-ospf-stdlib” type libraries provided by Mellanox Technologies to the Puppet
community.
For more information, please refer to the CLI commands,
to the NetDev documentation at https:/
/github.com/puppetlabs/puppet-netdev-stdlib and to Mellanox’s Puppet modules GitHub page at
https://github.com/Mellanox.
4.14.1 Setting the Puppet Server
To set the puppet server:
Step 1. Define the Puppet server (the name has to be a DNS and not IP). Run:
Step 2. Enable the Puppet agent. Run:
Step 3. (Optional) Verify there are no errors in the Puppet agent log. Run:
4.14.2 Accepting the Switch Request
To accept the switch’s request:
Option 1 – using Puppet cli commands:
Step 1. Ensure the certificate request. Run:
Step 2. Sign the certificate request if the cert_name parameter (e.g. switch1.domain) is in the list. Run:
Step 3. Verify the request is removed from the Puppet certification list. Run:
Option 2 – accept certificate requests in the puppet server console:
Step 1. Go to the “nodes requests” page (the button is at the top right), and wait for a certificate request
for the switch and then accept it.
switch (config) # puppet-agent master-hostname <please_type_your_hostname_DNS_here>
switch (config) #
switch (config) # puppet-agent enable
switch (config) #
switch (config) # show puppet-agent log continuous
switch (config) #
# puppet cert list
"switch-632476.mtr.labs.mlnx"
(F4:B4:20:3B:2B:11:76:37:14:34:D0:D1:03:ED:3D:B5)
# puppet cert sign <full_domain_name>
# puppet cert list