default production environment gets deleted by puppet-code

8 views
Skip to first unread message

Claude Bisdorff

unread,
Nov 22, 2019, 9:17:58 AM11/22/19
to Puppet Users
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 


Becca Robinson

unread,
Nov 22, 2019, 11:39:01 AM11/22/19
to puppet...@googlegroups.com
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.




-- 
Becca Robinson




--
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...@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.

Reply all
Reply to author
Forward
0 new messages