[Puppet Users] transitioning a file resource

Craig White
Wed, 02 May 2012 23:10:07 -0000

for reasons probably not important to the discussion, I am trying to transition
my Ubuntu setups from using libnss-ldap / libpam-ldap over to the libnss-ldapd /
libpam-ldapd. There some files that have minor differences such as
/etc/pam.d/common-session.

So I have my ldap module which manages this file and all my servers are
currently using this setup.

I have essentially duplicated the ldap module into ldap_alt module which I
thought could peaceably coexist with the ldap module as long as both
weren''t assigned but alas...

notice: Ignoring --listen on onetime run
info: Retrieving plugin
info: Loading facts in passenger_version
info: Loading facts in datacenter
info: Loading facts in passenger_version
info: Loading facts in datacenter
err: Could not retrieve catalog from remote server: Error 400 on SERVER:
Duplicate definition: File[/etc/pam.d/common-session] is already defined in file
/etc/puppet/modules/ldap/manifests/configure.pp at line 103; cannot redefine at
/etc/puppet/modules/ldap_alt/manifests/configure.pp:103 on node nxpc.ttinet
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run

which makes me think that I will have to have to do all of the package
management within a single module unless I am missing something.

--
Craig White ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ craig.white@ttiltd.com
1.800.869.6908 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ www.ttiassessments.com

Need help communicating between generations at work to achieve your desired
success? Let us help!