Hi Claude, When setting up your control repo, please ensure that you have all of your forge modules listed in the Puppetfile. Code manager will overwrite the contents of your environments directory with what is defined in the control repo and Puppetfile.
Here are some helpful links to help you get started setting up code manager on PE. https://puppet.com/docs/pe/2019.2/control_repo.html#how-the-control-repository-works <https://puppet.com/docs/pe/2019.2/control_repo.html#how-the-control-repository-works> https://puppet.com/docs/pe/2019.2/puppetfile.html#about-puppetfiles <https://puppet.com/docs/pe/2019.2/puppetfile.html#about-puppetfiles> https://puppet.com/docs/pe/2019.2/puppetfile.html#declare-puppet-forge-modules-in-the-puppetfile <https://puppet.com/docs/pe/2019.2/puppetfile.html#declare-puppet-forge-modules-in-the-puppetfile> https://puppet.com/docs/pe/2019.2/code_mgr_how_it_works.html#how_code_manager_works <https://puppet.com/docs/pe/2019.2/code_mgr_how_it_works.html#how_code_manager_works> https://puppet.com/docs/pe/2019.2/code_mgr_config.html#configuring_code_manager <https://puppet.com/docs/pe/2019.2/code_mgr_config.html#configuring_code_manager> -- Becca Robinson > On Nov 22, 2019, at 7:08 AM, Claude Bisdorff <bisdorffcla...@gmail.com> wrote: > > Hello, > I recently started to test puppet enterprise. > We did the integration with gitlab to manage code. Deploying code from gitlab > works well, but each time I do a "puppet-code deploy -all" or puppet-code > deploy <environment>, this deletes the default production environment( > "/etc/puppetlabs/code/environments/production" ) on my puppet server, thus > also all the modules I have installed from puppet forge. Restarting > puppetserver of course recreates it, but all my modules are lost. > > I don't know if it is related to my config in puppet or if I did some mistake > in gitlab, since I played around with the environments. > I see an environment master in gitlab and two custom ones I created. The > production environment does not appear in gitlab, is this normal? > > What else could be the reason for this? > > Kind regards > Claude > > > > -- > 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 puppet-users+unsubscr...@googlegroups.com > <mailto:puppet-users+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/ccf3aa61-73c5-40b6-a64d-f3abc5ffcf60%40googlegroups.com > > <https://groups.google.com/d/msgid/puppet-users/ccf3aa61-73c5-40b6-a64d-f3abc5ffcf60%40googlegroups.com?utm_medium=email&utm_source=footer>. -- 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/737B1ED9-9ACC-4683-9B4A-B069DBF805DA%40puppet.com.