pauper 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README +1 -56
  2. data/lib/pauper.rb +5 -1
  3. metadata +88 -77
data/README CHANGED
@@ -1,56 +1 @@
1
- To setup a dev environment
2
-
3
- Install 11.10
4
-
5
- sudo apt-get install build-essential aptitude lxc bridge-utils libvirt-bin ruby openssh-server curl libssl-dev libxml2-dev libxslt-dev git-core libreadline6-dev
6
-
7
- Install rvm
8
-
9
- See https://rvm.io/
10
- rvm install 1.9.3
11
- rvm use 1.9.3 --default
12
- source ~/.profile
13
-
14
- gem install ohai chef
15
-
16
- Setup .ssh, .chef, .gitconfig
17
- https://gist.github.com/eb11025e7c0e53ef58be
18
-
19
- mkdir fastly
20
- cd fastly
21
- git clone git@github.com:fastly/Chef.git
22
- git clone git@github.com:macros/Pauper.git
23
- git clone git@github.com:fastly/pauper-env.git
24
- # Customizations for lxc
25
- https://gist.github.com/d15219c4edcf0f112c1c
26
-
27
- git clone git@github.com:fastly/Heavenly.git
28
- touch Heavenly/heavenly.log
29
- chmod 777 Heavenly/heavenly.log
30
- git clone git@github.com:fastly/Northstar.git
31
- mv Northstar northstar
32
- git clone git@github.com:fastly/Sierra.git
33
- git clone git@github.com:fastly/conduction.git
34
- git clone git@github.com:fastly/Website.git
35
-
36
- cd Pauper
37
- gem build pauper.gemspec
38
- gem install pauper-0.0.6.gem
39
- knife environment create <username>-dev
40
- (If knife cant be found, try 'source ~/.rvm/scripts/rvm')
41
-
42
- cd ../pauper-env
43
- pauper bootstrap
44
- pauper start
45
- pauper setup
46
-
47
- * Assumes ssh user/pass in container is root as setup by lxc (TODO)
48
-
49
- pauper bootstrap
50
- pauper start <node>
51
- pauper setup <node>
52
- pauper stop <node>
53
-
54
- The base node can be run, not normally started
55
-
56
- DONE!
1
+ See https://fastly.atlassian.net/wiki/display/DOC/DeveloperSetupMac
@@ -26,7 +26,7 @@ class Pauper
26
26
  def bootstrap
27
27
  raise "Base already exists!" if vm_exists?("base")
28
28
  username = ENV['USER']
29
- key = "/home/#{username}/.ssh/id_rsa"
29
+ key = @pauper_config.config[:bootstrap_ssh_key] || "/home/#{username}/.ssh/id_rsa"
30
30
  lxc_pauper_template
31
31
  system("sudo touch /var/lib/lxc/lxc.conf")
32
32
  system("sudo lxc-create -n base -t pauper -f /var/lib/lxc/lxc.conf -- -a amd64 --auth-key #{key + '.pub'} -r lucid")
@@ -1052,6 +1052,10 @@ end
1052
1052
  @config[:default_cpus] = count
1053
1053
  end
1054
1054
 
1055
+ def bootstrap_ssh_key(key_path)
1056
+ @config[:bootstrap_ssh_key] = key_path
1057
+ end
1058
+
1055
1059
  def chef_server_url(url)
1056
1060
  @config[:chef_server_url] = url
1057
1061
  end
metadata CHANGED
@@ -1,81 +1,97 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: pauper
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 1
8
- - 7
9
- version: 0.1.7
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.8
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Tyler McMullen
13
9
  - Jason Cook
14
- autorequire:
10
+ autorequire:
15
11
  bindir: bin
16
12
  cert_chain: []
17
-
18
- date: 2013-04-26 00:00:00 -07:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
13
+ date: 2013-05-03 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
22
16
  name: thor
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- requirements:
17
+ version_requirements: !ruby/object:Gem::Requirement
18
+ requirements:
26
19
  - - ">="
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
- version: "0"
20
+ - !ruby/object:Gem::Version
21
+ version: !binary |-
22
+ MA==
23
+ none: false
24
+ requirement: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ version: !binary |-
29
+ MA==
30
+ none: false
31
+ prerelease: false
31
32
  type: :runtime
32
- version_requirements: *id001
33
- - !ruby/object:Gem::Dependency
33
+ - !ruby/object:Gem::Dependency
34
34
  name: net-ssh
35
- prerelease: false
36
- requirement: &id002 !ruby/object:Gem::Requirement
37
- requirements:
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: !binary |-
40
+ MA==
41
+ none: false
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
38
44
  - - ">="
39
- - !ruby/object:Gem::Version
40
- segments:
41
- - 0
42
- version: "0"
45
+ - !ruby/object:Gem::Version
46
+ version: !binary |-
47
+ MA==
48
+ none: false
49
+ prerelease: false
43
50
  type: :runtime
44
- version_requirements: *id002
45
- - !ruby/object:Gem::Dependency
51
+ - !ruby/object:Gem::Dependency
46
52
  name: net-scp
47
- prerelease: false
48
- requirement: &id003 !ruby/object:Gem::Requirement
49
- requirements:
53
+ version_requirements: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: !binary |-
58
+ MA==
59
+ none: false
60
+ requirement: !ruby/object:Gem::Requirement
61
+ requirements:
50
62
  - - ">="
51
- - !ruby/object:Gem::Version
52
- segments:
53
- - 0
54
- version: "0"
63
+ - !ruby/object:Gem::Version
64
+ version: !binary |-
65
+ MA==
66
+ none: false
67
+ prerelease: false
55
68
  type: :runtime
56
- version_requirements: *id003
57
- - !ruby/object:Gem::Dependency
69
+ - !ruby/object:Gem::Dependency
58
70
  name: json
59
- prerelease: false
60
- requirement: &id004 !ruby/object:Gem::Requirement
61
- requirements:
71
+ version_requirements: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: !binary |-
76
+ MA==
77
+ none: false
78
+ requirement: !ruby/object:Gem::Requirement
79
+ requirements:
62
80
  - - ">="
63
- - !ruby/object:Gem::Version
64
- segments:
65
- - 0
66
- version: "0"
81
+ - !ruby/object:Gem::Version
82
+ version: !binary |-
83
+ MA==
84
+ none: false
85
+ prerelease: false
67
86
  type: :runtime
68
- version_requirements: *id004
69
87
  description: Inspired by Vagrant but much much simpler. Also uses LXC, instead of Virtualbox.
70
- email:
88
+ email:
71
89
  - tyler@fastly.com
72
- executables:
90
+ executables:
73
91
  - pauper
74
92
  extensions: []
75
-
76
93
  extra_rdoc_files: []
77
-
78
- files:
94
+ files:
79
95
  - bin/pauper
80
96
  - lib/dhcpd.rb
81
97
  - lib/hosts.rb
@@ -84,35 +100,30 @@ files:
84
100
  - lib/pauper.rb
85
101
  - lib/vmx.rb
86
102
  - README
87
- has_rdoc: true
88
103
  homepage: http://github.com/fastly/Pauper
89
104
  licenses: []
90
-
91
- post_install_message:
105
+ post_install_message:
92
106
  rdoc_options: []
93
-
94
- require_paths:
107
+ require_paths:
95
108
  - lib
96
- required_ruby_version: !ruby/object:Gem::Requirement
97
- requirements:
109
+ required_ruby_version: !ruby/object:Gem::Requirement
110
+ requirements:
98
111
  - - ">="
99
- - !ruby/object:Gem::Version
100
- segments:
101
- - 0
102
- version: "0"
103
- required_rubygems_version: !ruby/object:Gem::Requirement
104
- requirements:
112
+ - !ruby/object:Gem::Version
113
+ version: !binary |-
114
+ MA==
115
+ none: false
116
+ required_rubygems_version: !ruby/object:Gem::Requirement
117
+ requirements:
105
118
  - - ">="
106
- - !ruby/object:Gem::Version
107
- segments:
108
- - 0
109
- version: "0"
119
+ - !ruby/object:Gem::Version
120
+ version: !binary |-
121
+ MA==
122
+ none: false
110
123
  requirements: []
111
-
112
- rubyforge_project:
113
- rubygems_version: 1.3.6
114
- signing_key:
124
+ rubyforge_project:
125
+ rubygems_version: 1.8.24
126
+ signing_key:
115
127
  specification_version: 3
116
128
  summary: A semi-sane way to manage a multi-vm dev environment
117
129
  test_files: []
118
-