Permalink
Browse files

create symlink hiera.yaml in /etc/puppet/ so puppetmaster can use hiera

modified:   puppet3/PKGBUILD
  • Loading branch information...
1 parent 610de4b commit 7f22b14376e7ced9b4f905b45654b95d32efeb03 @aboe76 aboe76 committed Sep 19, 2012
Showing with 11 additions and 8 deletions.
  1. +11 −8 puppet3/PKGBUILD
View
19 puppet3/PKGBUILD
@@ -21,27 +21,27 @@ provides=("puppet")
conflicts=("puppet")
install="puppet.install"
source=("http://puppetlabs.com/downloads/puppet/puppet-$pkgver.tar.gz"
- "http://downloads.puppetlabs.com/hiera/hiera-1.0.0rc4.tar.gz"
- "http://downloads.puppetlabs.com/hiera/hiera-json-0.4.0.tgz"
"http://downloads.puppetlabs.com/hiera/hiera-puppet-1.0.0rc3.tar.gz"
+ "http://downloads.puppetlabs.com/hiera/hiera-1.0.0rc4.tar.gz"
+ "http://downloads.puppetlabs.com/hiera/hiera-json-0.4.0.tgz"
"fileserver.conf"
- "hiera.yaml"
"puppet"
"puppet.conf"
"puppetagent.service"
"puppetmaster"
- "puppetmaster.service")
+ "puppetmaster.service"
+ "hiera.yaml")
md5sums=('3d338150c0c232cca09afa4ea5931864'
- '175b7dfd864d003b81c8360eec5fc731'
- '389be2d95502d41d26da330207a33db3'
'6829fb5735e179b90b0491971d9b46a8'
+ '175b7dfd864d003b81c8360eec5fc731'
+ '389be2d95502d41d26da330207a33db3'
'ffacd9bfb9c7656a3a345dbc5eb0e67a'
- '3c2f95791009f2113f5d3eb54a6577a8'
'59dbf39e251bc4877e7604a5876c642d'
'65e7af811ce18f7c764f2ab5d2876d76'
'bbfe0b847f08012cd534d96fe3758b3e'
'4c507c580cb28d7a5adc9ea6b3626657'
- '15037c609ec10a6046387c43d1641464')
+ '15037c609ec10a6046387c43d1641464'
+ '3c2f95791009f2113f5d3eb54a6577a8')
package() {
cd $srcdir/puppet-$pkgver
@@ -73,7 +73,10 @@ package() {
install -d $pkgdir/etc/{puppet,rc.d}
install -m 644 $srcdir/puppet.conf $pkgdir/etc/puppet/puppet.conf
install -m 644 $srcdir/fileserver.conf $pkgdir/etc/puppet/fileserver.conf
+
+ # Configuration for hiera / symlink is there to use hiera within puppet.
install -m 644 $srcdir/hiera.yaml $pkgdir/etc/
+ ln -s "$pkgdir/etc/hiera.yaml" "$pkgdir/etc/puppet/hiera.yaml"
# Systemd files
install -Dm 644 $srcdir/puppetagent.service $pkgdir/usr/lib/systemd/system/puppetagent.service

0 comments on commit 7f22b14

Please sign in to comment.