Permalink
Browse files

Initial commit of backuppc-server cookbook

  • Loading branch information...
0 parents commit a38637aa6f161b43ced5ce2d83f39ccdd6b31bbd @JeanMertz JeanMertz committed Mar 2, 2014
@@ -0,0 +1,2 @@
+source 'https://api.berkshelf.com'
+metadata
@@ -0,0 +1,23 @@
+{
+ "dependencies": {
+ "backuppc-server": {
+ "locked_version": "0.1.0",
+ "path": "."
+ },
+ "apache2": {
+ "locked_version": "1.9.6"
+ },
+ "perl": {
+ "locked_version": "1.2.2"
+ },
+ "iptables": {
+ "locked_version": "0.12.0"
+ },
+ "logrotate": {
+ "locked_version": "1.5.0"
+ },
+ "pacman": {
+ "locked_version": "1.1.1"
+ }
+ }
+}
@@ -0,0 +1,5 @@
+# CHANGELOG
+
+## UNRELEASED
+
+- initial commit of `backuppc-server`
@@ -0,0 +1,5 @@
+source 'https://rubygems.org'
+ruby '2.1.0'
+
+gem 'chef', '11.10.0'
+gem 'berkshelf', '3.0.0.beta6'
@@ -0,0 +1,141 @@
+GEM
+ remote: https://rubygems.org/
+ specs:
+ addressable (2.3.5)
+ berkshelf (3.0.0.beta6)
+ addressable (~> 2.3.4)
+ berkshelf-api-client (~> 1.1)
+ buff-config (~> 0.2)
+ buff-extensions (~> 0.4)
+ buff-shell_out (~> 0.1)
+ faraday (~> 0.8.5)
+ minitar (~> 0.5.4)
+ octokit (~> 2.6)
+ retryable (~> 1.3.3)
+ ridley (~> 2.3)
+ solve (>= 0.8.0)
+ thor (~> 0.18.0)
+ berkshelf-api-client (1.1.1)
+ faraday (~> 0.8.5)
+ buff-config (0.4.0)
+ buff-extensions (~> 0.3)
+ varia_model (~> 0.1)
+ buff-extensions (0.5.0)
+ buff-ignore (1.1.1)
+ buff-ruby_engine (0.1.0)
+ buff-shell_out (0.1.1)
+ buff-ruby_engine (~> 0.1.0)
+ celluloid (0.15.2)
+ timers (~> 1.1.0)
+ celluloid-io (0.15.0)
+ celluloid (>= 0.15.0)
+ nio4r (>= 0.5.0)
+ chef (11.10.0)
+ chef-zero (~> 1.7, >= 1.7.2)
+ diff-lcs (~> 1.2, >= 1.2.4)
+ erubis (~> 2.7)
+ highline (~> 1.6, >= 1.6.9)
+ json (>= 1.4.4, <= 1.8.1)
+ mime-types (~> 1.16)
+ mixlib-authentication (~> 1.3)
+ mixlib-cli (~> 1.4)
+ mixlib-config (~> 2.0)
+ mixlib-log (~> 1.3)
+ mixlib-shellout (~> 1.3)
+ net-ssh (~> 2.6)
+ net-ssh-multi (~> 1.1)
+ ohai (~> 6.0)
+ pry (~> 0.9)
+ puma (~> 1.6)
+ rest-client (>= 1.0.4, < 1.7.0)
+ yajl-ruby (~> 1.1)
+ chef-zero (1.7.3)
+ hashie (~> 2.0)
+ json
+ mixlib-log (~> 1.3)
+ moneta (< 0.7.0)
+ rack
+ coderay (1.1.0)
+ diff-lcs (1.2.5)
+ erubis (2.7.0)
+ faraday (0.8.9)
+ multipart-post (~> 1.2.0)
+ hashie (2.0.5)
+ highline (1.6.21)
+ ipaddress (0.8.0)
+ json (1.8.1)
+ method_source (0.8.2)
+ mime-types (1.25.1)
+ minitar (0.5.4)
+ mixlib-authentication (1.3.0)
+ mixlib-log
+ mixlib-cli (1.4.0)
+ mixlib-config (2.1.0)
+ mixlib-log (1.6.0)
+ mixlib-shellout (1.3.0)
+ moneta (0.6.0)
+ multipart-post (1.2.0)
+ net-http-persistent (2.9.4)
+ net-ssh (2.8.0)
+ net-ssh-gateway (1.2.0)
+ net-ssh (>= 2.6.5)
+ net-ssh-multi (1.2.0)
+ net-ssh (>= 2.6.5)
+ net-ssh-gateway (>= 1.2.0)
+ nio4r (1.0.0)
+ octokit (2.7.1)
+ sawyer (~> 0.5.2)
+ ohai (6.20.0)
+ ipaddress
+ mixlib-cli
+ mixlib-config
+ mixlib-log
+ mixlib-shellout
+ systemu (~> 2.5.2)
+ yajl-ruby
+ pry (0.9.12.6)
+ coderay (~> 1.0)
+ method_source (~> 0.8)
+ slop (~> 3.4)
+ puma (1.6.3)
+ rack (~> 1.2)
+ rack (1.5.2)
+ rest-client (1.6.7)
+ mime-types (>= 1.16)
+ retryable (1.3.5)
+ ridley (2.5.1)
+ addressable
+ buff-config (~> 0.2)
+ buff-extensions (~> 0.3)
+ buff-ignore (~> 1.1)
+ buff-shell_out (~> 0.1)
+ celluloid (~> 0.15)
+ celluloid-io (~> 0.15)
+ erubis
+ faraday (~> 0.8.4)
+ hashie (>= 2.0.2)
+ json (>= 1.7.7)
+ mixlib-authentication (>= 1.3.0)
+ net-http-persistent (>= 2.8)
+ retryable
+ solve (>= 0.4.4)
+ varia_model (~> 0.3)
+ sawyer (0.5.3)
+ addressable (~> 2.3.5)
+ faraday (~> 0.8, < 0.10)
+ slop (3.4.7)
+ solve (0.8.2)
+ systemu (2.5.2)
+ thor (0.18.1)
+ timers (1.1.0)
+ varia_model (0.3.2)
+ buff-extensions (~> 0.2)
+ hashie (>= 2.0.2)
+ yajl-ruby (1.2.0)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ berkshelf (= 3.0.0.beta6)
+ chef (= 11.10.0)
@@ -0,0 +1,68 @@
+# Backuppc-server cookbook
+
+Installs Backuppc 4 (alpha 3) server
+
+## Requirements
+
+## Platforms
+
+* Debian
+
+### Dependencies
+
+* apache2 (for GUI access)
+* perl (to build from source)
+
+## Attributes
+
+### default
+
+Namespace | Description |Type | Default
+--------- |------------- |----- |--------
+`['backuppc']['client']['user']` | Name of user to connect to clients | String | backupper
+`['backuppc']['version']` | BackupPC version | String | 4.0.0alpha3
+`['backuppc']['checksum']` | The SHA256 checksum of the tar file that is being downloaded | String | 4f41d663dcee6f39a2e46ad652958f2bb60dc393
+`['backuppc']['rsync_bpc_version']` | BackupPC custom rsync_bpc version | String | 3.0.9.3
+`['backuppc']['rsync_bpc_checksum']` | The SHA256 checksum of the tar file that is being downloaded | String | 7d6a3e24bb8f705e16da2b8906b960d9da34e64d
+`['backuppc']['xs_version']` | BackupPC XS module version | String | 0.3.0
+`['backuppc']['xs_checksum']` | The SHA256 checksum of the tar file that is being downloaded | String | 1863b94d5662348fd7e9ccc3334a6adab214a779
+`['backuppc']['home_path']` | Install path | String | /opt/backuppc-4.0.0alpha3
+`['backuppc']['backups_path']` | Backups path | String | /mnt/backuppc/backups
+`['backuppc']['archive_path']` | Archives path | String | /mnt/backuppc/archive
+`['backuppc']['conf_path']` | Configurations path | String | /etc/backuppc
+`['backuppc']['log_path']` | Logs path | String | /var/log/backuppc
+`['backuppc']['run_path']` | Path to store pid and socket files | String | /var/run/backuppc
+`['backuppc']['cgi_path']` | Path for Apache GCI scripts | String | /opt/backuppc-4.0.0alpha3/cgi-bin
+`['backuppc']['assets_path']` | Path to store BackupPC GUI assets | String | /opt/backuppc-4.0.0alpha3/cgi-bin/assets
+`['backuppc']['scgi_port']` | SCGI port to connect to from Apache | Integer | 10268
+`['backuppc']['user']` | User to run BackupPC | String | backuppc
+`['backuppc']['group']` | Group to run BackupPC | String | backuppc
+`['backuppc']['apache']['hostname']` | Hostname to use for Apache config | String | backuppc
+`['backuppc']['apache']['htpasswd']` | string of htpasswd entries (user:passwd), comma seperated | String | admin:admin (encrypted)
+`['backuppc']['source']` | Compilation of above variables to construct download link | String |
+`['backuppc']['xs_source']` | Compilation of above variables to construct download link | String |
+`['backuppc']['rsync_bpc_source']` | Compilation of above variables to construct download link | String |
+
+### config
+
+see the `config` attributes file to find all configuration variables for the BackupPC installation. All configuration variables are namespaced under `node['backuppc']['conf']`.
+
+## Recipes
+
+### Default
+
+After setting the above configuration variables, all that is left to do is to include the default recipe:
+
+```ruby
+include_recipe 'backuppc-server::default'
+```
+
+You can visit the GUI on the `/` top level path.
+
+# License and Author
+
+Author:: Jean Mertz (<jean@mertz.fm>)
+
+Copyright 2014, Kabisa ICT
+
+See LICENSE for license details
@@ -0,0 +1 @@
+0.1.0
Oops, something went wrong.

0 comments on commit a38637a

Please sign in to comment.