From 746719cc10e6309950e0d3e57771b0703e0fd6c1 Mon Sep 17 00:00:00 2001 From: Przemyslaw Kaminski Date: Mon, 29 Jun 2015 15:35:31 +0200 Subject: [PATCH] Hiera fixes for trusty --- hiera.yaml | 4 ++-- main.yml | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/hiera.yaml b/hiera.yaml index aae50b24..ca27ee57 100644 --- a/hiera.yaml +++ b/hiera.yaml @@ -1,7 +1,7 @@ :backends: - redis - - yaml - - json + #- yaml + #- json :yaml: :datadir: /etc/puppet/hieradata :json: diff --git a/main.yml b/main.yml index 0008907d..e1c09f3c 100644 --- a/main.yml +++ b/main.yml @@ -10,9 +10,13 @@ - apt: name=git state=present + - shell: wget https://apt.puppetlabs.com/puppetlabs-release-trusty.deb -O /root/puppetlabs-release-trusty.deb + - shell: dpkg -i /root/puppetlabs-release-trusty.deb + - shell: apt-get update + - apt: name=puppet state=present - git: repo=https://github.com/CGenie/hiera-redis dest=/root/hiera-redis - - shell: gem build hiera-redis.gemspec && gem install hiera-redis-1.0.2.gem chdir=/root/hiera-redis + - shell: gem build hiera-redis.gemspec && gem install hiera-redis-3.0.0.gem chdir=/root/hiera-redis - template: src=/vagrant/hiera.yaml dest=/etc/puppet/hiera.yaml - file: path=/etc/puppet/hieradata state=directory