Hi,
I'm trying to add libapache2-mod-php5 as a dependency in my php5 module here is
what I get
info: Loading facts in raidcontroller
info: Loading facts in raidcontroller
debug: Format s not supported for Puppet::Resource::Catalog; has not
implemented method 'from_s'
err: Could not retrieve catalog from remote server: Error 400 on SERVER:
Duplicate definition: Package[libapache2-mod-php5] is already defined in file
/etc/puppet/modules/php5/manifests/init.pp at line 18; cannot redefine at
/etc/puppet/modules/php5/manifests/init.pp:18 on node webserver1.example.com
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
I do not have defined Package[libapache2-mod-php5] anywhere else in any file
(According to grep -ir)
The class looks like this:
class php5::debian {
file { "/etc/php5/apache2/php.ini":
owner => root,
group => root,
mode => 644,
source => [
"puppet:///php5/$operatingsystem/$lsbdistcodename/$fqdn/php.ini",
"puppet:///php5/$operatingsystem/$lsbdistcodename/$hostname/php.ini",
"puppet:///php5/$operatingsystem/php.ini.$hostname",
"puppet:///php5/php.ini.$hostname",
"puppet:///php5/php.ini",
], notify => Exec["force-reload-apache2"],
}
define enablemodule($ensure='present') {
package { ['libapache2-mod-php5']: ensure => installed }
case $ensure {
present: {
package { [$name]: ensure => installed }
}
}
}
define enablecli($ensure='present') {
case $ensure {
present: {
package { [php5-cli]: ensure => installed }
file { "/etc/php5/cli/php.ini":
owner => root,
group => root,
mode => 644,
source => [
"puppet:///php5/$operatingsystem/$lsbdistcodename/$fqdn/php.ini.cli",
"puppet:///php5/$operatingsystem/$lsbdistcodename/$hostname/php.ini.cli",
"puppet:///php5/$operatingsystem/php.ini.$hostname",
"puppet:///php5/php.ini.cli.$hostname",
"puppet:///php5/php.ini.cli",
]
}
}
}
}
}
can any one explain this behavior ?
/Kim
--
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.