-
-
Notifications
You must be signed in to change notification settings - Fork 374
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
Prefer Hiera data to params.pp #652
base: master
Are you sure you want to change the base?
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
python::version: '3' | ||
python::use_epel: true | ||
python::gunicorn_package_name: 'gunicorn' | ||
python::manage_pip_package: true | ||
python::manage_venv_package: true | ||
python::pip::group: 'root' | ||
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. Kudos to who can tell me what is wrong here: the default value is not catch by Automatic Parameter Lookup in 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. Also, setting values for sub-classes of python is unusual (and maybe not supported?) but I would like to avoid breaking backwards compatibility in this PR. |
||
python::pip::bootstrap::pip_lookup_path: | ||
- /bin | ||
- /usr/bin | ||
- /usr/local/bin |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
python::pip::group: 'system' | ||
python::pip::bootstrap::pip_lookup_path: | ||
- /bin | ||
- /usr/bin | ||
- /usr/local/bin | ||
- /opt/freeware/bin/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
python::version: 'system' | ||
python::manage_pip_package: false | ||
python::manage_venv_package: false |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
python::use_epel: true | ||
python::gunicorn_package_name: 'python-gunicorn' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
python::gunicorn_package_name: 'python3-gunicorn' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
python::use_epel: false |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
python::gunicorn_package_name: 'python3-gunicorn' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
version: 5 | ||
|
||
defaults: | ||
datadir: 'data' | ||
data_hash: 'yaml_data' | ||
|
||
hierarchy: | ||
- name: 'family/name/major' | ||
path: 'os/%{facts.os.family}/%{facts.os.name}/%{facts.os.release.major}.yaml' | ||
|
||
- name: 'family/name' | ||
path: 'os/%{facts.os.family}/%{facts.os.name}.yaml' | ||
|
||
- name: 'family' | ||
path: 'os/%{facts.os.family}.yaml' | ||
|
||
- name: 'common' | ||
path: 'common.yaml' |
This file was deleted.
This file was deleted.
This file was deleted.
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.
can you please keep the data in the init.pp instead common.yaml? That enables puppet-strings to pick it up and document it in the REFERENCE.md.
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.
at https://voxpupuli.org/docs/reviewing_pr/, we have:
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.
These parameters in
common.yaml
have overrides in otherdata/**/*.yaml
and should be os-dependent. They where previously documented as:this line is not shown anymore. If we put the value in
init.pp
instead ofcommon.yaml
, wrong default values would be documented for some operating systems.