Skip to content

Commit

Permalink
Allow hiera config for dotfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Chao Zhang committed Dec 9, 2016
1 parent 15d1666 commit 6eda9ee
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 @@ -302,6 +302,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 6eda9ee

Please sign in to comment.