Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/npwalker/pe-stash-vagrant-stack
A Vagrant stack for testing PE with Atlassian Stash
https://github.com/npwalker/pe-stash-vagrant-stack
Last synced: about 1 month ago
JSON representation
A Vagrant stack for testing PE with Atlassian Stash
- Host: GitHub
- URL: https://github.com/npwalker/pe-stash-vagrant-stack
- Owner: npwalker
- Created: 2015-04-03T20:30:45.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-30T20:44:49.000Z (over 8 years ago)
- Last Synced: 2024-05-08T22:03:57.908Z (8 months ago)
- Language: Ruby
- Size: 101 KB
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PE Stash Vagrant Stack
The stash-server VM is setup to install stash in developer mode which is a 24-hour license. If you remove that flag you have to get an evaluation license key which will last 30 days. You may want to do that if you have something long standing to test.
http://blogs.atlassian.com/2014/11/automating-stash-deployments/
You can reach the Stash UI on port 7990
username: admin
password: adminThe goal of the stack is to facilitate testing and understanding of how to use setup r10k with stash.
The stack automates installation of the webhook on the puppet-master with some puppet code in site.pp. It also places the script that should be run from the stash post receive hook in /opt/puppet/sbin on the stash server.
If you are attempting to replicate this setup here are the steps that you'll need to complete that this stack takes care of for you.
1. Copy this script from the r10k module onto the stash server.
- https://github.com/acidprime/r10k/blob/master/files/stash_mco.rb
- I choose to use this file resource to do that for me
- https://github.com/npwalker/pe-stash-vagrant-stack/blob/master/puppet_code/site.pp#L64-L65
2. You'll want to classify your master node with the following code
- https://github.com/npwalker/pe-stash-vagrant-stack/blob/master/puppet_code/site.pp#L72-L80The final steps to setup the post receive hook are manual.
1. Install the following stash plugin
- https://marketplace.atlassian.com/plugins/com.ngs.stash.externalhooks.external-hooks
2. Make sure your ssh key is setup for root on the puppet master and you've configured it for your stash user
- https://confluence.atlassian.com/display/STASH/SSH+user+keys+for+personal+use
3. Configure a post-receive hook on your control repo
- https://confluence.atlassian.com/display/STASH/Using+repository+hooks
- The command to run is:
- `/opt/puppet/sbin/stash_mco.rb -k -t https://puppet:puppet@puppet-master:8088/payload`
4. You can confirm it all works by tailing the webhook logs while pushing a change to your control repo
- `tail -f -n 0 /var/log/webhook/*.log`## Other Notes
This is based on the puppet-debugging-kit.
https://github.com/Sharpie/puppet-debugging-kit