Skip to content

Commit

Permalink
Merge pull request #344 from PuppetNinja/hiera-dotfile
Browse files Browse the repository at this point in the history
Allow hiera config for dotfiles
  • Loading branch information
shivapoudel authored Feb 15, 2018
2 parents 718e9bc + 6eda9ee commit 65ed307
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,12 @@ python::python_pips:
virtualenv: "/opt/env1"
"coverage":
virtualenv: "/opt/env2"
python::python_dotfiles:
"/var/lib/jenkins/.pip/pip.conf":
config:
global:
index-url: "https://mypypi.acme.com/simple/"
extra-index-url: "https://pypi.risedev.at/simple/"
```
### Using SCL packages from RedHat or CentOS
Expand Down
3 changes: 3 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
$python_virtualenvs = { },
$python_pyvenvs = { },
$python_requirements = { },
$python_dotfiles = { },
$use_epel = $python::params::use_epel,
$rhscl_use_public_repository = $python::params::rhscl_use_public_repository,
) inherits python::params{
Expand Down Expand Up @@ -123,6 +124,7 @@
validate_re($gunicorn, ['^(absent|present|latest)$'])
}

validate_hash($python_dotfiles)
validate_bool($manage_gunicorn)
validate_bool($use_epel)

Expand All @@ -143,5 +145,6 @@
create_resources('python::pyvenv', $python_pyvenvs)
create_resources('python::virtualenv', $python_virtualenvs)
create_resources('python::requirements', $python_requirements)
create_resources('python::dotfile', $python_dotfiles)

}

0 comments on commit 65ed307

Please sign in to comment.