chef_fixie 1.0.2 → 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 +4 -4
- data/README.md +4 -5
- 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 +8 -8
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/README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
|
-
fixie
|
2
|
-
=====
|
1
|
+
# fixie
|
3
2
|
|
4
|
-
Low level manipulation tool for Chef Server
|
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
|
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
|
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.
|
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
|
-
autorequire:
|
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
|
@@ -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.
|
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:
|