How to list a files and its names in Puppet ( Linux )
We are having multiple unstructured static IpAddress configuration in linux.
Like the below :
( i ) ifcfg-eth0 ( ii ) ifcfg-eth0:1 ( iii ) ifcfg-eth0:2 ( iv ) ifcfg-eth1 ( v ) ifcfg-eth2:2 ( vi) ifcfg-eth3:5
Each machine, We are going to have some sorts of files ( like the above unstructured way).
I would like create new file with new ipaddress. Inorder to do that We need to know the last used file / used filename.
I think we could achieve it from the custom function, but not sure. Any help would be much appreciated.