Use modules_path name

This commit is contained in:
Łukasz Oleś 2015-10-13 12:34:51 +02:00
parent 4933579fee
commit 7fcb2f09bf
4 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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

View File

@ -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}}

View File

@ -5,7 +5,7 @@ input:
modules:
schema: [str]
value: []
modules_dir:
modules_path:
schema: str!
value: /etc/puppet/modules
forge: