Closed antgel closed 6 years ago
Please, in general, do your tests using the integration branch of psick control-repo, there is where we have the latest code.
Documenttion here has to be cleaned up, in short: if you install puppet agent before cloning the control repo, it should be enough to run:
bin/puppet_deploy_controlrepo.sh
The scripts does the commands mentioned in the docs and eventually move the existing default production environment. If you run that command before installing puppet then you actually get the error, I suppose the -y options which assumes yes to all prompts, in this case needs the default no.
As for the last question the ansuwer is yes, if you use r10k environments should not be populated, but we need the code to be deployed somewhere to kickstart the puppetserver configuration, and in any case, once configured, r10k should be able to remove the existing production branch.
For a setup based on a git clone on environments production give a look to: https://github.com/example42/psick/blob/integration/hieradata/nodes/puppet.foss.psick.io.yaml
at the moment I prefer to avoid to use the r10k option since the r10k module has too many prerequisites, but that's also a possible way.
Finally, note that only recently I started to work on the foss puppetserver setup, there are still some rough edges.
@antgel This should be fixed now, in the production branch.
Tested and working, thanks!
I started again with a vanilla Ubuntu 16.04 instance, and latest psick production branch.
According to the docs, we clone psick to
/etc/puppetlabs/code/environments/production
:However, this causes a problem, as when we install the puppet-agent package via
bin/puppet_install.sh
(the exact line beingapt-get install puppet-agent -y
), it fails because environment.conf is already in/etc/puppetlabs/code/environments/production/environment.conf
following thegit clone
:We can confirm this:
I guess that the
-y
on line 79 ofbin/puppet_install.sh
(apt-get install puppet-agent -y
) is meant to handle this, but either 1) it's not working as intended or 2) I'm tired and trying to do something very wrong.Plus, shouldn't
/etc/puppetlabs/code/environments
be managed by r10k anyway, instead of having psick cloned into it?