Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

Commit

Permalink
Merge pull request #116 from dhollinger/redis_deps
Browse files Browse the repository at this point in the history
Add/fix redis dependency
  • Loading branch information
bastelfreak authored Mar 9, 2020
2 parents 23f1907 + 4d0aad9 commit 5694783
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/vanagon/components/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@

if platform.is_deb?
pkg.requires 'sqlite3'
pkg.requires 'redis-server'
elsif platform.is_el?
pkg.requires 'sqlite'
pkg.requires 'redis'
else
raise("Plaform #{platform.name} is not yet supported")
end
pkg.requires 'redis'

pkg.build_requires 'ruby-2.6'
pkg.build_requires 'sqlite3'
Expand Down
17 changes: 17 additions & 0 deletions resources/generate_token
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash

echo "This command will generate an API token for use with Puppet Webhook and will replace any existing token you currently have"

read -p "are you sure? (y/N)" -n 1 -r

if [[ $REPLY =~ ^[Yy]$ ]]
then
export SINATRA_EN=production
export RUBYLIB=/opt/voxpupuli/webhook/lib/ruby:/opt/voxpupuli/webhook:/opt/voxpupuli/webhook/app/models
export GEM_HOME=/opt/voxpupuli/webhook/lib/ruby/gems/2.6.0
export GEM_PATH=$GEM_HOME
export LD_PATH=/opt/voxpupuli/webhook/lib
export PATH=/opt/voxpupuli/webhook/bin:$PATH
cd /opt/voxpupuli/webhook && bin/bundle exec rake db:generate_token --trace
echo "Be sure to save this somewhere as you won't be able to retrieve it again without generating a new token!"
fi

0 comments on commit 5694783

Please sign in to comment.