Duplicate declaration, File is already declared in file #378
Comments
Boxen already generates a .gemrc by default: https://github.com/boxen/puppet-boxen/blob/master/manifests/gemrc.pp Puppet will not attempt to create the same file twice. I worked around this by manipulating the existing .gemrc file instead. In my case something like:
|
Oh thanks @mdelagralfo. Seems to me that this could be a common problem. Should not your answer be in a FAQ or something? And actually I don't really know how I can use your solution to create a symlink to my file :| |
Hey @Dagnan, you can overwrite the .gemrc definition form puppet-boxen like this: boxen/puppet-boxen#36 (comment) |
@jozefizso Thanks. But that way I have to put the gemrc file in the boxen repo right? |
Try this if you need to create symlink to ~/.gemrc: File <| title == "/Users/${::boxen_user}/.gemrc" |> {
ensure => 'link',
target => "~/.mygemrc"
} I'm not sure if this definition will override whole file definition, or you will have to somehow discard the |
Setting it to |
@Dagnan can this issue be closed? |
I can't remember what I did or not, anyway you can close it. Thanks! |
I'm not a maintainer. Do you mind closing? |
Hi.
I' m trying to setup Boxen.
The full error is:
The file from where the problemes comes is https://github.com/Dagnan/fidzup-boxen/blob/master/modules/people/manifests/dagnan.pp
The gemrc is only declared once so I don't really understand what the problem is.
And after fixing it, what would be the correct way to relaunch boxes? Just script/boxen? Or nuking it before? Thanks!
The text was updated successfully, but these errors were encountered: