Hi all, I'm configuring bonding on my hosts. I have no problem on copying/modifying netwrok-scripts/ifcfg-*, but I have to add some lines to modprobe.conf and modify the primary interface in function of its ip.
So, if host has an odd IP, primary interface must be eth1, if not, it must be eth0: Example: IP=192.168.1.10 options bonding mode=1 primary=eth0 miimon=100 IP=192.168.1.11 options bonding mode=1 primary=eth1 miimon=100 In bash, I have soemthing like: is_odd=$(( `echo $ipaddress|cut -d "." -f 4` % 2 )) but when I put it in puppet, it does not work: $primary_interface= (( `echo $ipaddress|cut -d "." -f 4` % 2 )) I suppose it's for ", pipes and the double parentheses. anyone could help me to translate it to puppet languaje? Any doc for this kind of operations?¿ Cheers, Arnau --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
