From 7fcb2f09bf512db3b49a7f83d553ac8bdfb3ef39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Ole=C5=9B?= Date: Tue, 13 Oct 2015 12:34:51 +0200 Subject: [PATCH] Use modules_path name --- examples/librarian/librarian.yaml | 2 +- resources/librarian/actions/remove.yaml | 4 ++-- resources/librarian/actions/run.yaml | 6 +++--- resources/librarian/meta.yaml | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/librarian/librarian.yaml b/examples/librarian/librarian.yaml index a573175..79445de 100644 --- a/examples/librarian/librarian.yaml +++ b/examples/librarian/librarian.yaml @@ -5,7 +5,7 @@ resources: location: {{node}} from: resources/librarian values: - modules_dir: /tmp/x/x/modules + modules_path: /tmp/x/x/modules modules: - name: puppetlabs-ntp version: 4.1.0 diff --git a/resources/librarian/actions/remove.yaml b/resources/librarian/actions/remove.yaml index 42c4616..c948ead 100644 --- a/resources/librarian/actions/remove.yaml +++ b/resources/librarian/actions/remove.yaml @@ -1,6 +1,6 @@ - hosts: [{{host}}] sudo: yes tasks: - - file: path={{modules_dir}} state=absent - - file: path={{modules_dir}}/../Puppetfile state=absent + - file: path={{modules_path}} state=absent + - file: path={{modules_path}}/../Puppetfile state=absent - shell: gem uninstall librarian-puppet diff --git a/resources/librarian/actions/run.yaml b/resources/librarian/actions/run.yaml index 1f69649..391e6f8 100644 --- a/resources/librarian/actions/run.yaml +++ b/resources/librarian/actions/run.yaml @@ -3,8 +3,8 @@ tasks: # XXX: check apt package http://packages.ubuntu.com/trusty/ruby/librarian-puppet - shell: gem install librarian-puppet --no-ri --no-rdoc - - file: path={{modules_dir}} state=directory + - file: path={{modules_path}} state=directory - template: src={{templates_dir}}/Puppetfile - dest={{modules_dir}}/../Puppetfile - - shell: librarian-puppet install chdir={{modules_dir}} + dest={{modules_path}}/../Puppetfile + - shell: librarian-puppet install chdir={{modules_path}} diff --git a/resources/librarian/meta.yaml b/resources/librarian/meta.yaml index 77213fd..9d620c1 100644 --- a/resources/librarian/meta.yaml +++ b/resources/librarian/meta.yaml @@ -5,7 +5,7 @@ input: modules: schema: [str] value: [] - modules_dir: + modules_path: schema: str! value: /etc/puppet/modules forge: