hiser 0.1.0
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 +7 -0
- data/.gitignore +10 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/exe/hiser +24 -0
- data/hiser.gemspec +41 -0
- data/lib/hiser.rb +94 -0
- data/lib/hiser/version.rb +3 -0
- data/lib/templates/module_files/README.md +78 -0
- data/lib/templates/module_files/data/common.yaml +47 -0
- data/lib/templates/module_files/data/customer_env/environment_a.yaml +0 -0
- data/lib/templates/module_files/data/customer_env/environment_b.yaml +0 -0
- data/lib/templates/module_files/data/customer_env/environment_c.yaml +0 -0
- data/lib/templates/module_files/data/customer_env/environment_d.yaml +0 -0
- data/lib/templates/module_files/data/datacenter/datacenter_a.yaml +4 -0
- data/lib/templates/module_files/data/datacenter/datacenter_b.yaml +3 -0
- data/lib/templates/module_files/data/provisioning_env/prov_env_a.yaml +5 -0
- data/lib/templates/module_files/data/provisioning_env/prov_env_b.yaml +5 -0
- data/lib/templates/module_files/hiera.yaml +10 -0
- metadata +171 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b3c5e5a6772791ddcaae7ed3b71cf4b32643004e
|
4
|
+
data.tar.gz: 7e7d2ddafd9415d39313536a81ac7cae23a59783
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: eeba35c57b752aec975d91b9d35dc60d549398831e5bd31d818cef60d3197f1ada8fc96a699cb2ce46596c2b4e6bfe8d0ff52e55758ccbcce9452daf5aec41fb
|
7
|
+
data.tar.gz: 4f04bbd05a0f7ef27ca2ec94fb47e3413322cd7517a4a4a5f131c2b63a779f0fbd8faa2ae1ea47f5a54bfebd389ccc504e2187a0ec1327616828a8d8a5739725
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at corey@nwops.io. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Corey Osman
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "hiser"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/exe/hiser
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "hiser"
|
4
|
+
require 'optparse'
|
5
|
+
|
6
|
+
ARGV << '-h' if ARGV.empty? # sets help screen as default
|
7
|
+
options = {}
|
8
|
+
OptionParser.new do |opts|
|
9
|
+
opts.program_name = 'Hiser'
|
10
|
+
opts.on('-g', '--generate PROJECT_PATH', 'Generate a hiser project with the given project path') do | path |
|
11
|
+
options[:generate] = true
|
12
|
+
options[:project_path] = path
|
13
|
+
end
|
14
|
+
opts.on('-s', '--serialize', 'Create serialized files from hiera data') { options[:serialize] = true }
|
15
|
+
opts.on('-h', '--help', 'Show help') { puts opts; exit }
|
16
|
+
opts.version = Hiser::VERSION
|
17
|
+
opts.parse!
|
18
|
+
end
|
19
|
+
|
20
|
+
if options[:generate]
|
21
|
+
Hiser::Cli.generate(options[:project_path])
|
22
|
+
elsif options[:serialize]
|
23
|
+
Hiser::Cli.start
|
24
|
+
end
|
data/hiser.gemspec
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'hiser/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "hiser"
|
8
|
+
spec.version = Hiser::VERSION
|
9
|
+
spec.authors = ["Corey Osman"]
|
10
|
+
spec.email = ["corey@nwops.io"]
|
11
|
+
|
12
|
+
spec.summary = %q{A simple gem that uses hiera data lookups to create serialized files}
|
13
|
+
spec.description = %q{A simple script that uses hiera data lookups to create
|
14
|
+
json or yaml serialized files with custom object mappings
|
15
|
+
defined in the hiera common.yaml file}
|
16
|
+
spec.homepage = "https://github.com/nwops/hiser"
|
17
|
+
spec.license = "MIT"
|
18
|
+
|
19
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
20
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
21
|
+
if spec.respond_to?(:metadata)
|
22
|
+
spec.metadata['allowed_push_host'] = "https://rubygems.org"
|
23
|
+
else
|
24
|
+
raise "RubyGems 2.0 or newer is required to protect against " \
|
25
|
+
"public gem pushes."
|
26
|
+
end
|
27
|
+
|
28
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
29
|
+
f.match(%r{^(test|spec|features)/})
|
30
|
+
end
|
31
|
+
spec.bindir = "exe"
|
32
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
33
|
+
spec.require_paths = ["lib"]
|
34
|
+
spec.add_runtime_dependency "hiera", ">= 3.0"
|
35
|
+
spec.add_runtime_dependency 'retrospec', ">= 0.4.0"
|
36
|
+
spec.add_development_dependency "bundler", "~> 1.13"
|
37
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
38
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
39
|
+
spec.add_development_dependency "pry"
|
40
|
+
spec.add_development_dependency "release_me"
|
41
|
+
end
|
data/lib/hiser.rb
ADDED
@@ -0,0 +1,94 @@
|
|
1
|
+
require "hiser/version"
|
2
|
+
require 'fileutils'
|
3
|
+
require 'retrospec/plugins/v1/module_helpers'
|
4
|
+
require 'hiera'
|
5
|
+
require 'json'
|
6
|
+
require 'yaml'
|
7
|
+
require 'retrospec'
|
8
|
+
|
9
|
+
module Hiser
|
10
|
+
class Cli
|
11
|
+
include Retrospec::Plugins::V1::ModuleHelpers
|
12
|
+
|
13
|
+
def self.generate(path)
|
14
|
+
instance = Hiser::Cli.new
|
15
|
+
instance.generate_files(path)
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.start
|
19
|
+
instance = Hiser::Cli.new
|
20
|
+
instance.run
|
21
|
+
end
|
22
|
+
|
23
|
+
# produces all the files identified in the output_object_files hash
|
24
|
+
def run
|
25
|
+
files.each do | file_hash|
|
26
|
+
file_hash.each {| map_name, file_name | generate_file(map_name, file_name) }
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
def generate_files(path, spec_object=nil)
|
31
|
+
safe_create_module_files(template_dir, path, spec_object)
|
32
|
+
end
|
33
|
+
|
34
|
+
private
|
35
|
+
|
36
|
+
# returns the path to the templates
|
37
|
+
# looks inside the gem path templates directory
|
38
|
+
def template_dir
|
39
|
+
File.expand_path(File.join(File.dirname(File.dirname(__FILE__)), 'lib', 'templates'))
|
40
|
+
end
|
41
|
+
|
42
|
+
# creates a new hiera object
|
43
|
+
def hiera
|
44
|
+
# create a new instance based on config file
|
45
|
+
@hiera ||= Hiera.new(:config => "./hiera.yaml")
|
46
|
+
end
|
47
|
+
|
48
|
+
# lookups the list of env_scopes via hiera
|
49
|
+
def env_scopes
|
50
|
+
@env_data || hiera.lookup(settings.fetch('scopes'), '', {})
|
51
|
+
end
|
52
|
+
|
53
|
+
# lookups the map called output_object_files and returns a key/value pair
|
54
|
+
# of map types and the designated output file
|
55
|
+
def files
|
56
|
+
@files ||= hiera.lookup(settings.fetch('object_files'), '', {})
|
57
|
+
end
|
58
|
+
|
59
|
+
def settings
|
60
|
+
@settings ||= hiera.lookup('hiera_tool_settings', '', {})
|
61
|
+
end
|
62
|
+
|
63
|
+
def output_dir
|
64
|
+
@output_dir ||= settings.fetch('output_directory', 'output_data')
|
65
|
+
end
|
66
|
+
|
67
|
+
# write the given data to the given file name
|
68
|
+
# also encodes in yaml or json by detecting the extension name
|
69
|
+
def write_data(file_path, data)
|
70
|
+
file_type = File.extname(file_path).downcase
|
71
|
+
if file_type == '.json'
|
72
|
+
File.write(file_path, JSON.pretty_generate(data))
|
73
|
+
else
|
74
|
+
File.write(file_path, data.to_yaml)
|
75
|
+
end
|
76
|
+
puts "Wrote file: #{file_path}"
|
77
|
+
end
|
78
|
+
|
79
|
+
# generate a file based on the map_name
|
80
|
+
# uses the map name to look up the data via hiera
|
81
|
+
def generate_file(map_name, file_name)
|
82
|
+
env_scopes.each do | scope_name, scope |
|
83
|
+
dir = File.join(output_dir, scope_name)
|
84
|
+
FileUtils.mkdir_p(dir) unless File.exists?(dir)
|
85
|
+
file_name_path = File.join(dir, file_name)
|
86
|
+
obj_map = hiera.lookup(map_name, '', scope)
|
87
|
+
write_data(file_name_path, obj_map)
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
end
|
94
|
+
end
|
@@ -0,0 +1,78 @@
|
|
1
|
+
# File Object Serialization Generator
|
2
|
+
|
3
|
+
Serializes any given object mapping to a file. For ever scope defined a new
|
4
|
+
file will be generated under a new directory for the scope.
|
5
|
+
|
6
|
+
|
7
|
+
## Setup
|
8
|
+
|
9
|
+
### 1. Define the output_object_files map
|
10
|
+
In the `common.yaml` file you need to define a new hash
|
11
|
+
called `output_object_files`. In this hash you should define
|
12
|
+
a set of key/value pairs that tell the script which mapping to output
|
13
|
+
to a file. The value of the pair should should be the name of the file.
|
14
|
+
The extension of the file `.json` or `.yaml` will determine which serialization
|
15
|
+
to use when encoding the object.
|
16
|
+
|
17
|
+
Example:
|
18
|
+
|
19
|
+
```
|
20
|
+
output_object_files:
|
21
|
+
giant_object_mapping: 'giant_output_mapping.json'
|
22
|
+
```
|
23
|
+
|
24
|
+
The script will loop through each mapping and generate a output file for each
|
25
|
+
scope.
|
26
|
+
|
27
|
+
### 2. Define the mappping of each object
|
28
|
+
With the output_object_files map defined above we need to also create
|
29
|
+
a map for each mapping we used in the `output_object_files` map. This mapping
|
30
|
+
is defined by you. It should represent your data structure. In the example below
|
31
|
+
we map `workflows` to a `alias` function which causes hiera to interpolate the key
|
32
|
+
by looking in the hierarchy for the key in order to return the value.
|
33
|
+
and the key
|
34
|
+
|
35
|
+
```
|
36
|
+
workflows:
|
37
|
+
workflow_a:
|
38
|
+
url: 'https://www.something.com'
|
39
|
+
|
40
|
+
|
41
|
+
giant_object_mapping:
|
42
|
+
workflows: "%{alias('workflows')}"
|
43
|
+
```
|
44
|
+
|
45
|
+
Where the JSON output becomes
|
46
|
+
|
47
|
+
```
|
48
|
+
{
|
49
|
+
"workflows": {
|
50
|
+
"workflow_a": {
|
51
|
+
"url": "https://www.something.com"
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
```
|
56
|
+
|
57
|
+
### 3. Create the scopes
|
58
|
+
In order for hiera to correctly find the keys in the hierarchy we need to provide
|
59
|
+
a scope for hiera to use. This scope is defined by you and based on your hierarchical
|
60
|
+
structure in `hiera.yaml`. You should only defined keys in the scope for every
|
61
|
+
variable you use in the `hiera.yaml` mapping and any other variables you might
|
62
|
+
interpolate in hiera values. This must be a hash with key/value pairs where the values
|
63
|
+
must be strings.
|
64
|
+
|
65
|
+
It is mandatory that the mapping name be called `env_scopes`
|
66
|
+
|
67
|
+
```
|
68
|
+
env_scopes:
|
69
|
+
env_1:
|
70
|
+
provisioning_env: prov_env_a
|
71
|
+
customer_env: environment_a
|
72
|
+
datacenter: datacentera_a
|
73
|
+
```
|
74
|
+
|
75
|
+
|
76
|
+
## Usage
|
77
|
+
To generate the serialized files just run the `ruby_test.rb` file which will generate
|
78
|
+
all the files under the current local directory.
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# don't use the hiera lookup interpolation in any values below
|
2
|
+
# you must only use the alias function, otherwise a string is returned
|
3
|
+
|
4
|
+
# environment scopes where each type of file is produced from
|
5
|
+
# this scope is passed into hiera so that hiera can find the correct
|
6
|
+
# values at the difference levels. These scopes represent the variables
|
7
|
+
# used with hiera.
|
8
|
+
env_scopes:
|
9
|
+
env_1:
|
10
|
+
provisioning_env: prov_env_a
|
11
|
+
customer_env: environment_a
|
12
|
+
datacenter: datacenter_a
|
13
|
+
env_2:
|
14
|
+
provisioning_env: prov_env_b
|
15
|
+
customer_env: environment_b
|
16
|
+
datacenter: datacenter_b
|
17
|
+
|
18
|
+
# example map which is utilize in the output_object_files below
|
19
|
+
# this map is simple, in that it only looks up a single item
|
20
|
+
# called 'workflows'.
|
21
|
+
giant_object_mapping:
|
22
|
+
workflows: "%{alias('workflows')}"
|
23
|
+
special_info: "%{alias('special_info')}"
|
24
|
+
|
25
|
+
|
26
|
+
special_data:
|
27
|
+
key1: "%{alias('key1')}"
|
28
|
+
|
29
|
+
# the control source for generating map files
|
30
|
+
# each file should have a corresponding map
|
31
|
+
output_object_files:
|
32
|
+
- giant_object_mapping: 'giant_output_mapping.json'
|
33
|
+
- special_data: 'vro_data.json'
|
34
|
+
|
35
|
+
|
36
|
+
# a hash a static settings that are used in the script
|
37
|
+
# if you change the value of these you must also change map names above as well
|
38
|
+
# do not change the key names, otherwise the script will fail
|
39
|
+
# You shoud not need to customize this
|
40
|
+
hiera_tool_settings:
|
41
|
+
# the name of the scope object you must define
|
42
|
+
scopes: env_scopes
|
43
|
+
# the name of the object files map you must define
|
44
|
+
object_files: output_object_files
|
45
|
+
# the name of the directory to write files to
|
46
|
+
output_directory: output
|
47
|
+
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
metadata
ADDED
@@ -0,0 +1,171 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: hiser
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Corey Osman
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-01-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: hiera
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: retrospec
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.4.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.4.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.13'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.13'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '10.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '10.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: pry
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: release_me
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
description: |-
|
112
|
+
A simple script that uses hiera data lookups to create
|
113
|
+
json or yaml serialized files with custom object mappings
|
114
|
+
defined in the hiera common.yaml file
|
115
|
+
email:
|
116
|
+
- corey@nwops.io
|
117
|
+
executables:
|
118
|
+
- hiser
|
119
|
+
extensions: []
|
120
|
+
extra_rdoc_files: []
|
121
|
+
files:
|
122
|
+
- .gitignore
|
123
|
+
- .rspec
|
124
|
+
- .travis.yml
|
125
|
+
- CODE_OF_CONDUCT.md
|
126
|
+
- Gemfile
|
127
|
+
- LICENSE.txt
|
128
|
+
- Rakefile
|
129
|
+
- bin/console
|
130
|
+
- bin/setup
|
131
|
+
- exe/hiser
|
132
|
+
- hiser.gemspec
|
133
|
+
- lib/hiser.rb
|
134
|
+
- lib/hiser/version.rb
|
135
|
+
- lib/templates/module_files/README.md
|
136
|
+
- lib/templates/module_files/data/common.yaml
|
137
|
+
- lib/templates/module_files/data/customer_env/environment_a.yaml
|
138
|
+
- lib/templates/module_files/data/customer_env/environment_b.yaml
|
139
|
+
- lib/templates/module_files/data/customer_env/environment_c.yaml
|
140
|
+
- lib/templates/module_files/data/customer_env/environment_d.yaml
|
141
|
+
- lib/templates/module_files/data/datacenter/datacenter_a.yaml
|
142
|
+
- lib/templates/module_files/data/datacenter/datacenter_b.yaml
|
143
|
+
- lib/templates/module_files/data/provisioning_env/prov_env_a.yaml
|
144
|
+
- lib/templates/module_files/data/provisioning_env/prov_env_b.yaml
|
145
|
+
- lib/templates/module_files/hiera.yaml
|
146
|
+
homepage: https://github.com/nwops/hiser
|
147
|
+
licenses:
|
148
|
+
- MIT
|
149
|
+
metadata:
|
150
|
+
allowed_push_host: https://rubygems.org
|
151
|
+
post_install_message:
|
152
|
+
rdoc_options: []
|
153
|
+
require_paths:
|
154
|
+
- lib
|
155
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - '>='
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
161
|
+
requirements:
|
162
|
+
- - '>='
|
163
|
+
- !ruby/object:Gem::Version
|
164
|
+
version: '0'
|
165
|
+
requirements: []
|
166
|
+
rubyforge_project:
|
167
|
+
rubygems_version: 2.0.14.1
|
168
|
+
signing_key:
|
169
|
+
specification_version: 4
|
170
|
+
summary: A simple gem that uses hiera data lookups to create serialized files
|
171
|
+
test_files: []
|