chef_fixie 1.0.3 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/GETTING_STARTED.md +1 -1
- data/fixie.conf.example +1 -1
- data/lib/chef_fixie/config.rb +4 -0
- data/lib/chef_fixie/console.rb +3 -2
- data/lib/chef_fixie/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d970430e73638f247a605d9fc34982d80b26e2f3d0ec1fff5a27a91477a8421
|
4
|
+
data.tar.gz: a5ac5b0ed67d51b1f3ccbf865738f713fd4e2e637ce7f23314adc01507f0159c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba754395b51eb29838e11857e9ad3ca7ffb36d90e8004824d8a587f88d6146b1c627deefecbb5207ec1acdea263d915ed5d4b7eef466598c4bdd27d5494634d7
|
7
|
+
data.tar.gz: c36cad2fda5e7c3e6f9ff7bbc18cff3ec4c4c05e23bca74c26fa0623249c69a8a478a770eb3fcfaf75fe25f5025617db61dc631c4427f5636aabccb6f3eea9e9
|
data/doc/GETTING_STARTED.md
CHANGED
data/fixie.conf.example
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
|
2
|
+
ChefFixie.configure do |mapper|
|
3
3
|
mapper.authz_uri = "http://localhost:9463"
|
4
4
|
mapper.superuser_id = "33d88ba14277f812a3ef3989869fb393"
|
5
5
|
mapper.sql_database = 'postgres://opscode_chef:6c6e1a140828be4ac406848e0b6a2ae1e9845e45ac4f48c790168c681c1b4217dc27ab99599130449a2437ab0d2a300bed5d@localhost/opscode_chef'
|
data/lib/chef_fixie/config.rb
CHANGED
@@ -22,6 +22,7 @@ require "singleton"
|
|
22
22
|
require "ffi_yajl"
|
23
23
|
require "pathname"
|
24
24
|
require "veil"
|
25
|
+
require_relative "console"
|
25
26
|
|
26
27
|
module ChefFixie
|
27
28
|
def self.configure
|
@@ -101,11 +102,14 @@ module ChefFixie
|
|
101
102
|
|
102
103
|
def load_from_pc(dir = "/etc/opscode")
|
103
104
|
configdir = Pathname.new(dir)
|
105
|
+
puts "Loading configdir: #{configdir}..."
|
104
106
|
|
105
107
|
config_files = %w{chef-server-running.json}
|
106
108
|
config = load_json_from_path([configdir], config_files)
|
107
109
|
|
108
110
|
secrets = load_secrets_from_path([configdir], %w{private-chef-secrets.json} )
|
111
|
+
puts "Loading config: #{config}..."
|
112
|
+
puts "Loading authz config: #{config["private_chef"]["oc_bifrost"]}..."
|
109
113
|
|
110
114
|
authz_config = config["private_chef"]["oc_bifrost"]
|
111
115
|
authz_vip = authz_config["vip"]
|
data/lib/chef_fixie/console.rb
CHANGED
@@ -29,8 +29,9 @@ module ChefFixie
|
|
29
29
|
module Console
|
30
30
|
extend self
|
31
31
|
|
32
|
+
@@started_from_command_line = true
|
33
|
+
|
32
34
|
def start
|
33
|
-
@@started_from_command_line = true
|
34
35
|
configure
|
35
36
|
ChefFixie.setup
|
36
37
|
configure_pry
|
@@ -65,7 +66,7 @@ module ChefFixie
|
|
65
66
|
end
|
66
67
|
|
67
68
|
def configure_pry
|
68
|
-
Pry.config.
|
69
|
+
Pry.config.history_file = "~/.fixie_history"
|
69
70
|
Pry.config.prompt_name = "fixie"
|
70
71
|
Pry::Commands.block_command("fixie-help", "Show fixie's help") do
|
71
72
|
output.puts(<<-HALP)
|
data/lib/chef_fixie/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef_fixie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Anderson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef
|
@@ -174,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
174
174
|
- !ruby/object:Gem::Version
|
175
175
|
version: '0'
|
176
176
|
requirements: []
|
177
|
-
rubygems_version: 3.
|
177
|
+
rubygems_version: 3.1.6
|
178
178
|
signing_key:
|
179
179
|
specification_version: 4
|
180
180
|
summary: Low level manipulation tool for Chef Infra Server
|