Skip to content

Commit 65ed307

Browse files
authored
Merge pull request #344 from PuppetNinja/hiera-dotfile
Allow hiera config for dotfiles
2 parents 718e9bc + 6eda9ee commit 65ed307

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
@@ -303,6 +303,12 @@ python::python_pips:
303303
virtualenv: "/opt/env1"
304304
"coverage":
305305
virtualenv: "/opt/env2"
306+
python::python_dotfiles:
307+
"/var/lib/jenkins/.pip/pip.conf":
308+
config:
309+
global:
310+
index-url: "https://mypypi.acme.com/simple/"
311+
extra-index-url: "https://pypi.risedev.at/simple/"
306312
```
307313
308314
### 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)