Running same configuration twice into the same server?

asked 2016-10-13 03:40:19 -0500

Samu Niveri gravatar image

How do I run the same content from puppet master to a single server twice? I am in situation where I have multiple environments, and I should update one of the environments twice. In practice;

  1. Deploying latest changes with puppet to the development node to be able to test the new solution
  2. Updating the database from other environment to this development environment to get fresh data
  3. Deploying again exactly the same content to this development environment which was ran on the step 1

So now I am asking how to do the step 3? I am have been only relying on the puppet functionality for deploying the changes, and now when facing the step 3, nothing actually changes in the repository and when running puppet agent, nothing then happens.

edit retag flag offensive close merge delete

Comments

Nothing should change, if the database is the only thing changing from production the your configuration doesn't change at all. Am I missing something?

puser gravatar imagepuser ( 2016-10-13 12:12:46 -0500 )edit

Yes, The application, which configuration I am managing with puppet, actually stores some of the configuration details in files, some in the database and most importantly the whole datamodel is modified with some command line utilities = DB in Prod and DEV can be really different.

Samu Niveri gravatar imageSamu Niveri ( 2016-10-14 00:29:59 -0500 )edit

What I am saying is, that you have a puppet configuration that runs when you do a dev deployment. Great. Now you have a production deployment and puppet doesn't fire? That tells me that the configurations are the same. If puppet doesn't do anything it doesn't think it should.

puser gravatar imagepuser ( 2016-10-14 07:17:28 -0500 )edit

Last sentence I agree. And my question exactly is that can I force run the same deployment content again which was already earlier ran?

Samu Niveri gravatar imageSamu Niveri ( 2016-10-14 07:46:31 -0500 )edit

It will run in the next thirty minutes. Or you can do a 'puppet apply' or 'puppet agent'. It will run but it may not change anything. Again if it runs and it doesn't change anything you know it is good because it checks the same code and makes confirms it's state.

puser gravatar imagepuser ( 2016-10-14 07:49:02 -0500 )edit