Configuration procedure
Configure SSH login and enable NETCONF over SSH on the device. (Details not shown.)
On the Puppet server, create the modules/custom/manifests directory in the /etc/puppet/ directory to store configuration manifests.
$ mkdir -p /etc/puppet/modules/custom/manifests
Create configuration manifest init.pp in the /etc/puppet/modules/custom/manifests directory as follows:
netdev_device{'device': ensure => undo_shutdown, username => 'user', password => 'passwd', ipaddr => '1.1.1.1', } netdev_vlan{'vlan3': ensure => undo_shutdown, id => 3, require => Netdev_device['device'], }
The /etc/puppet/manifests directory is automatically created when the Puppet master is installed.
Start Puppet on the device.
<PuppetAgent> system-view [PuppetAgent] third-part-process start name puppet arg agent --certname=1.1.1.1 --server=1.1.1.2
Configure the Puppet master to authenticate the request from the Puppet agent.
$ puppet cert sign 1.1.1.1
After passing the authentication, the Puppet agent requests the latest configuration for it from the Puppet master.