Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for deploying just a single module #67

Closed
jovrum opened this issue Aug 18, 2017 · 4 comments
Closed

Support for deploying just a single module #67

jovrum opened this issue Aug 18, 2017 · 4 comments

Comments

@jovrum
Copy link
Contributor

jovrum commented Aug 18, 2017

r10k supports deploying a single module to a specific environment like so:

r10k deploy module foobar -e production

This deploys module foobar to environment production but leaves other modules untouched.

This is useful when pinning a lot of modules to the latest version or head of a git branch and only doing full environment deploys on a regular basis. It would be really nice if g10k supported the same workflow.

@xorpaul
Copy link
Owner

xorpaul commented Aug 24, 2017

To be honest I could not get it to work with r10k.

Could you please provide a complete command including a r10k config (like https://github.com/xorpaul/g10k/blob/master/test.yaml) that does what you want?

@jovrum
Copy link
Contributor Author

jovrum commented Aug 24, 2017

Sure, here's a control repository, r10k configuration file and a readme describing how to reproduce:

https://github.com/jovrum/r10k-single-module-env

One thing I noticed is that the $basedir/production directory has to exist when doing a single-module deployment in the production environment, otherwise r10k will exit almost immediately with status 0 and no output. r10k deploy environment ... creates the necessary directory structure. This has not been a problem for me in practice, but I can't see how this would be intended or useful behavior.

@xorpaul
Copy link
Owner

xorpaul commented Sep 1, 2017

@xorpaul xorpaul closed this as completed Sep 1, 2017
@jovrum
Copy link
Contributor Author

jovrum commented Sep 4, 2017

Awesome, thanks! Will test it out later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants