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