knife-setup 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ .rvmrc
2
+ *.gem
3
+ *.swp
4
+ pkg
data/README.md CHANGED
@@ -1,6 +1,38 @@
1
1
  ```
2
2
  gem install knife-setup
3
3
  ```
4
- ```ruby
5
- knife setup --help
4
+ ```
5
+ $ knife setup --help
6
+ knife setup FQDN (options)
7
+ --bootstrap-proxy PROXY_URL The proxy server for the node being bootstrapped
8
+ --bootstrap-version VERSION The version of Chef to install
9
+ -N, --node-name NAME The Chef node name for your new node
10
+ -s, --server-url URL Chef Server URL
11
+ -k, --key KEY API Client Key
12
+ --[no-]color Use colored output, defaults to enabled
13
+ -c, --config CONFIG The configuration file to use
14
+ --defaults Accept default values for all questions
15
+ --disable-editing Do not open EDITOR, just accept the data as is
16
+ -d, --distro DISTRO Bootstrap a distro using a template
17
+ -e, --editor EDITOR Set the editor to use for interactive commands
18
+ --environment ENVIRONMENT Set environment for node
19
+ -F, --format FORMAT Which format to use for output
20
+ -i IDENTITY_FILE, The SSH identity file used for authentication
21
+ --identity-file
22
+ --no-host-key-verify Disable host key verification
23
+ --nobootstrap Not run bootstrap scripts
24
+ -u, --user USER API Client Username
25
+ --prerelease Install the pre-release chef gems
26
+ --print-after Show the data after a destructive operation
27
+ -r, --run-list RUN_LIST Comma separated list of roles/recipes to apply
28
+ --runchef Run chef after install bootstrap
29
+ -P, --ssh-password PASSWORD The ssh password
30
+ -p, --ssh-port PORT The ssh port
31
+ -x, --ssh-user USERNAME The ssh username
32
+ --template-file TEMPLATE Full path to location of template to use
33
+ --sudo Execute the bootstrap via sudo
34
+ -V, --verbose More verbose output. Use twice for max verbosity
35
+ -v, --version Show chef version
36
+ -y, --yes Say yes to all prompts for confirmation
37
+ -h, --help Show this message
6
38
  ```
@@ -99,6 +99,12 @@ class Chef
99
99
  :proc => lambda { |o| o.split(/[\s,]+/) },
100
100
  :default => []
101
101
 
102
+ option :chef_run_list,
103
+ :long => "--chef-run-list RUN_LIST",
104
+ :description => "Comma separated list of roles/recipes to apply",
105
+ :proc => lambda { |o| o.split(/[\s,]+/) },
106
+ :default => []
107
+
102
108
  option :no_host_key_verify,
103
109
  :long => "--no-host-key-verify",
104
110
  :description => "Disable host key verification",
@@ -182,7 +188,7 @@ class Chef
182
188
  ui.info("Setup Chef on #{ui.color(@node_name, :bold)}")
183
189
 
184
190
  bootstrap_client unless config[:nobootstrap]
185
- set_run_list(get_node, config[:run_list]) if config[:run_list]
191
+ set_run_list(get_node, config[:chef_run_list]) if config[:chef_run_list]
186
192
  set_env(get_node, config[:environment]) unless config[:environment] == "_default"
187
193
  knife_ssh("chef-client").run if config[:runchef]
188
194
 
@@ -1,5 +1,5 @@
1
1
  module Knife
2
2
  module Setup
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-setup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-24 00:00:00.000000000 Z
12
+ date: 2013-01-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chef
@@ -34,7 +34,7 @@ executables: []
34
34
  extensions: []
35
35
  extra_rdoc_files: []
36
36
  files:
37
- - .gitigonre
37
+ - .gitignore
38
38
  - README.md
39
39
  - Rakefile
40
40
  - knife-setup.gemspec
@@ -66,4 +66,3 @@ signing_key:
66
66
  specification_version: 3
67
67
  summary: Setup chef on machine.
68
68
  test_files: []
69
- has_rdoc:
data/.gitigonre DELETED
@@ -1 +0,0 @@
1
- pkg