Hello,
Hello,
RHEL6 x86_64, Puppet master 2.7.18, clients 2.7.19.
One of my nodes reports:
Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate
declaration: Package[undef] is already declared in file
/etc/puppet/modules/initial_config/manifests/basic_packages.pp at line 22;
cannot redeclare at /etc/puppet/modules/authconfig/manifests/init.pp:7 on node
wp-prd.library.northwestern.edu
However, this only happens when Puppet runs as a service, "puppet agent --test"
runs complete fine.
Packages are specified on a case statement with a trivial custom fact for major
RH release[1]
My guess that during a run as a service, that fact isn't processed, but during
a "puppet agent --test" it is. Any tips on how I might troubleshoot this
discrepancy?
Thank you!
---
[1]
class authconfig::params {
case $::osfamily {
'RedHat': {
case $::operatingsystemmajorversion {
'6': {
$authpackages = ['sudo','authconfig','krb5-workstation',
'samba-winbind', 'pam_krb5']
$username = ''
$passwd = ''
file { "/etc/pam.d/sshd":
ensure => present,
owner => 'root',
group => 'root',
content => template("authconfig/pam.d/sshd.erb"),
}
}
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.