chef_fixie 1.0.3 → 1.0.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f9f3e121b4bc8d0c056b65261ddabbffcd8abb8708a9e54b487c019980e9591
4
- data.tar.gz: f697ae6863e27ab2617f75c0fad75f7f30badaa4600a15c92083b3050cd6f1e5
3
+ metadata.gz: 4d970430e73638f247a605d9fc34982d80b26e2f3d0ec1fff5a27a91477a8421
4
+ data.tar.gz: a5ac5b0ed67d51b1f3ccbf865738f713fd4e2e637ce7f23314adc01507f0159c
5
5
  SHA512:
6
- metadata.gz: 12959f3b117d62fbf9022fd9c66d627af90d57ac6167c2845ed953b98faf01c9848926ba73a9b4dc7ffbbefb95f6917686f405fd7f7b3044a15235b9b0cfe018
7
- data.tar.gz: e53841821e7ed30824bd9727e7feba59debeeeaddb0b25fe6ec0209c270c874f45c72e0f99a1b9c03acf9a0c525d302b777c76dd75538185bdf4ce954c94e7b8
6
+ metadata.gz: ba754395b51eb29838e11857e9ad3ca7ffb36d90e8004824d8a587f88d6146b1c627deefecbb5207ec1acdea263d915ed5d4b7eef466598c4bdd27d5494634d7
7
+ data.tar.gz: c36cad2fda5e7c3e6f9ff7bbc18cff3ec4c4c05e23bca74c26fa0623249c69a8a478a770eb3fcfaf75fe25f5025617db61dc631c4427f5636aabccb6f3eea9e9
@@ -26,7 +26,7 @@ Running fixie
26
26
 
27
27
  Start fixie with
28
28
  ```shell
29
- bin/fixie fixie.conf
29
+ bin/chef_fixie fixie.conf
30
30
  ```
31
31
  The config file is optional, leaving it out will attempt to read
32
32
  /etc/opscode for configuration.
data/fixie.conf.example CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- Fixie.configure do |mapper|
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'
@@ -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"]
@@ -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.history.file = "~/.fixie_history"
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)
@@ -1,3 +1,3 @@
1
1
  module ChefFixie
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.7"
3
3
  end
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.3
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: 2021-10-20 00:00:00.000000000 Z
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.2.22
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