-
-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update tests to use Hiera 5 #1158
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
--- | ||
elasticsearch::init_template: "%{module_name}/etc/init.d/elasticsearch.Debian.erb" | ||
elasticsearch::pid_dir: ~ | ||
elasticsearch::pid_dir: | ||
elasticsearch::service_provider: init |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
--- | ||
elasticsearch::init_template: "%{module_name}/etc/init.d/elasticsearch.Debian.erb" | ||
elasticsearch::pid_dir: ~ | ||
elasticsearch::pid_dir: | ||
elasticsearch::service_provider: init |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
--- | ||
elasticsearch::init_template: "%{module_name}/etc/init.d/elasticsearch.Debian.erb" | ||
elasticsearch::pid_dir: ~ | ||
elasticsearch::pid_dir: | ||
elasticsearch::service_provider: init |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
elasticsearch::download_tool: curl -o | ||
elasticsearch::download_tool_insecure: curl --insecure -o | ||
elasticsearch::elasticsearch_user: elasticsearch | ||
elasticsearch::elasticsearch_group: elasticsearch | ||
elasticsearch::elasticsearch_user: elasticsearch |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
--- | ||
elasticsearch::datadir: /var/lib/elasticsearch | ||
elasticsearch::datadir: "/var/lib/elasticsearch" | ||
elasticsearch::download_tool: wget -O | ||
elasticsearch::download_tool_insecure: wget --no-check-certificate -O | ||
elasticsearch::elasticsearch_user: elasticsearch | ||
elasticsearch::elasticsearch_group: elasticsearch | ||
elasticsearch::homedir: /usr/share/elasticsearch | ||
elasticsearch::package_dir: /opt/elasticsearch/swdl | ||
elasticsearch::elasticsearch_user: elasticsearch | ||
elasticsearch::homedir: "/usr/share/elasticsearch" | ||
elasticsearch::package_dir: "/opt/elasticsearch/swdl" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
--- | ||
elasticsearch::datadir: /var/elasticsearch/data | ||
elasticsearch::download_tool: 'ftp -o' | ||
elasticsearch::elasticsearch_user: _elasticsearch | ||
elasticsearch::datadir: "/var/elasticsearch/data" | ||
elasticsearch::download_tool: ftp -o | ||
elasticsearch::elasticsearch_group: _elasticsearch | ||
elasticsearch::homedir: /usr/local/elasticsearch | ||
elasticsearch::elasticsearch_user: _elasticsearch | ||
elasticsearch::homedir: "/usr/local/elasticsearch" | ||
elasticsearch::init_template: "%{module_name}/etc/init.d/elasticsearch.OpenBSD.erb" | ||
elasticsearch::package_dir: /var/cache/elasticsearch | ||
elasticsearch::service_provider: openbsd | ||
elasticsearch::manage_repo: false | ||
elasticsearch::package_dir: "/var/cache/elasticsearch" | ||
elasticsearch::service_provider: openbsd |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
elasticsearch::defaults_location: /etc/default | ||
elasticsearch::defaults_location: "/etc/default" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
elasticsearch::defaults_location: /etc/conf.d | ||
elasticsearch::defaults_location: "/etc/conf.d" | ||
elasticsearch::init_template: "%{module_name}/etc/init.d/elasticsearch.openrc.erb" | ||
elasticsearch::package_name: app-misc/elasticsearch | ||
elasticsearch::pid_dir: /run/elasticsearch | ||
elasticsearch::pid_dir: "/run/elasticsearch" | ||
elasticsearch::service_provider: openrc |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
elasticsearch::defaults_location: /etc/sysconfig | ||
elasticsearch::defaults_location: "/etc/sysconfig" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
--- | ||
elasticsearch::defaults_location: /etc/sysconfig | ||
elasticsearch::systemd_service_path: /usr/lib/systemd/system | ||
elasticsearch::defaults_location: "/etc/sysconfig" | ||
elasticsearch::systemd_service_path: "/usr/lib/systemd/system" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
--- | ||
elasticsearch::init_template: "%{module_name}/etc/init.d/elasticsearch.SLES.erb" | ||
elasticsearch::pid_dir: ~ | ||
elasticsearch::pid_dir: | ||
elasticsearch::service_provider: init |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,18 @@ | ||
--- | ||
version: 5 | ||
|
||
defaults: | ||
datadir: data | ||
data_hash: 'yaml_data' | ||
|
||
data_hash: yaml_data | ||
hierarchy: | ||
- name: 'Distribution major version' | ||
path: 'distro/%{facts.os.name}/%{facts.os.release.major}.yaml' | ||
|
||
- name: 'Operating system family major version' | ||
path: 'os/%{facts.os.family}/%{facts.os.release.major}.yaml' | ||
|
||
- name: 'Distribution name' | ||
path: 'distro/%{facts.os.name}.yaml' | ||
|
||
- name: 'Operating system family' | ||
path: 'os/%{facts.os.family}.yaml' | ||
|
||
- name: 'System kernel' | ||
path: 'kernel/%{facts.kernel}.yaml' | ||
|
||
- name: 'Default values' | ||
path: 'common.yaml' | ||
- name: Distribution major version | ||
path: distro/%{facts.os.name}/%{facts.os.release.major}.yaml | ||
- name: Operating system family major version | ||
path: os/%{facts.os.family}/%{facts.os.release.major}.yaml | ||
- name: Distribution name | ||
path: distro/%{facts.os.name}.yaml | ||
- name: Operating system family | ||
path: os/%{facts.os.family}.yaml | ||
- name: System kernel | ||
path: kernel/%{facts.kernel}.yaml | ||
- name: Default values | ||
path: common.yaml |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--- {} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
elasticsearch::instances: | ||
default: | ||
config: | ||
node.name: default | ||
http.bind_host: 0.0.0.0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
elasticsearch::instances: | ||
es-hiera-multiple-1: | ||
config: | ||
node.name: es-hiera-multiple-1 | ||
http.bind_host: 0.0.0.0 | ||
es-hiera-multiple-2: | ||
config: | ||
node.name: es-hiera-multiple-2 | ||
http.bind_host: 0.0.0.0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
elasticsearch::indices: | ||
baz: | ||
ensure: 'present' | ||
ensure: present | ||
settings: | ||
index: | ||
number_of_shards: 1 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
elasticsearch::instances: | ||
es-hiera-single: | ||
config: | ||
node.name: es-hiera-single | ||
http.bind_host: 0.0.0.0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
elasticsearch::plugins: | ||
mobz/elasticsearch-head: | ||
ensure: present | ||
module_dir: head |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
--- | ||
elasticsearch::templates: | ||
foo: | ||
ensure: 'present' | ||
ensure: present | ||
content: | ||
template: 'foo-*' | ||
template: foo-* | ||
settings: | ||
index: | ||
number_of_replicas: 0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ elasticsearch::users: | |
ensure: present | ||
password: password | ||
roles: | ||
- admin | ||
- admin |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
version: 5 | ||
hierarchy: | ||
- name: Spec-Fixtures | ||
paths: | ||
# Default for datadir is data/ (relative to hiera.yaml's Directory) | ||
- ! "%{::facts.scenario}.yaml" | ||
- envs/%{::facts.common}.yaml | ||
- common.yaml |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
--- | ||
OS: | ||
- amazonlinux-1-x64 | ||
- centos-6-x64 | ||
- centos-7-x64 | ||
- debian-8-x64 | ||
- debian-9-x64 | ||
- oracle-6-x64 | ||
- oracle-7-x64 | ||
- ubuntu-server-1404-x64 | ||
- ubuntu-server-1604-x64 | ||
- amazonlinux-1-x64 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm quite sure this file isn't used anymore and can be deleted. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe, But this is not Subject, of this PR. |
||
- centos-6-x64 | ||
- centos-7-x64 | ||
- debian-8-x64 | ||
- debian-9-x64 | ||
- oracle-6-x64 | ||
- oracle-7-x64 | ||
- ubuntu-server-1404-x64 | ||
- ubuntu-server-1604-x64 | ||
PUPPET_VERSION: | ||
- "" | ||
- "~> 6.0" | ||
- "~> 5.0" | ||
- "~> 4.10.0" | ||
- '' | ||
- "~> 6.0" | ||
- "~> 5.0" | ||
- "~> 4.10.0" | ||
TEST_TYPE: | ||
- latest | ||
- 5.6.9 | ||
# - snapshot | ||
- latest | ||
- 5.6.9 | ||
#- snapshot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if something is undef, it doesn't need to be added to hiera at all
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not without adding
= undef,
to the Class-Parameter.Anyhow. This is not Subject, of this PR.