dev-lxc 2.6.1 → 2.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +17 -17
- data/CHANGELOG.md +317 -313
- data/Gemfile +4 -4
- data/LICENSE +201 -201
- data/README.md +287 -279
- data/Rakefile +1 -1
- data/bin/dev-lxc +9 -9
- data/dev-lxc.gemspec +26 -26
- data/docs/adhoc_clusters.md +22 -22
- data/docs/base_containers.md +44 -44
- data/docs/configuration.md +203 -203
- data/docs/dev-lxc_version_2.md +10 -10
- data/docs/manage_multiple_clusters.md +30 -30
- data/docs/usage.md +187 -187
- data/lib/dev-lxc/cli.rb +434 -434
- data/lib/dev-lxc/cluster.rb +1211 -1211
- data/lib/dev-lxc/container.rb +123 -123
- data/lib/dev-lxc/server.rb +197 -197
- data/lib/dev-lxc/version.rb +3 -3
- data/lib/dev-lxc.rb +118 -118
- metadata +2 -2
data/CHANGELOG.md
CHANGED
@@ -1,313 +1,317 @@
|
|
1
|
-
# dev-lxc Change Log
|
2
|
-
|
3
|
-
## 2.6.
|
4
|
-
|
5
|
-
*
|
6
|
-
|
7
|
-
## 2.6.
|
8
|
-
|
9
|
-
*
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
* Add
|
15
|
-
|
16
|
-
## 2.
|
17
|
-
|
18
|
-
*
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
*
|
23
|
-
*
|
24
|
-
*
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
*
|
29
|
-
|
30
|
-
## 2.3.
|
31
|
-
|
32
|
-
*
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
*
|
37
|
-
*
|
38
|
-
*
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
*
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
*
|
47
|
-
*
|
48
|
-
*
|
49
|
-
*
|
50
|
-
*
|
51
|
-
*
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
*
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
*
|
60
|
-
*
|
61
|
-
*
|
62
|
-
*
|
63
|
-
*
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
*
|
68
|
-
|
69
|
-
## 2.2.
|
70
|
-
|
71
|
-
*
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
*
|
77
|
-
|
78
|
-
## 2.2.
|
79
|
-
|
80
|
-
*
|
81
|
-
|
82
|
-
## 2.2.
|
83
|
-
|
84
|
-
*
|
85
|
-
|
86
|
-
## 2.2.
|
87
|
-
|
88
|
-
*
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
*
|
94
|
-
|
95
|
-
## 2.2.
|
96
|
-
|
97
|
-
*
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
*
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
*
|
109
|
-
*
|
110
|
-
* Add
|
111
|
-
*
|
112
|
-
*
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
*
|
117
|
-
|
118
|
-
## 2.0.
|
119
|
-
|
120
|
-
*
|
121
|
-
|
122
|
-
## 2.0.
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
## 2.0.
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
*
|
133
|
-
*
|
134
|
-
*
|
135
|
-
*
|
136
|
-
*
|
137
|
-
*
|
138
|
-
*
|
139
|
-
*
|
140
|
-
* Add
|
141
|
-
*
|
142
|
-
*
|
143
|
-
*
|
144
|
-
* Add chef-backend to DevLXC::Cluster
|
145
|
-
* Add
|
146
|
-
* Add chef-backend
|
147
|
-
* Add
|
148
|
-
* Add DevLXC::Cluster#
|
149
|
-
* Add
|
150
|
-
* Add
|
151
|
-
*
|
152
|
-
*
|
153
|
-
*
|
154
|
-
*
|
155
|
-
*
|
156
|
-
* Refactor DevLXC::
|
157
|
-
*
|
158
|
-
*
|
159
|
-
*
|
160
|
-
*
|
161
|
-
*
|
162
|
-
*
|
163
|
-
*
|
164
|
-
* Add
|
165
|
-
*
|
166
|
-
*
|
167
|
-
*
|
168
|
-
*
|
169
|
-
*
|
170
|
-
*
|
171
|
-
*
|
172
|
-
*
|
173
|
-
*
|
174
|
-
*
|
175
|
-
*
|
176
|
-
*
|
177
|
-
*
|
178
|
-
*
|
179
|
-
*
|
180
|
-
*
|
181
|
-
*
|
182
|
-
* Replace
|
183
|
-
*
|
184
|
-
*
|
185
|
-
*
|
186
|
-
*
|
187
|
-
*
|
188
|
-
*
|
189
|
-
*
|
190
|
-
*
|
191
|
-
*
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
*
|
196
|
-
|
197
|
-
## 1.
|
198
|
-
|
199
|
-
*
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
*
|
204
|
-
|
205
|
-
*
|
206
|
-
|
207
|
-
*
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
*
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
*
|
216
|
-
|
217
|
-
*
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
*
|
222
|
-
|
223
|
-
## 1.6.
|
224
|
-
|
225
|
-
*
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
*
|
230
|
-
|
231
|
-
*
|
232
|
-
|
233
|
-
*
|
234
|
-
|
235
|
-
*
|
236
|
-
|
237
|
-
*
|
238
|
-
|
239
|
-
*
|
240
|
-
|
241
|
-
*
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
*
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
*
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
*
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
*
|
272
|
-
|
273
|
-
## 1.3.
|
274
|
-
|
275
|
-
*
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
* Update
|
283
|
-
|
284
|
-
## 1.2.
|
285
|
-
|
286
|
-
*
|
287
|
-
|
288
|
-
## 1.2.
|
289
|
-
|
290
|
-
*
|
291
|
-
|
292
|
-
## 1.
|
293
|
-
|
294
|
-
*
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
*
|
300
|
-
|
301
|
-
## 1.1.
|
302
|
-
|
303
|
-
*
|
304
|
-
|
305
|
-
## 1.1.
|
306
|
-
|
307
|
-
*
|
308
|
-
|
309
|
-
## 1.0
|
310
|
-
|
311
|
-
*
|
312
|
-
|
313
|
-
## 1.0.
|
1
|
+
# dev-lxc Change Log
|
2
|
+
|
3
|
+
## 2.6.2 (2017-02-21)
|
4
|
+
|
5
|
+
* Replace unicode dash with ascii hyphen
|
6
|
+
|
7
|
+
## 2.6.1 (2017-02-10)
|
8
|
+
|
9
|
+
* Fix http_proxy and https_proxy in generated knife.rb and client.rb files
|
10
|
+
|
11
|
+
## 2.6.0 (2017-02-09)
|
12
|
+
|
13
|
+
* Make api_fqdn unique for chef-tier and chef-backend configs
|
14
|
+
* Add https_proxy to generated knife.rb and client.rb files
|
15
|
+
|
16
|
+
## 2.5.0 (2017-02-08)
|
17
|
+
|
18
|
+
* Add memory_per_server config option to limit memory per server
|
19
|
+
|
20
|
+
## 2.4.0 (2017-02-03)
|
21
|
+
|
22
|
+
* Refactor DHCP address management
|
23
|
+
* Add enable_build_snapshots config option
|
24
|
+
* Skip abort test if server exists AND "build: completed" snapshot exists
|
25
|
+
* Add auto-integration of Compliance and standalone Chef Server
|
26
|
+
* Remove period from sha256sum error message
|
27
|
+
* Reword message when base container already exists
|
28
|
+
* Update prerequisites.md
|
29
|
+
|
30
|
+
## 2.3.3 (2016-12-19)
|
31
|
+
|
32
|
+
* Remove debug output from "dpkg -i"
|
33
|
+
|
34
|
+
## 2.3.2 (2016-12-02)
|
35
|
+
|
36
|
+
* Fix DevLXC::Cluster#configure_automate so the reconfigure comes after all changes to delivery.rb
|
37
|
+
* Add ability to save run_command output to a file
|
38
|
+
* Use delivery-ctl create-enterprise
|
39
|
+
* Replace run_ctl with simpler run_command
|
40
|
+
* Use installed_products instead of required_products in DevLXC::Cluster#configure_products
|
41
|
+
* Hard stop the server when destroying it
|
42
|
+
* Fix destroy so confirmation message works
|
43
|
+
|
44
|
+
## 2.3.1 (2016-11-28)
|
45
|
+
|
46
|
+
* Create DevLXC::Cluster.abort_up to help with code clarity
|
47
|
+
* Shutdown container gracefully instead of doing a hard stop
|
48
|
+
* Skip container start if it is already running
|
49
|
+
* Refactor DevLXC.assign_ip_address to DevLXC::Server.assign_static_ip_address
|
50
|
+
* Change DevLXC::Server.deregister_from_dhcp to DevLXC::Server.remove_static_ip_address
|
51
|
+
* Remove dhcp release post-stop hook since it is not the most reliable solution
|
52
|
+
* Remove lingering DHCP IP addresses before starting a server
|
53
|
+
* Remove lingering DHCP IP addresses after destroying or shutting down a server
|
54
|
+
* Comment out data_collector config in a node's client.rb
|
55
|
+
* Add a clarifying comment to DevLXC::Cluster.up
|
56
|
+
|
57
|
+
## 2.3.0 (2016-11-22)
|
58
|
+
|
59
|
+
* Create DNS records for all servers before starting a server
|
60
|
+
* Delete DNS records for all servers if all are stopped
|
61
|
+
* Add ability to build Automate Job Dispatch Runners
|
62
|
+
* Enable Compliance profiles asset store in Automate
|
63
|
+
* Enable Automate Compliance profiles proxy in Chef Server
|
64
|
+
* Add ability to setup Compliance and create admin user
|
65
|
+
* Fix dev-lxc.yml parsing bug
|
66
|
+
* Allow for snapshot comments to be empty
|
67
|
+
* Fix 'up' command's output so there is a blank line between each server
|
68
|
+
|
69
|
+
## 2.2.7 (2016-09-26)
|
70
|
+
|
71
|
+
* Improve file existence test during dev-lxc.yml validation
|
72
|
+
|
73
|
+
## 2.2.6 (2016-09-26)
|
74
|
+
|
75
|
+
* Change default path for ORG-validator.pem for clarity
|
76
|
+
* Change default path for automate.license for clarity
|
77
|
+
|
78
|
+
## 2.2.5 (2016-08-24)
|
79
|
+
|
80
|
+
* Print full product cache path in SHA256 error message
|
81
|
+
|
82
|
+
## 2.2.4 (2016-08-24)
|
83
|
+
|
84
|
+
* Add sha256 check for downloaded packages
|
85
|
+
|
86
|
+
## 2.2.3 (2016-07-27)
|
87
|
+
|
88
|
+
* Copy validation key when validation_key is set
|
89
|
+
|
90
|
+
## 2.2.2 (2016-07-20)
|
91
|
+
|
92
|
+
* Don't calculate/install required products if "build: completed" snapshot exists
|
93
|
+
* Be more explicit about skipping install of chefdk on build nodes
|
94
|
+
|
95
|
+
## 2.2.1 (2016-07-20)
|
96
|
+
|
97
|
+
* Add --include-products option to show-config command
|
98
|
+
|
99
|
+
## 2.2.0 (2016-07-20)
|
100
|
+
|
101
|
+
* Make build nodes reregister to Chef Server
|
102
|
+
* Make build nodes sleep 5s for DNS resolution availability
|
103
|
+
* Allow build-nodes to use different base_containers than Chef Automate's
|
104
|
+
* Change default mount point from dev to work
|
105
|
+
|
106
|
+
## 2.1.0 (2016-07-19)
|
107
|
+
|
108
|
+
* Provide ability to define Chef org for node's chef-client config
|
109
|
+
* Enable node chef-client configuration at server_type level
|
110
|
+
* Add show-config subcommand
|
111
|
+
* Enable setting mounts, ssh_keys and base_container for each server
|
112
|
+
* Add print-automate-credentials subcommand
|
113
|
+
* Add prepare-product-cache subcommand
|
114
|
+
* Add build-nodes
|
115
|
+
* Add Automate server
|
116
|
+
* Define Chef Server orgs and users to be created
|
117
|
+
|
118
|
+
## 2.0.3 (2016-06-27)
|
119
|
+
|
120
|
+
* Use "stable" package channel for chef-backend since Chef HA 2.0 has been GA released
|
121
|
+
|
122
|
+
## 2.0.2 (2016-06-24)
|
123
|
+
|
124
|
+
* Change secrets.json to chef-backend-secrets.json
|
125
|
+
|
126
|
+
## 2.0.1 (2016-06-23)
|
127
|
+
|
128
|
+
Remove mixlib-install version constraint
|
129
|
+
|
130
|
+
## 2.0.0 (2016-06-23)
|
131
|
+
|
132
|
+
* Overhaul README
|
133
|
+
* Rename tiered-chef to chef-tier
|
134
|
+
* Change init's chef-backend description
|
135
|
+
* Remove realpath command
|
136
|
+
* Remove commands that functionally are replaced by nodes server type
|
137
|
+
* Add "nodes" server type
|
138
|
+
* reorder the init config options
|
139
|
+
* Allow servers to use dynamic IP addresses
|
140
|
+
* Add --append and --filename to DevLXC::CLI#init
|
141
|
+
* Rename DevLXC::CLI#create to DevLXC::CLI#create-base-container
|
142
|
+
* Install knife-opc 0.3.1 in private-chef servers
|
143
|
+
* Making conditional more readable in DevLXC::CLI#attach
|
144
|
+
* Add chef-backend build code to DevLXC::Cluster
|
145
|
+
* Add chef-backend to DevLXC::Cluster#up
|
146
|
+
* Add chef-backend to DevLXC::Cluster#get_sorted_servers
|
147
|
+
* Add chef-backend to DevLXC::Cluster#initialize
|
148
|
+
* Add chef-backend to DevLXC::Cluster#validate_cluster_config
|
149
|
+
* Add Analytics FQDN to DevLXC::CLI#status
|
150
|
+
* Add chef-backend option to DevLXC::CLI
|
151
|
+
* Add --skip-same-version to dpkg install_command
|
152
|
+
* Add DevLXC::Cluster#up
|
153
|
+
* Add build related code to DevLXC::Cluster
|
154
|
+
* Add snapshot list to DevLXC::CLI#status
|
155
|
+
* Remove unnecessary FQDNs from DevLXC::CLI#status
|
156
|
+
* Refactor DevLXC::CLI to use new DevLXC::Server capabilities
|
157
|
+
* Rename non_stopped_servers to running_servers
|
158
|
+
* Replace DevLXC::Cluster#servers with DevLXC:Cluster#get_sorted_servers
|
159
|
+
* Refactor DevLXC::Cluster#chef-repo
|
160
|
+
* Refactor DevLXC::Cluster to use new DevLXC::Cluster.config, DevLXC::Cluster.server_configs and DevLXC::Cluster#get_server
|
161
|
+
* Add DevLXC::Cluster#get_server method
|
162
|
+
* Use mixlib-install package management in DevLXC::CLI#init
|
163
|
+
* Remove packages validation from DevLXC::Cluster#validate_cluster_config
|
164
|
+
* Add mixlib-install package cache management
|
165
|
+
* Remove open-source server type
|
166
|
+
* Completely overhaul DevLXC::Cluster#initialize
|
167
|
+
* Minor code refactor in #create_dns_record
|
168
|
+
* Add DevLXC::Server#install_package
|
169
|
+
* Add DevLXC::Server#status
|
170
|
+
* Add DevLXC::Server#name
|
171
|
+
* Rename @server to @container
|
172
|
+
* Use "running" instead of "not stopped"
|
173
|
+
* Remove all cluster and build related code from DevLXC::Server
|
174
|
+
* Overhaul DevLXC::Server#initialize
|
175
|
+
* Remove usage of #realpath from code
|
176
|
+
* Minor code reorg in DevLXC::CLI#init
|
177
|
+
* Move match_server_name_regex functionality into DevLXC::Cluster#servers
|
178
|
+
* Move validate_cluster_config into DevLXC::Cluster
|
179
|
+
* Move Centos /etc/hosts fix into base container creation
|
180
|
+
* Move Centos 7 setpcap related comments
|
181
|
+
* Add confirmation check to destroy subcommand
|
182
|
+
* Replace "platform" and "image" terms with "base" and "container"
|
183
|
+
* Remove init subcommand's unique string option
|
184
|
+
* Replace some "create" terminology with "build"
|
185
|
+
* Replace unique images with snapshots
|
186
|
+
* Replace custom images with genuine snapshot management
|
187
|
+
* Require that the platform image container must already exist
|
188
|
+
* Validate dev-lxc.yml platform_image
|
189
|
+
* Store dev-lxc containers in default LXCPATH /var/lib/lxc
|
190
|
+
* Remove global-status subcommand
|
191
|
+
* Remove list-images subcommand
|
192
|
+
* Remove shared image functionality
|
193
|
+
* Remove p-ubuntu-1004 platform image
|
194
|
+
* Preserve permissions and ownership when copying directories to other servers in a cluster
|
195
|
+
* Update the Reporting package version
|
196
|
+
|
197
|
+
## 1.7.0 (2016-05-04)
|
198
|
+
|
199
|
+
* Replace p-ubuntu-1504 with p-ubuntu-1604
|
200
|
+
|
201
|
+
## 1.6.3 (2016-05-04)
|
202
|
+
|
203
|
+
* Put adhoc servers at the end of the servers list
|
204
|
+
|
205
|
+
* Only destroy a shared image if it has a name
|
206
|
+
|
207
|
+
* Auto accept license agreements
|
208
|
+
|
209
|
+
* Define default package names more cleanly
|
210
|
+
|
211
|
+
* Minor update to README.md
|
212
|
+
|
213
|
+
## 1.6.2 (2016-04-21)
|
214
|
+
|
215
|
+
* Sync SSH public keys to /home/dev-lxc/.ssh/authorized_keys
|
216
|
+
|
217
|
+
* Improve 'dev-lxc init' header
|
218
|
+
|
219
|
+
* Validate dev-lxc.yml hostnames, mounts, packages and ssh-keys
|
220
|
+
|
221
|
+
* Consolidate package paths for simpler updating
|
222
|
+
|
223
|
+
## 1.6.1 (2016-04-20)
|
224
|
+
|
225
|
+
* Fix for open-source in "dev-lxc init"
|
226
|
+
|
227
|
+
## 1.6.0 (2016-04-20)
|
228
|
+
|
229
|
+
* Rewrite "dev-lxc init" so its options determine what config gets generated
|
230
|
+
|
231
|
+
* Allow mounts, platform_image and platform_image_options to be set globally
|
232
|
+
|
233
|
+
* Create demo org and mary-admin and joe-user users
|
234
|
+
|
235
|
+
* Add Supermarket server build capability
|
236
|
+
|
237
|
+
* Add Compliance server build capability
|
238
|
+
|
239
|
+
* Improve "dev-lxc status" output
|
240
|
+
|
241
|
+
* Generate Chef Server config in one shot
|
242
|
+
|
243
|
+
* Make standalone topology the default for Analytics
|
244
|
+
|
245
|
+
* Make standalone topology the default for Chef Server
|
246
|
+
|
247
|
+
## 1.5.1 (2016-04-15)
|
248
|
+
|
249
|
+
* Add ability to pass options to LXC create calls
|
250
|
+
For example, this lets users pass the following options for more control over the creation process.
|
251
|
+
https://github.com/lxc/lxc/blob/lxc-2.0.0/templates/lxc-download.in#L200-L207
|
252
|
+
|
253
|
+
## 1.5.0 (2016-04-14)
|
254
|
+
|
255
|
+
* Set lxc.network.hwaddr, if one doesn’t exist, instead of lxc.network.0.hwaddr
|
256
|
+
Fixes a bug that caused containers to get identical hwaddrs and IPs
|
257
|
+
|
258
|
+
* Remove chef-sync since it is EOL
|
259
|
+
|
260
|
+
* Refactor removal of container config's mount entries
|
261
|
+
Make sure you are using LXC 2.0 which includes a fix that allows the refactor to work
|
262
|
+
|
263
|
+
* Make mount section in dev-lxc.yml optional
|
264
|
+
|
265
|
+
## 1.4.0 (2015-12-08)
|
266
|
+
|
267
|
+
* Add ability to build and use Ubuntu 15.04 and Centos 7 platform containers
|
268
|
+
|
269
|
+
* Update versions of Chef packages
|
270
|
+
|
271
|
+
* Refactor removal of container config's mount entries
|
272
|
+
|
273
|
+
## 1.3.1 (2015-05-21)
|
274
|
+
|
275
|
+
* Allow adhoc servers time to generate SSH Server Host Keys
|
276
|
+
|
277
|
+
## 1.3.0 (2015-05-21)
|
278
|
+
|
279
|
+
* New "adhoc" cluster functionality
|
280
|
+
* Platform images have openssh-server installed
|
281
|
+
* Platform images have "dev-lxc" user with "dev-lxc" password and passwordless sudo
|
282
|
+
* Update Analytics package in templates
|
283
|
+
|
284
|
+
## 1.2.2 (2015-05-14)
|
285
|
+
|
286
|
+
* Update version of Chef Manage in templates
|
287
|
+
|
288
|
+
## 1.2.1 (2015-05-05)
|
289
|
+
|
290
|
+
* Fix output spacing in list-images
|
291
|
+
|
292
|
+
## 1.2.0 (2015-05-01)
|
293
|
+
|
294
|
+
* Change the chef-packages mount point
|
295
|
+
|
296
|
+
## 1.1.3 (2015-04-30)
|
297
|
+
|
298
|
+
* Fix chef-repo command's description
|
299
|
+
* Update package versions in config templates
|
300
|
+
|
301
|
+
## 1.1.2 (2015-04-22)
|
302
|
+
|
303
|
+
* Set `ssl_verify_mode :verify_none` in knife.rb and pivotal.rb
|
304
|
+
|
305
|
+
## 1.1.1 (2015-04-22)
|
306
|
+
|
307
|
+
* Fix chef_server_url in pivotal.rb
|
308
|
+
|
309
|
+
## 1.1.0 (2015-04-21)
|
310
|
+
|
311
|
+
* Change "abspath" command name to "realpath"
|
312
|
+
|
313
|
+
## 1.0.1 (2015-04-18)
|
314
|
+
|
315
|
+
* Fix "abspath" output
|
316
|
+
|
317
|
+
## 1.0.0 (2015-04-09)
|