Initial version of the cookbook to install prosody
This commit is contained in:
		
							parent
							
								
									cb2922b1c9
								
							
						
					
					
						commit
						2c2cdeb15a
					
				
							
								
								
									
										6
									
								
								site-cookbooks/5apps-xmpp_server/CHANGELOG.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								site-cookbooks/5apps-xmpp_server/CHANGELOG.md
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,6 @@ | ||||
| # 5apps-xmpp_server CHANGELOG | ||||
| 
 | ||||
| This file is used to list changes made in each version of the 5apps-xmpp_server cookbook. | ||||
| 
 | ||||
| ## 0.1.0 | ||||
| - [Greg Karékinian] - Initial release of 5apps-xmpp_server | ||||
							
								
								
									
										3
									
								
								site-cookbooks/5apps-xmpp_server/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								site-cookbooks/5apps-xmpp_server/README.md
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,3 @@ | ||||
| # 5apps-xmpp_server Cookbook | ||||
| 
 | ||||
| This cookbook installs prosody as 5apps' private XMPP server | ||||
							
								
								
									
										10
									
								
								site-cookbooks/5apps-xmpp_server/metadata.rb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								site-cookbooks/5apps-xmpp_server/metadata.rb
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,10 @@ | ||||
| name             '5apps-xmpp_server' | ||||
| maintainer       'Kosmos' | ||||
| maintainer_email 'mail@kosmos.org' | ||||
| license          'All rights reserved' | ||||
| description      'Installs/Configures 5apps-xmpp_server' | ||||
| long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) | ||||
| version          '0.1.0' | ||||
| 
 | ||||
| depends 'firewall' | ||||
| depends 'apt' | ||||
							
								
								
									
										25
									
								
								site-cookbooks/5apps-xmpp_server/recipes/default.rb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								site-cookbooks/5apps-xmpp_server/recipes/default.rb
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,25 @@ | ||||
| # | ||||
| # Cookbook Name:: 5apps-xmpp_server | ||||
| # Recipe:: default | ||||
| # | ||||
| # Copyright 2016, 5apps | ||||
| # | ||||
| # All rights reserved - Do Not Redistribute | ||||
| # | ||||
| 
 | ||||
| firewall_rule "xmpp" do | ||||
|   port     [5222, 5269] | ||||
|   protocol :tcp | ||||
|   command  :allow | ||||
| end | ||||
| 
 | ||||
| apt_repository "prosody" do | ||||
|   uri "https://packages.prosody.im/debian" | ||||
|   distribution node["lsb"]["codename"] | ||||
|   components ["main"] | ||||
|   key "https://prosody.im/files/prosody-debian-packages.key" | ||||
| end | ||||
| 
 | ||||
| package "prosody" | ||||
| 
 | ||||
| # TODO: Generate the config files | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user