Use modules_path name
This commit is contained in:
parent
82d81154b7
commit
585eb50291
@ -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
|
||||
|
@ -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
|
||||
|
@ -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}}
|
||||
|
@ -5,7 +5,7 @@ input:
|
||||
modules:
|
||||
schema: [str]
|
||||
value: []
|
||||
modules_dir:
|
||||
modules_path:
|
||||
schema: str!
|
||||
value: /etc/puppet/modules
|
||||
forge:
|
||||
|
Loading…
Reference in New Issue
Block a user