Set up Blossom server on blossom.kosmos.org
This commit is contained in:
28
site-cookbooks/kosmos_blossom/recipes/default.rb
Normal file
28
site-cookbooks/kosmos_blossom/recipes/default.rb
Normal file
@@ -0,0 +1,28 @@
|
||||
#
|
||||
# Cookbook Name:: kosmos_blossom
|
||||
# Recipe:: default
|
||||
#
|
||||
|
||||
credentials = Chef::EncryptedDataBagItem.load('credentials', 'blossom')
|
||||
|
||||
node.default['blossom']['storage']['backend'] = 's3'
|
||||
node.default['blossom']['storage']['s3']['access_key'] = credentials['s3_access_key']
|
||||
node.default['blossom']['storage']['s3']['secret_key'] = credentials['s3_secret_key']
|
||||
|
||||
node.default['blossom']['dashboard']['enabled'] = true
|
||||
node.default['blossom']['dashboard']['username'] = credentials['admin_username'] || 'admin'
|
||||
node.default['blossom']['dashboard']['password'] = credentials['admin_password']
|
||||
|
||||
node.default['blossom']['landing']['title'] = 'Kosmos Blossom Server'
|
||||
|
||||
node.default['blossom']['repo_url'] = 'https://github.com/67P/blossom-server.git'
|
||||
node.default['blossom']['revision'] = 'master'
|
||||
|
||||
include_recipe 'blossom::default'
|
||||
|
||||
firewall_rule 'blossom' do
|
||||
port node['blossom']['port']
|
||||
source '10.1.1.0/24'
|
||||
protocol :tcp
|
||||
command :allow
|
||||
end
|
||||
Reference in New Issue
Block a user