Hi all,
I''ve got a problem and I can''t figure out why. Here is the
error
message
warning: Not using cache on failed catalog
warning: Configuration could not be instantiated: Could not find
dependency Exec[modprobebonding] for File[/etc/sysconfig/network-
scripts/ifcfg-bond0] at /file/xy.
And below is my setting.
Any idea are welcome.
Cheers,
Martial
class network {
# Setup a bond interface
define bond(
$ipaddress,
$netmask,
$network,
$ensure,
$options) {
$interface = $name
$onboot = $ensure ? {
up => "yes",
down => "no"
}
file { "/etc/sysconfig/network-scripts/ifcfg-
$interface":
owner => root,
group => root,
mode => 644,
content => template("network/sysconfig/network-
scripts/bond-ifcfg.$interface.erb"),
ensure => present,
alias => "ifcfg-$interface",
require => Exec["modprobebonding"]
}
}
define interface(
...
...
{
exec { "modprobe bonding":
cwd => "/var/tmp",
path => "/usr/bin:/usr/sbin:/bin:/sbin",
onlyif => "lsmod |grep bonding",
alias => modprobebonding
}
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---