chef_backup 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +5 -5
  2. data/lib/chef_backup.rb +8 -8
  3. data/lib/chef_backup/config.rb +17 -17
  4. data/lib/chef_backup/data_map.rb +18 -12
  5. data/lib/chef_backup/deep_merge.rb +145 -0
  6. data/lib/chef_backup/helpers.rb +46 -10
  7. data/lib/chef_backup/logger.rb +2 -2
  8. data/lib/chef_backup/mash.rb +226 -0
  9. data/lib/chef_backup/runner.rb +11 -13
  10. data/lib/chef_backup/strategy.rb +10 -10
  11. data/lib/chef_backup/strategy/backup/custom.rb +1 -2
  12. data/lib/chef_backup/strategy/backup/ebs.rb +3 -6
  13. data/lib/chef_backup/strategy/backup/lvm.rb +2 -4
  14. data/lib/chef_backup/strategy/backup/object.rb +2 -4
  15. data/lib/chef_backup/strategy/backup/tar.rb +23 -7
  16. data/lib/chef_backup/strategy/restore/tar.rb +69 -43
  17. data/lib/chef_backup/version.rb +1 -1
  18. metadata +20 -168
  19. data/.gitignore +0 -23
  20. data/.kitchen.yml +0 -30
  21. data/.rubocop.yml +0 -21
  22. data/.travis.yml +0 -6
  23. data/Gemfile +0 -4
  24. data/Guardfile +0 -22
  25. data/README.md +0 -21
  26. data/Rakefile +0 -44
  27. data/chef_backup.gemspec +0 -33
  28. data/spec/fixtures/chef-server-running.json +0 -589
  29. data/spec/spec_helper.rb +0 -98
  30. data/spec/unit/data_map_spec.rb +0 -59
  31. data/spec/unit/helpers_spec.rb +0 -88
  32. data/spec/unit/runner_spec.rb +0 -185
  33. data/spec/unit/shared_examples/helpers.rb +0 -20
  34. data/spec/unit/strategy/backup/lvm_spec.rb +0 -0
  35. data/spec/unit/strategy/backup/shared_examples/backup.rb +0 -92
  36. data/spec/unit/strategy/backup/tar_spec.rb +0 -327
  37. data/spec/unit/strategy/restore/lvm_spec.rb +0 -0
  38. data/spec/unit/strategy/restore/shared_examples/restore.rb +0 -84
  39. data/spec/unit/strategy/restore/tar_spec.rb +0 -255
  40. data/spec/unit/strategy_spec.rb +0 -36
@@ -1,589 +0,0 @@
1
- {
2
- "private_chef": {
3
- "backup": {
4
- "strategy": "tar",
5
- "agree_to_go_offline": "true"
6
- },
7
- "api_version": "11.1.0",
8
- "flavor": "ec",
9
- "notification_email": "pc-default@opscode.com",
10
- "from_email": "\"Opscode\" <donotreply@opscode.com>",
11
- "role": "backend",
12
- "user": {
13
- "username": "opscode",
14
- "shell": "/bin/sh",
15
- "home": "/opt/opscode/embedded"
16
- },
17
- "couchdb": {
18
- "enable": true,
19
- "ha": true,
20
- "dir": "/var/opt/opscode/couchdb",
21
- "data_dir": "/var/opt/opscode/drbd/data/couchdb",
22
- "log_directory": "/var/log/opscode/couchdb",
23
- "log_rotation": {
24
- "file_maxbytes": 104857600,
25
- "num_to_keep": 10
26
- },
27
- "port": 5984,
28
- "bind_address": "0.0.0.0",
29
- "vip": "127.0.0.1",
30
- "max_document_size": "4294967296",
31
- "max_attachment_chunk_size": "4294967296",
32
- "os_process_timeout": "300000",
33
- "max_dbs_open": 104857600,
34
- "delayed_commits": "true",
35
- "batch_save_size": 1000,
36
- "batch_save_interval": 1000,
37
- "log_level": "error",
38
- "reduce_limit": "false"
39
- },
40
- "rabbitmq": {
41
- "enable": true,
42
- "ha": true,
43
- "dir": "/var/opt/opscode/rabbitmq",
44
- "data_dir": "/var/opt/opscode/drbd/data/rabbitmq",
45
- "log_directory": "/var/log/opscode/rabbitmq",
46
- "log_rotation": {
47
- "file_maxbytes": 104857600,
48
- "num_to_keep": 10
49
- },
50
- "vhost": "/chef",
51
- "user": "chef",
52
- "password": "76b619fe244a0ce789599672e9256f4ab907b5ed36cf4e8c621fbf65dfc69ee30313b5bd70d181ed71563da90ae3f6d67bff",
53
- "reindexer_vhost": "/reindexer",
54
- "jobs_vhost": "/jobs",
55
- "jobs_user": "jobs",
56
- "jobs_password": "5fd81f6f26ce5855238cbd82bc2cbe340981e6aaf1daaa3ecd305dd7aa41281031b1e1ad50bd61fe559120333005c1fb9495",
57
- "actions_user": "actions",
58
- "actions_password": "c55f6e21d62e9862825d23d795a55d1ca89378982d81053cdc90bf4a1c5a627844993f150ad8087bc55377cb72dc90c0fc36",
59
- "actions_vhost": "/analytics",
60
- "actions_exchange": "actions",
61
- "node_ip_address": "0.0.0.0",
62
- "node_port": "5672",
63
- "nodename": "rabbit@localhost",
64
- "vip": "127.0.0.1",
65
- "consumer_id": "hotsauce"
66
- },
67
- "jetty": {
68
- "enable": false,
69
- "ha": false,
70
- "log_directory": "/var/opt/opscode/opscode-solr/jetty/logs"
71
- },
72
- "opscode-solr": {
73
- "enable": true,
74
- "ha": true,
75
- "dir": "/var/opt/opscode/opscode-solr",
76
- "data_dir": "/var/opt/opscode/drbd/data/opscode-solr",
77
- "log_directory": "/var/log/opscode/opscode-solr",
78
- "log_rotation": {
79
- "file_maxbytes": 104857600,
80
- "num_to_keep": 10
81
- },
82
- "heap_size": 626,
83
- "new_size": 39,
84
- "java_opts": " -XX:NewSize=39M -XX:+UseConcMarkSweepGC -XX:+UseParNewGC",
85
- "url": "http://localhost:8983",
86
- "ip_address": "0.0.0.0",
87
- "vip": "127.0.0.1",
88
- "port": 8983,
89
- "ram_buffer_size": 200,
90
- "merge_factor": 25,
91
- "max_merge_docs": 2147483647,
92
- "max_field_length": 100000,
93
- "max_commit_docs": 1000,
94
- "commit_interval": 60000,
95
- "poll_seconds": 20,
96
- "command": "java -Xmx626M -Xms626M -XX:NewSize=39M -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -Xloggc:/var/log/opscode/opscode-solr/gclog.log -verbose:gc -XX:+PrintHeapAtGC -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -XX:+PrintGCApplicationStoppedTime -XX:+PrintGCApplicationConcurrentTime -XX:+PrintTenuringDistribution -Dsolr.data.dir=/var/opt/opscode/drbd/data/opscode-solr -Dsolr.solr.home=/var/opt/opscode/opscode-solr/home -server -jar '/var/opt/opscode/opscode-solr/jetty/start.jar'"
97
- },
98
- "opscode-expander": {
99
- "enable": true,
100
- "ha": true,
101
- "dir": "/var/opt/opscode/opscode-expander",
102
- "log_directory": "/var/log/opscode/opscode-expander",
103
- "log_rotation": {
104
- "file_maxbytes": 104857600,
105
- "num_to_keep": 10
106
- },
107
- "reindexer_log_directory": "/var/log/opscode/opscode-expander-reindexer",
108
- "consumer_id": "default",
109
- "nodes": 2
110
- },
111
- "opscode-erchef": {
112
- "enable": true,
113
- "ha": true,
114
- "dir": "/var/opt/opscode/opscode-erchef",
115
- "log_directory": "/var/log/opscode/opscode-erchef",
116
- "log_rotation": {
117
- "file_maxbytes": 104857600,
118
- "num_to_keep": 10
119
- },
120
- "vip": "127.0.0.1",
121
- "listen": "127.0.0.1",
122
- "port": 8000,
123
- "auth_skew": "900",
124
- "bulk_fetch_batch_size": "5",
125
- "max_cache_size": "10000",
126
- "cache_ttl": "3600",
127
- "db_pool_size": "20",
128
- "udp_socket_pool_size": "20",
129
- "couchdb_max_conn": "100",
130
- "ibrowse_max_sessions": 256,
131
- "ibrowse_max_pipeline_size": 1,
132
- "base_resource_url": "host_header",
133
- "s3_bucket": "bookshelf",
134
- "s3_url_ttl": 900,
135
- "s3_parallel_ops_timeout": 5000,
136
- "s3_parallel_ops_fanout": 20,
137
- "authz_timeout": 1000,
138
- "authz_fanout": 20,
139
- "root_metric_key": "chefAPI",
140
- "depsolver_worker_count": 5,
141
- "depsolver_timeout": 5000,
142
- "max_request_size": 1000000
143
- },
144
- "opscode-chef": {
145
- "checksum_path": "/var/opt/opscode/drbd/data/opscode-chef/checksum"
146
- },
147
- "opscode-webui": {
148
- "enable": false,
149
- "ha": true,
150
- "dir": "/var/opt/opscode/opscode-webui",
151
- "log_directory": "/var/log/opscode/opscode-webui",
152
- "log_rotation": {
153
- "file_maxbytes": 104857600,
154
- "num_to_keep": 10
155
- },
156
- "environment": "privatechef",
157
- "url": "http://127.0.0.1:9462",
158
- "listen": "127.0.0.1:9462",
159
- "vip": "127.0.0.1",
160
- "port": 9462,
161
- "backlog": 1024,
162
- "tcp_nodelay": true,
163
- "worker_timeout": 3600,
164
- "validation_client_name": "chef",
165
- "umask": "0022",
166
- "worker_processes": 2,
167
- "session_key": "_sandbox_session",
168
- "cookie_domain": "all",
169
- "cookie_secret": "138af2876602f3ee507de496e86fd04d97365949aa6dc986b349c95782246f79cb9d1ed5b3305710cfe79cfd6c3d36328f66"
170
- },
171
- "oc-chef-pedant": {
172
- "dir": "/var/opt/opscode/oc-chef-pedant",
173
- "log_directory": "/var/log/opscode/oc-chef-pedant",
174
- "log_http_requests": true,
175
- "log_rotation": {
176
- "file_maxbytes": 104857600,
177
- "num_to_keep": 10
178
- },
179
- "debug_org_creation": false
180
- },
181
- "redis_lb": {
182
- "enable": true,
183
- "ha": true,
184
- "dir": "/var/opt/opscode/redis_lb",
185
- "data_dir": "/var/opt/opscode/drbd/data/redis_lb",
186
- "log_directory": "/var/log/opscode/redis_lb",
187
- "log_rotation": {
188
- "file_maxbytes": 1000000,
189
- "num_to_keep": 10
190
- },
191
- "port": "16379",
192
- "bind": "127.0.0.1",
193
- "vip": "127.0.0.1",
194
- "keepalive": "60",
195
- "timeout": "300",
196
- "loglevel": "notice",
197
- "databases": "16",
198
- "appendonly": "no",
199
- "appendfsync": "always",
200
- "activerehashing": "no",
201
- "aof_rewrite_percent": "50",
202
- "aof_rewrite_min_size": "16mb",
203
- "maxmemory": "8m",
204
- "maxmemory_policy": "noeviction",
205
- "save_frequency": {
206
- "900": "1",
207
- "300": "10",
208
- "60": "1000"
209
- },
210
- "listen": "0.0.0.0"
211
- },
212
- "lb": {
213
- "enable": true,
214
- "vip": "127.0.0.1",
215
- "api_fqdn": "api.opscode.kryptonite",
216
- "web_ui_fqdn": "api.opscode.kryptonite",
217
- "cache_cookbook_files": false,
218
- "debug": false,
219
- "upstream": {
220
- "opscode-erchef": [
221
- "127.0.0.1"
222
- ],
223
- "opscode-account": [
224
- "127.0.0.1"
225
- ],
226
- "opscode-webui": [
227
- "127.0.0.1"
228
- ],
229
- "oc_bifrost": [
230
- "127.0.0.1"
231
- ],
232
- "opscode-solr": [
233
- "127.0.0.1"
234
- ],
235
- "bookshelf": [
236
- "127.0.0.1"
237
- ]
238
- },
239
- "redis_connection_timeout": 1000,
240
- "redis_keepalive_timeout": 2000,
241
- "redis_connection_pool_size": 250,
242
- "maint_refresh_interval": 600,
243
- "ban_refresh_interval": 600,
244
- "chef_min_version": 10,
245
- "chef_max_version": 11,
246
- "xdl_defaults": {
247
- "503_mode": false,
248
- "couchdb_containers": true,
249
- "couchdb_groups": true
250
- },
251
- "ha": true
252
- },
253
- "lb_internal": {
254
- "enable": true,
255
- "vip": "127.0.0.1",
256
- "chef_port": 9680,
257
- "account_port": 9685,
258
- "oc_bifrost_port": 9683
259
- },
260
- "nginx": {
261
- "enable": true,
262
- "ha": true,
263
- "dir": "/var/opt/opscode/nginx",
264
- "log_directory": "/var/log/opscode/nginx",
265
- "log_rotation": {
266
- "file_maxbytes": 104857600,
267
- "num_to_keep": 10
268
- },
269
- "ssl_port": 443,
270
- "enable_non_ssl": false,
271
- "non_ssl_port": 80,
272
- "x_forwarded_proto": "https",
273
- "server_name": "api.opscode.kryptonite",
274
- "url": "https://api.opscode.kryptonite",
275
- "ssl_protocols": "SSLv3 TLSv1",
276
- "ssl_ciphers": "RC4-SHA:RC4-MD5:RC4:RSA:HIGH:MEDIUM:!LOW:!kEDH:!aNULL:!ADH:!eNULL:!EXP:!SSLv2:!SEED:!CAMELLIA:!PSK",
277
- "ssl_certificate": "/var/opt/opscode/nginx/ca/api.opscode.kryptonite.crt",
278
- "ssl_certificate_key": "/var/opt/opscode/nginx/ca/api.opscode.kryptonite.key",
279
- "ssl_country_name": "US",
280
- "ssl_state_name": "WA",
281
- "ssl_locality_name": "Seattle",
282
- "ssl_company_name": "YouCorp",
283
- "ssl_organizational_unit_name": "Operations",
284
- "ssl_email_address": "you@example.com",
285
- "worker_processes": 2,
286
- "worker_connections": 10240,
287
- "sendfile": "on",
288
- "tcp_nopush": "on",
289
- "tcp_nodelay": "on",
290
- "gzip": "on",
291
- "gzip_http_version": "1.0",
292
- "gzip_comp_level": "2",
293
- "gzip_proxied": "any",
294
- "gzip_types": [
295
- "text/plain",
296
- "text/css",
297
- "application/x-javascript",
298
- "text/xml",
299
- "application/xml",
300
- "application/xml+rss",
301
- "text/javascript",
302
- "application/json"
303
- ],
304
- "keepalive_timeout": 65,
305
- "client_max_body_size": "250m",
306
- "cache_max_size": "5000m",
307
- "enable_ipv6": false
308
- },
309
- "postgresql": {
310
- "version": "9.2",
311
- "enable": true,
312
- "ha": true,
313
- "dir": "/var/opt/opscode/postgresql/9.2",
314
- "data_dir": "/var/opt/opscode/drbd/data/postgresql_9.2",
315
- "log_directory": "/var/log/opscode/postgresql/9.2",
316
- "log_rotation": {
317
- "file_maxbytes": 104857600,
318
- "num_to_keep": 10
319
- },
320
- "username": "opscode-pgsql",
321
- "shell": "/bin/sh",
322
- "home": "/var/opt/opscode/postgresql",
323
- "user_path": "/opt/opscode/embedded/bin:/opt/opscode/bin:$PATH",
324
- "sql_user": "opscode_chef",
325
- "sql_password": "a3852363df1bc9cd0ff2bf162242d293d28a63b12be73dbfa3766e1c304fd42e97c7fc38a62e95782b012792cbba4e7cff2a",
326
- "sql_ro_user": "opscode_chef_ro",
327
- "sql_ro_password": "467f2a886d52faf054947bc6869c624ae229d9a367bdb52c90b9d1c9fcfb1adda7b68c930464c0938e8d7ac17cc90fd42c77",
328
- "vip": "127.0.0.1",
329
- "port": 5432,
330
- "listen_address": "*",
331
- "max_connections": 350,
332
- "md5_auth_cidr_addresses": [
333
- "0.0.0.0/0"
334
- ],
335
- "shmmax": 17179869184,
336
- "shmall": 4194304,
337
- "shared_buffers": "626MB",
338
- "work_mem": "8MB",
339
- "effective_cache_size": "128MB",
340
- "checkpoint_segments": 3,
341
- "checkpoint_timeout": "5min",
342
- "checkpoint_completion_target": 0.5,
343
- "checkpoint_warning": "30s"
344
- },
345
- "oc_bifrost": {
346
- "enable": true,
347
- "ha": true,
348
- "dir": "/var/opt/opscode/oc_bifrost",
349
- "log_directory": "/var/log/opscode/oc_bifrost",
350
- "log_rotation": {
351
- "file_maxbytes": 104857600,
352
- "num_to_keep": 10
353
- },
354
- "vip": "127.0.0.1",
355
- "listen": "127.0.0.1",
356
- "port": 9463,
357
- "superuser_id": "ef82513b04d7281f5c3657a7827b788b",
358
- "db_pool_size": "20",
359
- "sql_user": "bifrost",
360
- "sql_password": "c8a50853c658070a591545035f67a7849d37228d2fe6a877b7d540b0298ad2340b3fa99de48be19ab35410a9ef99ffe49ed9",
361
- "sql_ro_user": "bifrost_ro",
362
- "sql_ro_password": "95cfe03e796a0fe700254e6761de846e7f530c526c2425f17691e9c334ff88defe4389bdac70a0e36f0a0e29ba19695d90d9",
363
- "extended_perf_log": true
364
- },
365
- "oc_chef_authz": {
366
- "http_init_count": 25,
367
- "http_max_count": 100,
368
- "http_cull_interval": "{1, min}",
369
- "http_max_age": "{70, sec}",
370
- "http_max_connection_duration": "{70, sec}",
371
- "ibrowse_options": "[{connect_timeout, 5000}]"
372
- },
373
- "bookshelf": {
374
- "enable": true,
375
- "ha": true,
376
- "dir": "/var/opt/opscode/bookshelf",
377
- "data_dir": "/var/opt/opscode/drbd/data/bookshelf",
378
- "log_directory": "/var/log/opscode/bookshelf",
379
- "log_rotation": {
380
- "file_maxbytes": 104857600,
381
- "num_to_keep": 10
382
- },
383
- "vip": "backend1.opscode.kryptonite",
384
- "listen": "0.0.0.0",
385
- "port": 4321,
386
- "stream_download": true,
387
- "access_key_id": "09a81344e4b0cb0eb9a710f4c70b641cff6f4382",
388
- "secret_access_key": "db005c3aaf86ce39176e73fd7d57593ae67c2b35ca1f757211d1a817124ef013a041408e1e1b730c",
389
- "external_url": "host_header"
390
- },
391
- "opscode-certificate": {
392
- "enable": true,
393
- "ha": true,
394
- "dir": "/var/opt/opscode/opscode-certificate",
395
- "log_directory": "/var/log/opscode/opscode-certificate",
396
- "log_rotation": {
397
- "file_maxbytes": 104857600,
398
- "num_to_keep": 10
399
- },
400
- "port": 5140,
401
- "vip": "127.0.0.1",
402
- "num_workers": "2",
403
- "num_certificates_per_worker": "50"
404
- },
405
- "opscode-org-creator": {
406
- "enable": true,
407
- "ha": true,
408
- "dir": "/var/opt/opscode/opscode-org-creator",
409
- "log_directory": "/var/log/opscode/opscode-org-creator",
410
- "log_rotation": {
411
- "file_maxbytes": 104857600,
412
- "num_to_keep": 10
413
- },
414
- "ready_org_depth": 10,
415
- "max_workers": 1,
416
- "create_wait_ms": 30000,
417
- "create_splay_ms": 25000,
418
- "port": 4369
419
- },
420
- "dark_launch": {
421
- "quick_start": false,
422
- "new_theme": true,
423
- "private-chef": true,
424
- "sql_users": true,
425
- "add_type_and_bag_to_items": true,
426
- "reporting": true,
427
- "actions": false
428
- },
429
- "opscode-account": {
430
- "enable": true,
431
- "ha": true,
432
- "dir": "/var/opt/opscode/opscode-account",
433
- "log_directory": "/var/log/opscode/opscode-account",
434
- "log_rotation": {
435
- "file_maxbytes": 104857600,
436
- "num_to_keep": 10
437
- },
438
- "proxy_user": "pivotal",
439
- "session_secret_key": "4bd0ee0680f2df4ecbb1a30f2e7bd8bf2dac351c099a0625a90c528fbda52c1e2005f345159d62457dd9858663c562c424f8",
440
- "environment": "privatechef",
441
- "vip": "127.0.0.1",
442
- "port": 9465,
443
- "url": "http://127.0.0.1:9465",
444
- "listen": "127.0.0.1:9465",
445
- "backlog": 1024,
446
- "tcp_nodelay": true,
447
- "worker_timeout": 3600,
448
- "validation_client_name": "chef",
449
- "umask": "0022",
450
- "worker_processes": 4
451
- },
452
- "opscode-chef-mover": {
453
- "enable": true,
454
- "ha": false,
455
- "dir": "/var/opt/opscode/opscode-chef-mover",
456
- "data_dir": "/var/opt/opscode/opscode-chef-mover/data",
457
- "log_directory": "/var/log/opscode/opscode-chef-mover",
458
- "log_rotation": {
459
- "file_maxbytes": 1073741824,
460
- "num_to_keep": 10
461
- },
462
- "bulk_fetch_batch_size": "5",
463
- "max_cache_size": "10000",
464
- "cache_ttl": "3600",
465
- "db_pool_size": "5",
466
- "ibrowse_max_sessions": 256,
467
- "ibrowse_max_pipeline_size": 1
468
- },
469
- "bootstrap": {
470
- "enable": false
471
- },
472
- "estatsd": {
473
- "enable": true,
474
- "dir": "/var/opt/opscode/estatsd",
475
- "log_directory": "/var/log/opscode/estatsd",
476
- "vip": "127.0.0.1",
477
- "port": 9466
478
- },
479
- "drbd": {
480
- "enable": true,
481
- "dir": "/var/opt/opscode/drbd",
482
- "data_dir": "/var/opt/opscode/drbd/data",
483
- "sync_rate": "40M",
484
- "shared_secret": "f0da25577477516bd833d7c706329dddc128a45ba89ef75fd4a2222d58b3",
485
- "device": "/dev/drbd0",
486
- "disk": "/dev/opscode/drbd",
487
- "flexible_meta_disk": "internal",
488
- "primary": {
489
- "fqdn": "backend1.opscode.kryptonite",
490
- "ip": "33.33.34.5",
491
- "port": 7788
492
- },
493
- "secondary": {
494
- "fqdn": "backend2.opscode.kryptonite",
495
- "ip": "33.33.34.6",
496
- "port": 7788
497
- },
498
- "version": "8.4.3",
499
- "ipv6_on": false
500
- },
501
- "keepalived": {
502
- "enable": true,
503
- "dir": "/var/opt/opscode/keepalived",
504
- "ipv6_on": false,
505
- "log_directory": "/var/log/opscode/keepalived",
506
- "log_rotation": {
507
- "file_maxbytes": 104857600,
508
- "num_to_keep": 10
509
- },
510
- "smtp_server": "127.0.0.1",
511
- "smtp_connect_timeout": "30",
512
- "vrrp_sync_group": "PC_GROUP",
513
- "vrrp_sync_instance": "PC_VI",
514
- "vrrp_instance_state": "BACKUP",
515
- "vrrp_instance_interface": "eth1",
516
- "vrrp_instance_virtual_router_id": "1",
517
- "vrrp_instance_priority": "100",
518
- "vrrp_instance_advert_int": "1",
519
- "vrrp_instance_password": "018f9cc7f33377d8b54c70494f5c433255f581b2d9e679762ff83dab83ee5bfac109ed8e9af2efccae041438cf73b0ad6a83",
520
- "vrrp_instance_ipaddress": "33.33.33.20",
521
- "vrrp_instance_ipaddress_dev": "eth1",
522
- "vrrp_instance_vrrp_unicast_bind": "33.33.33.21",
523
- "vrrp_instance_vrrp_unicast_peer": "33.33.33.22",
524
- "vrrp_instance_preempt_delay": 30,
525
- "vrrp_instance_nopreempt": true,
526
- "service_posthooks": {
527
- "rabbitmq": "/opt/opscode/bin/wait-for-rabbit"
528
- }
529
- },
530
- "ldap": {
531
- },
532
- "upgrades": {
533
- "dir": "/var/opt/opscode/upgrades"
534
- },
535
- "lb-internal": {
536
- },
537
- "ha": {
538
- "provider": "drbd",
539
- "path": "/var/opt/opscode/drbd/data"
540
- },
541
- "topology": "ha",
542
- "servers": {
543
- "backend1.opscode.kryptonite": {
544
- "ipaddress": "33.33.33.21",
545
- "cluster_ipaddress": "33.33.34.5",
546
- "role": "backend",
547
- "bootstrap": true,
548
- "peer_ipaddress": "33.33.33.22"
549
- },
550
- "backend2.opscode.kryptonite": {
551
- "ipaddress": "33.33.33.22",
552
- "cluster_ipaddress": "33.33.34.6",
553
- "role": "backend",
554
- "bootstrap": false
555
- },
556
- "frontend1.opscode.kryptonite": {
557
- "ipaddress": "33.33.33.23",
558
- "role": "frontend"
559
- }
560
- },
561
- "backend_vips": {
562
- "fqdn": "backend.opscode.kryptonite",
563
- "ipaddress": "33.33.33.20",
564
- "device": "eth1",
565
- "heartbeat_device": "eth2",
566
- "ipaddress_with_netmask": "33.33.33.20"
567
- },
568
- "logs": {
569
- "log_retention": {
570
- },
571
- "log_rotation": {
572
- }
573
- }
574
- },
575
- "run_list": [
576
- "recipe[private-chef]"
577
- ],
578
- "runit": {
579
- "sv_bin": "/opt/opscode/embedded/bin/sv",
580
- "chpst_bin": "/opt/opscode/embedded/bin/chpst",
581
- "service_dir": "/opt/opscode/service",
582
- "sv_dir": "/opt/opscode/sv",
583
- "lsb_init_dir": "/opt/opscode/init",
584
- "executable": "/sbin/runit",
585
- "start": "start runsvdir",
586
- "stop": "stop runsvdir",
587
- "reload": "reload runsvdir"
588
- }
589
- }