Skip to content

Commit 6eda9ee

Browse files
author
Chao Zhang
committed
Allow hiera config for dotfiles
1 parent 15d1666 commit 6eda9ee

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,12 @@ python::python_pips:
302302
virtualenv: "/opt/env1"
303303
"coverage":
304304
virtualenv: "/opt/env2"
305+
python::python_dotfiles:
306+
"/var/lib/jenkins/.pip/pip.conf":
307+
config:
308+
global:
309+
index-url: "https://mypypi.acme.com/simple/"
310+
extra-index-url: "https://pypi.risedev.at/simple/"
305311
```
306312
307313
### Using SCL packages from RedHat or CentOS

manifests/init.pp

+3
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
$python_virtualenvs = { },
8282
$python_pyvenvs = { },
8383
$python_requirements = { },
84+
$python_dotfiles = { },
8485
$use_epel = $python::params::use_epel,
8586
$rhscl_use_public_repository = $python::params::rhscl_use_public_repository,
8687
) inherits python::params{
@@ -123,6 +124,7 @@
123124
validate_re($gunicorn, ['^(absent|present|latest)$'])
124125
}
125126

127+
validate_hash($python_dotfiles)
126128
validate_bool($manage_gunicorn)
127129
validate_bool($use_epel)
128130

@@ -143,5 +145,6 @@
143145
create_resources('python::pyvenv', $python_pyvenvs)
144146
create_resources('python::virtualenv', $python_virtualenvs)
145147
create_resources('python::requirements', $python_requirements)
148+
create_resources('python::dotfile', $python_dotfiles)
146149

147150
}

0 commit comments

Comments
 (0)