parent
							
								
									71dda86d94
								
							
						
					
					
						commit
						eabb6ab404
					
				| @ -7,8 +7,8 @@ long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) | |||||||
| version          '0.2.0' | version          '0.2.0' | ||||||
| 
 | 
 | ||||||
| depends 'kosmos-nodejs' | depends 'kosmos-nodejs' | ||||||
| depends 'kosmos-redis' |  | ||||||
| depends 'firewall' | depends 'firewall' | ||||||
| depends 'application_javascript' | depends 'application_javascript' | ||||||
| depends 'kosmos-ipfs' | depends 'kosmos-ipfs' | ||||||
| depends 'git' | depends 'git' | ||||||
|  | depends 'redisio' | ||||||
|  | |||||||
| @ -12,8 +12,9 @@ build_essential app_name do | |||||||
|   compile_time true |   compile_time true | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
|  | include_recipe 'redisio::default' | ||||||
|  | include_recipe 'redisio::enable' | ||||||
| include_recipe "kosmos-nodejs" | include_recipe "kosmos-nodejs" | ||||||
| include_recipe "kosmos-redis" |  | ||||||
| 
 | 
 | ||||||
| application app_path do | application app_path do | ||||||
|   data_bag = Chef::EncryptedDataBagItem.load('credentials', app_name) |   data_bag = Chef::EncryptedDataBagItem.load('credentials', app_name) | ||||||
|  | |||||||
| @ -13,8 +13,9 @@ build_essential app_name do | |||||||
|   compile_time true |   compile_time true | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
|  | include_recipe 'redisio::default' | ||||||
|  | include_recipe 'redisio::enable' | ||||||
| include_recipe "kosmos-nodejs" | include_recipe "kosmos-nodejs" | ||||||
| include_recipe "kosmos-redis" |  | ||||||
| include_recipe "kosmos-hubot::_user" | include_recipe "kosmos-hubot::_user" | ||||||
| 
 | 
 | ||||||
| application app_path do | application app_path do | ||||||
|  | |||||||
| @ -3,8 +3,9 @@ | |||||||
| # Recipe:: default | # Recipe:: default | ||||||
| # | # | ||||||
| 
 | 
 | ||||||
|  | include_recipe 'redisio::default' | ||||||
|  | include_recipe 'redisio::enable' | ||||||
| include_recipe "kosmos-nodejs" | include_recipe "kosmos-nodejs" | ||||||
| include_recipe "kosmos-redis" |  | ||||||
| 
 | 
 | ||||||
| include_recipe "kosmos-hubot::_user" | include_recipe "kosmos-hubot::_user" | ||||||
| include_recipe "kosmos-hubot::hal8000" | include_recipe "kosmos-hubot::hal8000" | ||||||
|  | |||||||
| @ -7,8 +7,9 @@ build_essential 'hal8000' do | |||||||
|   compile_time true |   compile_time true | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
|  | include_recipe 'redisio::default' | ||||||
|  | include_recipe 'redisio::enable' | ||||||
| include_recipe "kosmos-nodejs" | include_recipe "kosmos-nodejs" | ||||||
| include_recipe "kosmos-redis" |  | ||||||
| include_recipe "kosmos-hubot::_user" | include_recipe "kosmos-hubot::_user" | ||||||
| 
 | 
 | ||||||
| unless node.chef_environment == "development" | unless node.chef_environment == "development" | ||||||
|  | |||||||
| @ -12,8 +12,9 @@ build_essential app_name do | |||||||
|   compile_time true |   compile_time true | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
|  | include_recipe 'redisio::default' | ||||||
|  | include_recipe 'redisio::enable' | ||||||
| include_recipe "kosmos-nodejs" | include_recipe "kosmos-nodejs" | ||||||
| include_recipe "kosmos-redis" |  | ||||||
| include_recipe "kosmos-hubot::_user" | include_recipe "kosmos-hubot::_user" | ||||||
| 
 | 
 | ||||||
| # Needed for hubot-kredits | # Needed for hubot-kredits | ||||||
|  | |||||||
| @ -1,8 +1,8 @@ | |||||||
| [Unit] | [Unit] | ||||||
| Description=Start nodejs app | Description=Start nodejs app | ||||||
| <% unless @without_redis %> | <% unless @without_redis %> | ||||||
| Requires=redis-server.service | Requires=redis@6379.service | ||||||
| After=redis-server.service | After=redis@6379.service | ||||||
| <% end %> | <% end %> | ||||||
| 
 | 
 | ||||||
| [Service] | [Service] | ||||||
|  | |||||||
| @ -6,7 +6,7 @@ description      'Installs/Configures sockethub' | |||||||
| long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) | long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) | ||||||
| version          '0.2.0' | version          '0.2.0' | ||||||
| 
 | 
 | ||||||
| depends 'kosmos-redis' | depends 'firewall' | ||||||
|  | depends 'redisio' | ||||||
| depends 'kosmos-nodejs' | depends 'kosmos-nodejs' | ||||||
| depends 'kosmos-nginx' | depends 'kosmos-nginx' | ||||||
| depends 'firewall' |  | ||||||
|  | |||||||
| @ -3,8 +3,9 @@ | |||||||
| # Recipe:: default | # Recipe:: default | ||||||
| # | # | ||||||
| 
 | 
 | ||||||
|  | include_recipe 'redisio::default' | ||||||
|  | include_recipe 'redisio::enable' | ||||||
| include_recipe 'kosmos-nodejs' | include_recipe 'kosmos-nodejs' | ||||||
| include_recipe 'kosmos-redis' |  | ||||||
| 
 | 
 | ||||||
| user  = "sockethub" | user  = "sockethub" | ||||||
| group = "sockethub" | group = "sockethub" | ||||||
| @ -46,8 +47,8 @@ systemd_unit "sockethub_nodejs.service" do | |||||||
|   content <<-EOF |   content <<-EOF | ||||||
| [Unit] | [Unit] | ||||||
| Description=Start sockethub | Description=Start sockethub | ||||||
| Requires=redis-server.service | Requires=redis@6379.service | ||||||
| After=redis-server.service | After=redis@6379.service | ||||||
| 
 | 
 | ||||||
| [Service] | [Service] | ||||||
| ExecStart=#{entry} | ExecStart=#{entry} | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user