Modify and rename config_dir input to modules_dir.

This commit is contained in:
Łukasz Oleś 2015-10-13 12:10:49 +02:00
parent 5e0d2f9fa0
commit 4933579fee
4 changed files with 8 additions and 6 deletions

View File

@ -5,6 +5,7 @@ resources:
location: {{node}}
from: resources/librarian
values:
modules_dir: /tmp/x/x/modules
modules:
- name: puppetlabs-ntp
version: 4.1.0

View File

@ -1,6 +1,6 @@
- hosts: [{{host}}]
sudo: yes
tasks:
#XXX: should we remove modules also?
- file: path={{config_dir}}/Puppetfile state=absent
- file: path={{modules_dir}} state=absent
- file: path={{modules_dir}}/../Puppetfile state=absent
- shell: gem uninstall librarian-puppet

View File

@ -3,7 +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
- template:
src={{templates_dir}}/Puppetfile
dest={{config_dir}}/Puppetfile
- shell: librarian-puppet install chdir={{config_dir}}
dest={{modules_dir}}/../Puppetfile
- shell: librarian-puppet install chdir={{modules_dir}}

View File

@ -5,9 +5,9 @@ input:
modules:
schema: [str]
value: []
config_dir:
modules_dir:
schema: str!
value: /etc/puppet
value: /etc/puppet/modules
forge:
schema: str!
value: https://forgeapi.puppetlabs.com