dev-lxc 3.2.0 → 3.3.0
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/.gitattributes +1 -0
- data/.gitignore +17 -17
- data/CHANGELOG.md +352 -342
- data/Gemfile +4 -4
- data/LICENSE +201 -201
- data/README.md +235 -233
- data/Rakefile +1 -1
- data/bin/dl +9 -9
- data/dev-lxc.gemspec +26 -26
- data/docs/adhoc_clusters.md +17 -20
- data/docs/base_containers.md +44 -44
- data/docs/byobu_keybindings.md +22 -22
- data/docs/configuration.md +277 -235
- data/docs/dev-lxc_version_2.md +10 -10
- data/docs/manage_multiple_clusters.md +30 -30
- data/docs/mitmproxy.md +7 -7
- data/docs/usage.md +213 -213
- data/example-clusters/README.md +165 -35
- data/example-clusters/automate_dev-lxc.yml +98 -98
- data/example-clusters/chef-backend_dev-lxc.yml +81 -81
- data/example-clusters/conf-files/chef-server/elasticsearch-partial.rb +38 -0
- data/example-clusters/conf-files/chef-server/ldap-partial.rb +10 -0
- data/example-clusters/conf-files/chef-server/postgres-partial.rb +14 -0
- data/example-clusters/external_dev-lxc.yml +60 -0
- data/example-clusters/tier_dev-lxc.yml +88 -88
- data/lib/dev-lxc/cli.rb +542 -537
- data/lib/dev-lxc/cluster.rb +1310 -1215
- data/lib/dev-lxc/container.rb +128 -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 +7 -2
@@ -0,0 +1,60 @@
|
|
1
|
+
# enable_build_snapshots automatically makes container snapshots at key times during the build process
|
2
|
+
# default value is `true`
|
3
|
+
#enable_build_snapshots: true
|
4
|
+
|
5
|
+
# base_container must be the name of an existing container
|
6
|
+
base_container: b-ubuntu-1404
|
7
|
+
|
8
|
+
# memory_per_server sets the maximum amount of user memory (including file cache) for each server.
|
9
|
+
# dev-lxc will set the `memory.limit_in_bytes` cgroup for each server to apply this limit.
|
10
|
+
# If no units are specified, the value is interpreted as bytes.
|
11
|
+
# You can use suffixes to represent larger units - k or K for kilobytes, m or M for megabytes, and g or G for gigabytes.
|
12
|
+
# The default behavior is that no limit is set.
|
13
|
+
#memory_per_server: 4G
|
14
|
+
|
15
|
+
# list any host directories you want mounted into the servers
|
16
|
+
#mounts:
|
17
|
+
# - /root/clusters root/clusters
|
18
|
+
|
19
|
+
# list any SSH public keys you want added to /home/dev-lxc/.ssh/authorized_keys
|
20
|
+
#ssh-keys:
|
21
|
+
# - /root/clusters/id_rsa.pub
|
22
|
+
|
23
|
+
# DHCP reserved (static) IPs must be selected from the IP range 10.0.3.150 - 254
|
24
|
+
|
25
|
+
chef-server:
|
26
|
+
users: # a user's password will be the same as its username
|
27
|
+
- mary-admin
|
28
|
+
- joe-user
|
29
|
+
orgs:
|
30
|
+
demo:
|
31
|
+
admins:
|
32
|
+
- mary-admin
|
33
|
+
non-admins:
|
34
|
+
- joe-user
|
35
|
+
servers:
|
36
|
+
chef-external.lxc:
|
37
|
+
chef-server.rb_partials:
|
38
|
+
- ../../config-files/chef-server/postgres-partial.rb
|
39
|
+
- ../../config-files/chef-server/elasticsearch-partial.rb
|
40
|
+
- ../../config-files/chef-server/ldap-partial.rb
|
41
|
+
ipaddress: 10.0.3.233
|
42
|
+
products:
|
43
|
+
chef-server:
|
44
|
+
channel: stable
|
45
|
+
version: latest
|
46
|
+
manage:
|
47
|
+
channel: stable
|
48
|
+
version: latest
|
49
|
+
|
50
|
+
nodes:
|
51
|
+
chef_server_url: https://chef-external.lxc/organizations/demo
|
52
|
+
validation_client_name: demo-validator
|
53
|
+
# comment out or remove the validation_key path to use chef-server keys generated by dev-lxc
|
54
|
+
validation_key: # /path/for/ORG-validator.pem
|
55
|
+
servers:
|
56
|
+
node-1-external.lxc:
|
57
|
+
products:
|
58
|
+
chef:
|
59
|
+
channel: stable
|
60
|
+
version: latest
|
@@ -1,88 +1,88 @@
|
|
1
|
-
# enable_build_snapshots automatically makes container snapshots at key times during the build process
|
2
|
-
# default value is `true`
|
3
|
-
#enable_build_snapshots: true
|
4
|
-
|
5
|
-
# base_container must be the name of an existing container
|
6
|
-
base_container: b-ubuntu-1404
|
7
|
-
|
8
|
-
# memory_per_server sets the maximum amount of user memory (including file cache) for each server.
|
9
|
-
# dev-lxc will set the `memory.limit_in_bytes` cgroup for each server to apply this limit.
|
10
|
-
# If no units are specified, the value is interpreted as bytes.
|
11
|
-
# You can use suffixes to represent larger units - k or K for kilobytes, m or M for megabytes, and g or G for gigabytes.
|
12
|
-
# The default behavior is that no limit is set.
|
13
|
-
#memory_per_server: 4G
|
14
|
-
|
15
|
-
# list any host directories you want mounted into the servers
|
16
|
-
#mounts:
|
17
|
-
# - /root/clusters root/clusters
|
18
|
-
|
19
|
-
# list any SSH public keys you want added to /home/dev-lxc/.ssh/authorized_keys
|
20
|
-
#ssh-keys:
|
21
|
-
# - /root/clusters/id_rsa.pub
|
22
|
-
|
23
|
-
# DHCP reserved (static) IPs must be selected from the IP range 10.0.3.150 - 254
|
24
|
-
|
25
|
-
chef-server:
|
26
|
-
topology: tier
|
27
|
-
api_fqdn: chef-tier.lxc
|
28
|
-
users: # a user's password will be the same as its username
|
29
|
-
- mary-admin
|
30
|
-
- joe-user
|
31
|
-
orgs:
|
32
|
-
demo:
|
33
|
-
admins:
|
34
|
-
- mary-admin
|
35
|
-
non-admins:
|
36
|
-
- joe-user
|
37
|
-
servers:
|
38
|
-
chef-be.lxc:
|
39
|
-
ipaddress: 10.0.3.201
|
40
|
-
role: backend
|
41
|
-
bootstrap: true
|
42
|
-
products:
|
43
|
-
chef-server:
|
44
|
-
channel: stable
|
45
|
-
version: latest
|
46
|
-
push-jobs-server:
|
47
|
-
channel: stable
|
48
|
-
version: latest
|
49
|
-
reporting:
|
50
|
-
channel: stable
|
51
|
-
version: latest
|
52
|
-
chef-fe1.lxc:
|
53
|
-
ipaddress: 10.0.3.202
|
54
|
-
role: frontend
|
55
|
-
products:
|
56
|
-
chef-server:
|
57
|
-
channel: stable
|
58
|
-
version: latest
|
59
|
-
manage:
|
60
|
-
channel: stable
|
61
|
-
version: latest
|
62
|
-
push-jobs-server:
|
63
|
-
channel: stable
|
64
|
-
version: latest
|
65
|
-
reporting:
|
66
|
-
channel: stable
|
67
|
-
version: latest
|
68
|
-
|
69
|
-
nodes:
|
70
|
-
chef_server_url: https://chef-tier.lxc/organizations/demo
|
71
|
-
validation_client_name: demo-validator
|
72
|
-
# comment out or remove the validation_key path to use chef-server keys generated by dev-lxc
|
73
|
-
validation_key: # /path/for/ORG-validator.pem
|
74
|
-
servers:
|
75
|
-
node-1-tier.lxc:
|
76
|
-
products:
|
77
|
-
chef:
|
78
|
-
channel: stable
|
79
|
-
version: latest
|
80
|
-
|
81
|
-
analytics:
|
82
|
-
servers:
|
83
|
-
analytics.lxc:
|
84
|
-
ipaddress: 10.0.3.204
|
85
|
-
products:
|
86
|
-
analytics:
|
87
|
-
channel: stable
|
88
|
-
version: latest
|
1
|
+
# enable_build_snapshots automatically makes container snapshots at key times during the build process
|
2
|
+
# default value is `true`
|
3
|
+
#enable_build_snapshots: true
|
4
|
+
|
5
|
+
# base_container must be the name of an existing container
|
6
|
+
base_container: b-ubuntu-1404
|
7
|
+
|
8
|
+
# memory_per_server sets the maximum amount of user memory (including file cache) for each server.
|
9
|
+
# dev-lxc will set the `memory.limit_in_bytes` cgroup for each server to apply this limit.
|
10
|
+
# If no units are specified, the value is interpreted as bytes.
|
11
|
+
# You can use suffixes to represent larger units - k or K for kilobytes, m or M for megabytes, and g or G for gigabytes.
|
12
|
+
# The default behavior is that no limit is set.
|
13
|
+
#memory_per_server: 4G
|
14
|
+
|
15
|
+
# list any host directories you want mounted into the servers
|
16
|
+
#mounts:
|
17
|
+
# - /root/clusters root/clusters
|
18
|
+
|
19
|
+
# list any SSH public keys you want added to /home/dev-lxc/.ssh/authorized_keys
|
20
|
+
#ssh-keys:
|
21
|
+
# - /root/clusters/id_rsa.pub
|
22
|
+
|
23
|
+
# DHCP reserved (static) IPs must be selected from the IP range 10.0.3.150 - 254
|
24
|
+
|
25
|
+
chef-server:
|
26
|
+
topology: tier
|
27
|
+
api_fqdn: chef-tier.lxc
|
28
|
+
users: # a user's password will be the same as its username
|
29
|
+
- mary-admin
|
30
|
+
- joe-user
|
31
|
+
orgs:
|
32
|
+
demo:
|
33
|
+
admins:
|
34
|
+
- mary-admin
|
35
|
+
non-admins:
|
36
|
+
- joe-user
|
37
|
+
servers:
|
38
|
+
chef-be.lxc:
|
39
|
+
ipaddress: 10.0.3.201
|
40
|
+
role: backend
|
41
|
+
bootstrap: true
|
42
|
+
products:
|
43
|
+
chef-server:
|
44
|
+
channel: stable
|
45
|
+
version: latest
|
46
|
+
push-jobs-server:
|
47
|
+
channel: stable
|
48
|
+
version: latest
|
49
|
+
reporting:
|
50
|
+
channel: stable
|
51
|
+
version: latest
|
52
|
+
chef-fe1.lxc:
|
53
|
+
ipaddress: 10.0.3.202
|
54
|
+
role: frontend
|
55
|
+
products:
|
56
|
+
chef-server:
|
57
|
+
channel: stable
|
58
|
+
version: latest
|
59
|
+
manage:
|
60
|
+
channel: stable
|
61
|
+
version: latest
|
62
|
+
push-jobs-server:
|
63
|
+
channel: stable
|
64
|
+
version: latest
|
65
|
+
reporting:
|
66
|
+
channel: stable
|
67
|
+
version: latest
|
68
|
+
|
69
|
+
nodes:
|
70
|
+
chef_server_url: https://chef-tier.lxc/organizations/demo
|
71
|
+
validation_client_name: demo-validator
|
72
|
+
# comment out or remove the validation_key path to use chef-server keys generated by dev-lxc
|
73
|
+
validation_key: # /path/for/ORG-validator.pem
|
74
|
+
servers:
|
75
|
+
node-1-tier.lxc:
|
76
|
+
products:
|
77
|
+
chef:
|
78
|
+
channel: stable
|
79
|
+
version: latest
|
80
|
+
|
81
|
+
analytics:
|
82
|
+
servers:
|
83
|
+
analytics.lxc:
|
84
|
+
ipaddress: 10.0.3.204
|
85
|
+
products:
|
86
|
+
analytics:
|
87
|
+
channel: stable
|
88
|
+
version: latest
|