Skip to content

Commit

Permalink
use stdlib puppet facts for configuration
Browse files Browse the repository at this point in the history
puppetserver doesn't honor puppet.conf vardir settings
  • Loading branch information
vchepkov committed May 1, 2017
1 parent 538e0d9 commit 96087ee
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .fixtures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ fixtures:
repositories:
stdlib:
repo: "git://github.com/puppetlabs/puppetlabs-stdlib.git"
ref: "4.13.1"
ref: "4.15.0"
ruby: "git://github.com/puppetlabs/puppetlabs-ruby.git"
gcc: "git://github.com/puppetlabs/puppetlabs-gcc.git"
pe_gem: "git://github.com/puppetlabs/puppetlabs-pe_gem.git"
Expand Down
2 changes: 0 additions & 2 deletions default_module_facts.yml

This file was deleted.

4 changes: 2 additions & 2 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
$sources = undef
$puppet_master = true

$r10k_basedir = $::settings::environmentpath
$r10k_cache_dir = "${::settings::vardir}/r10k"
$r10k_basedir = $facts['puppet_environmentpath']
$r10k_cache_dir = "${facts['puppet_vardir']}/r10k"
$r10k_config_file = '/etc/puppetlabs/r10k/r10k.yaml'
$r10k_binary = 'r10k'
$puppetconf_path = '/etc/puppetlabs/puppet'
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"dependencies": [
{
"name": "puppetlabs/stdlib",
"version_requirement": ">= 4.13.1 < 5.0.0"
"version_requirement": ">= 4.15.0 < 5.0.0"
},
{
"name": "puppetlabs/ruby",
Expand Down
4 changes: 4 additions & 0 deletions spec/default_module_facts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
pe_version: '2016.4.1'
puppet_environmentpath: '/etc/puppetlabs/code/environments'
puppet_vardir: '/opt/puppetlabs/puppet/cache'

0 comments on commit 96087ee

Please sign in to comment.