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

Add vagrant config #16

Merged
merged 1 commit into from
May 7, 2015

Conversation

thcipriani
Copy link
Contributor

Addresses Issue #11

Creates two vagrant boxes—"deploy" and "target"

  • deploy - salt master and deployment_server
  • target - deploy target

example configuration is the same as in the README.md of the repo: it
checks out mediawiki-core in /srv/deployment/mediawiki/slot0

All dependencies for deploy should be setup via the states/deploy.sls

  • Apache git server
  • Redis returner server
  • TrebuchetTrigger from pip

Creates two vagrant boxes—"deploy" and "target"

* deploy - salt master and deployment_server
* target - deploy target

example configuration is the same as in the README.md of the repo: it
checks out mediawiki-core in /srv/deployment/mediawiki/slot0

All dependencies for deploy should be setup via the states/deploy.sls

* Apache git server
* Redis returner server
* TrebuchetTrigger from pip
if not grain:
return "No grain defined for this repo."
grain = "deployment_target:" + grain
grain = "deployment_target:" + repo
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'deployment_target:{0}'.format(repo)

or

'deployment_target:%s' % repo

is preferred. concating strings using + is discouraged.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(I have a personal preference for using .format)

@ryan-lane
Copy link
Member

Nice. Just a minor nitpick. Merging in.

ryan-lane added a commit that referenced this pull request May 7, 2015
@ryan-lane ryan-lane merged commit 3c9f86e into trebuchet-deploy:master May 7, 2015
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

Successfully merging this pull request may close these issues.

2 participants