What's the best practice to define two mount resources with same name, but different fstypes or ensure parameter ? In my particular case, I have the following :
Two mounts defined as virtual resources with same name but different fstype. One is is ensuring present, other absent. Puppet doesn't like it, Looking at a bug report earlier ( http://projects.puppetlabs.com/issues/7491 ), I followed the suggestion, but it doesn't help. puppet throws this error : Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Cannot alias Mount[umnt_sdisk_3] to ["/data/01"] at /etc/puppet/modules/mname/manifests/datavers.pp:190; resource ["Mount", "/data/01"] already declared at /etc/puppet/modules/mname/manifests/datavers.pp:162 at /etc/puppet/modules/mname/manifests/datavers.pp:190 on node node_name @mount { "mnt_sdisk_3" : device => "/dev/sdb1", name => "/data/01", fstype => "auto", options => "defaults", dump => "0", pass => "0", ensure => present; } @mount { "umnt_sdisk_3" : device => "/dev/sdb1", name => "/data/01", fstype => "ext3", options => "defaults", dump => "0", pass => "0", ensure => absent; } -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/GT3RbAlL1nIJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.