chef_fixie 1.0.2 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f3de72ac60514bc40b96e932529f1cbcb1bdfd8f799d54b1d20453ff16fb1eaf
4
- data.tar.gz: f11fcccb04c1c1222f7c593839155cad4fee1e507ef3d5238e3f10fa07cdc689
3
+ metadata.gz: 4d970430e73638f247a605d9fc34982d80b26e2f3d0ec1fff5a27a91477a8421
4
+ data.tar.gz: a5ac5b0ed67d51b1f3ccbf865738f713fd4e2e637ce7f23314adc01507f0159c
5
5
  SHA512:
6
- metadata.gz: 30f348f5de0f11aa31534f6160aea0841e333268d41a5fdc10f12d65427acc080a09017b402a7e5491bdf8b9e394eaa1ea9954018aee63b5f31aecd062f8b94f
7
- data.tar.gz: 71bd479c159a15d042154de70857cadc6caf905b835429a84546d019514312b4958353c04cccd6478415666a80164fd017da8f05a10438842721f97d8513a318
6
+ metadata.gz: ba754395b51eb29838e11857e9ad3ca7ffb36d90e8004824d8a587f88d6146b1c627deefecbb5207ec1acdea263d915ed5d4b7eef466598c4bdd27d5494634d7
7
+ data.tar.gz: c36cad2fda5e7c3e6f9ff7bbc18cff3ec4c4c05e23bca74c26fa0623249c69a8a478a770eb3fcfaf75fe25f5025617db61dc631c4427f5636aabccb6f3eea9e9
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
- fixie
2
- =====
1
+ # fixie
3
2
 
4
- Low level manipulation tool for Chef Server 12 and later.
3
+ Low level manipulation tool for Chef Infra Server.
5
4
 
6
5
  This tool is in its very early stages, and should be used with great care.
7
6
 
@@ -47,14 +46,14 @@ github.
47
46
 
48
47
  | | |
49
48
  |:---------------------|:-----------------------------------------|
50
- | **Copyright:** | Copyright (c) 2014-2015 Chef Software, Inc.
49
+ | **Copyright:** | Copyright:: Chef Software, Inc.
51
50
  | **License:** | Apache License, Version 2.0
52
51
 
53
52
 
54
53
  All files in the repository are licensed under the Apache 2.0 license. If any file is missing the License
55
54
  header it should assume the following is attached;
56
55
 
57
- Copyright 2014 Chef Software Inc.
56
+ Copyright:: Chef Software Inc.
58
57
 
59
58
  Licensed under the Apache License, Version 2.0 (the "License");
60
59
  you may not use this file except in compliance with the License.
@@ -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.2"
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.2
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Anderson
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-26 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
@@ -76,14 +76,14 @@ dependencies:
76
76
  name: sequel
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - "~>"
79
+ - - ">="
80
80
  - !ruby/object:Gem::Version
81
81
  version: '4.11'
82
82
  type: :runtime
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - "~>"
86
+ - - ">="
87
87
  - !ruby/object:Gem::Version
88
88
  version: '4.11'
89
89
  - !ruby/object:Gem::Dependency
@@ -159,7 +159,7 @@ homepage: https://github.com/chef/fixie
159
159
  licenses:
160
160
  - Apache-2.0
161
161
  metadata: {}
162
- post_install_message:
162
+ post_install_message:
163
163
  rdoc_options: []
164
164
  require_paths:
165
165
  - lib
@@ -174,8 +174,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
174
  - !ruby/object:Gem::Version
175
175
  version: '0'
176
176
  requirements: []
177
- rubygems_version: 3.1.4
178
- signing_key:
177
+ rubygems_version: 3.1.6
178
+ signing_key:
179
179
  specification_version: 4
180
180
  summary: Low level manipulation tool for Chef Infra Server
181
181
  test_files: