Resource example

# Configure the device name as PuppetAgent. Specify the IP address, SSH username, and SSH password for the agent to connect to the Puppet master as 1.1.1.1, user, and 123456, respectively.

netdev_device{'device':
 ensure => undo_shutdown,
 username => 'user',
 password => '123456',
 ipaddr => '1.1.1.1',
 hostname => 'PuppetAgent'
}