I'm trying to use puppet's network device management feature to configure Cisco routers.
I know its just running ios commands so how can I extend it by having it run my own ios commands? I want to use this to create my own facts and do other stuff.
On a windows endpoint I can use exec to run shell commands:
exec { 'test':
command => 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -executionpolicy remotesigned -file C:\test.ps1',
}
How can I do something like this with puppet device?
When I tried running an ios command it gave me an error:
exec { 'test':
command => 'show ip int bri'
}
Info: Caching catalog for 123.123.123.123
Error: Failed to apply catalog: Validation of Exec[test] failed: 'show ip int bri' is not qualified and no path was specified. Please qualify the command or specify a path. at /etc/puppet/environments/production/modules/ciscorouterconfig/manifests/init.pp:82
shell returned 1